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: 

BOM Sorting VBA

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
BlueJay1234
1715 Views, 2 Replies

BOM Sorting VBA

Hello everyone.

I have been trying to write up a vba code that sorts the BOM - below you will find the code.

 

Public Sub StückSortBaugr()

Dim oBOMView As BOMView

Set oBOMView = ThisApplication.ActiveDocument.ComponentDefinition.BOM.BOMViews.Item("Strukturiert")

Call oBOMView.Sort("Modellnummer", True) Call oBOMView.Renumber(1, 1)

End Sub

 

 

The code however does not sort the BOM and i am not sure why - does anybody have a quick solution or the time to help me out with this matter?

 

What I would like to achieve;

 

1. Sort the boom by Part Number

2. Renumber the boom

 

and if possible

1. import the xml file that configures the layout of the boom from a specified path as the first step of the process

 

Thanks for all the help

 

Greetings

 

 

 

2 REPLIES 2
Message 2 of 3
Message 3 of 3

Ok thanks for the link

 

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

Post to forums  

Autodesk Design & Make Report