IV9 - Sorting partslist

IV9 - Sorting partslist

Anonymous
Not applicable
231 Views
3 Replies
Message 1 of 4

IV9 - Sorting partslist

Anonymous
Not applicable
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
0 Likes
232 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
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 > >
0 Likes
Message 3 of 4

Anonymous
Not applicable
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 >> >> > >
0 Likes
Message 4 of 4

Anonymous
Not applicable
P.S. The included autoit compiled script sorts the parts list in ascending order on the first choice after "none" and only on the first term. For me, this is typically the Item or Detail No.
0 Likes