Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sorting Partslist

0 REPLIES 0
Reply
Message 1 of 1
BlueJay1234
213 Views, 0 Replies

Sorting Partslist

Dear all,

I have a question regarding the sorting of the idw partslist. Currently I am using the following macro to sort the part list.

 

Public Sub PSortZeich()

Dim oDoc As DrawingDocument

Set oDoc = ThisApplication.ActiveDocument

Dim oPartsList As PartsList Set oPartsList = oDoc.ActiveSheet.PartsLists.Item(1)

Dim sPartsListSortString1 As String sPartsListSortString1 = "Part No"

Call oPartsList.Sort(sPartsListSortString1, True)

'Call oPartsList.

Renumber oPartsList.SaveItemOverridesToBOM

End Sub

 

My problem however is, that we started to fill the part list with user defined parts (parts that due not exist in the assembly)

These parts, that always start with the object number greater than 200 should not be renumbered and should always stay at the end of the parts list!

 

Is this possible? I would greatly appriciate any help with this matter. Workflow vise it could go something like this:

 

1. Sort all parts via Part No

2. Renumber all parts that have an object number below 200

3. Sort all pars via objekt number

 

Thanks and a great weekend to all

 

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report