PDA

View Full Version : PickElement (Python) throw error


PetrZ
06-20-2008, 08:13 AM
Just notice that PickElement command in xsi 6.5 doesn't work:

I tried this example from SDK documentation:
from win32com.client import constants as c
xsi = Application
oPicked = xsi.PickElement( c.siModelFilter, 'Pick model', 'Pick model' )and I got this error:
# ERROR : 21000-PickElement - Unspecified failure
# ERROR : Unexpected Python Error: <type 'exceptions.TypeError'>: function takes exactly 5 arguments (0 given)But in XSI 5.11 it worked :(

// so problem was somewhere else, after restar it's working.