Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am new to the ilogic world of Inventor as well as the programming language. I have created a rule that will Sort by "Vendor", "Description", and "Size", "Renumber" and then "Save Item Overrides To BOM". What I would like to be able to do is have some way to check off the "Auto Sort on Update" box (see attached mage) before renumbering the BOM. If anyone knows what I need to type in to get that to happen would be my hero and all my dreams would come true. Any help is greatly appreciated.
This is the script I have so far.
SyntaxEditor Code Snippet
On Error Resume Next Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oPartsList1 As PartsList Dim oPartsList2 As PartsList Dim oPartsList3 As PartsList Dim oPartsList4 As PartsList oPartsList1 = oDrawDoc.ActiveSheet.PartsLists.Item(1) oPartsList1.Sort("VENDOR",1,"DESCRIPTION",1,"SIZE",1) oPartsList1.Renumber oPartsList1.SaveItemOverridesToBOM oPartsList2 = oDrawDoc.ActiveSheet.PartsLists.Item(2) oPartsList2.Sort("VENDOR",1,"DESCRIPTION",1,"SIZE",1) oPartsList2.Renumber oPartsList2.SaveItemOverridesToBOM oPartsList3 = oDrawDoc.ActiveSheet.PartsLists.Item(3) oPartsList3.Sort("VENDOR",1,"DESCRIPTION",1,"SIZE",1) oPartsList3.Renumber oPartsList3.SaveItemOverridesToBOM oPartsList4 = oDrawDoc.ActiveSheet.PartsLists.Item(4) oPartsList4.Sort("VENDOR",1,"DESCRIPTION",1,"SIZE",1) oPartsList4.Renumber oPartsList4.SaveItemOverridesToBOM
Solved! Go to Solution.