
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I know this has already been adressed, with no solution, but I am hoping that somebody will see this and maybe help me out.
I have an iLogic configurater Assembly with parts getting suppressed and activated. I got to the point, where I have my assembly, and i want to sort, renumber end export the BOM Structured view. I thought it will be a simple thing....
Look at the code I have now.
Dim oDoc As AssemblyDocument
oDoc = ThisApplication.ActiveDocument
Dim oAssyDef As AssemblyComponentDefinition
oAssyDef = oDoc.ComponentDefinition
Dim repMgr As RepresentationsManager
repMgr = oAssyDef.RepresentationsManager
Dim oMasterLOD As LevelOfDetailRepresentation
oMasterLOD = repMgr.LevelOfDetailRepresentations.Item(1)
oMasterLOD.Activate
Dim oBOM As BOM
oBOM = oAssyDef.BOM
oBOM.StructuredViewEnabled = True
oBOMView = oBOM.BOMViews.Item("Structured")
oBOMView.Sort("BOM Structure",1,"Vendor",1,"Part Number",1)
oMasterLOD = repMgr.LevelOfDetailRepresentations.Item(5)
oMasterLOD.Activate
oDoc.Save
The problem is that it is not sorting based on 3 columns (BOM Structure, Vendor, Part Number). It is only sorthing based on the first criteria (BOM Structure), which is not enough for me.
Invento Programing help says it should work, but it dosn't.
Does anybody have a solution for this?
Is this maybe working on the drawing sheet (I am thining that maybe i will sort, renumber and export from there.) ?
Thank you.
Solved! Go to Solution.