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: 

Check if BOM Dialog is Open

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
etckerry
560 Views, 4 Replies

Check if BOM Dialog is Open

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

4 REPLIES 4
Message 2 of 5
jdkriek
in reply to: etckerry

I haven't see anything exposed to the API for detecting this, but that doesn't mean it's not possible.

 

Are you working with iLogic, VBA, VB.NET, C# ?

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 5
etckerry
in reply to: jdkriek

I'm using VB.NET.

 

Thanks,

 

Kerry

Message 4 of 5
etckerry
in reply to: etckerry

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

Message 5 of 5
pavol_krasnansky
in reply to: etckerry

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.

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

Post to forums  

Autodesk Design & Make Report