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 BOM browser is opened

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
dibujocad
384 Views, 4 Replies

Check BOM browser is opened

Hi, I need to check if BOM browser is opened in the active assembly.

I found this code to execute it, but I cannot find anything related to check if it's opened.

Any suggestion?

 

ThisApplication.CommandManager.ControlDefinitions.item("AssemblyBillOfMaterialsCmd").execute

4 REPLIES 4
Message 2 of 5
matt_jlt
in reply to: dibujocad

only thing i can think of is using the windows / win32 API which is not really a simple implementation

look at this post from a while ago for a starting point.

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/get-vault-check-in-window/m-p/10629398/...

 

Essentially you would have to call a command that gets the active windows and looks for one that has either a complete or partial name match to the one you want.

Message 3 of 5
Ralf_Krieg
in reply to: dibujocad

Hello

 

AFAIK as long as the BOM window is open, ThisApplication.CommandManager.ActiveCommand="AssemblyBillOfMaterialsCmd".


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 4 of 5
matt_jlt
in reply to: Ralf_Krieg

I didn't even think of doing that, genius. Thanks for the tip.

Message 5 of 5
dibujocad
in reply to: Ralf_Krieg

Thanks!! It's exactly what I was looking for

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report