To see what is possible using AutoIt, here is one possible solution to sorting the
parts list. Put the following macro in one of your ivb files:
Sub AutoIt_SortPartsList()
Dim oControlDef As ControlDefinition
Set oControlDef = _
ThisApplication.CommandManager.ControlDefinitions.Item _
("DrawingPartsListEditCtxCmd")
Dim RetVal
RetVal = Shell("C:\Temp\ivsortpartslist.exe", 4) ' Run Compiled AutoIt script.
oControlDef.Execute
End Sub
and place the included small executable in your c:\Temp directory (or where ever you
want as long as you change the path in the macro's shell statement. Be sure to have
your parts list pre-selected before running the macro or IV will crash on the
oControlDef.Execute call.
This simple example probably will not work on non-english systems without some
modification. It is only my second attempt at using this software on IV (or anything
else for that matter). I had to place the ControlDef.Execute call after the shell
command to get it to work at all, but there are several different ways this could
have been approached. Ultimately, I would use the ActiveX version of AutoIt
to put the scripting commands right in the Inventor VBA macro (or add-in).
Bob S.
"Bob S." wrote in message news:41c1893b$1_3@newsprd01...
> There is currently no api method for sorting the parts list
> (as of IV9SP1). If you are adventerous, you might be able
> to automate the gui using something like AutoIT.
>
> "Mika Aaltonen" wrote in message news:41c1414e$1_3@newsprd01...
>>I do not find method from api which could sort partslist. I would like to
>> sort partslist rows to ascending order.
>> The field sort by would be ITEM. Is sorting possible in IV9 SP1 API and what
>> is the object and method for sorting rows?
>>
>> Mika
>>
>>
>
>