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
Solved! Go to Solution.
Solved by saseendrankombath. Go to Solution.