Hello all,
We have some routines that sort and renumber the BOM in an assembly document according to certain rules, but if the routines are run while the user has the BOM dialog open, they incorrectly renumber and fail to sort the list.
Is there a way to tell if the user has the BOM dialog open, or maybe close it for them prior to running the routine?
Thanks,
Kerry
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
Of course, you're right - I was looking for a solution within the Inventor API, but this is something that is possible to do using Windows API calls. Thanks for pointing me in the right direction.
-Kerry
Hi, try this rule:
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager
oControlDef = oCommandMgr.ControlDefinitions.Item("AssemblyOpenBOMEditorCmd")
Call oControlDef.Execute2(True)
This rule closes the BOM editor.