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: 

Event that raises when Home tab is selected

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Kreshnik.HASANI
363 Views, 4 Replies

Event that raises when Home tab is selected

Hello,

 

I need to know when the user selects the Home Tab (ZeroDoc).

 

The events  : OnActivateDocument / OnDesctivateDocument don't raise when I select Home tab.

 

How could I manage this ?

 

Thanks a lot

4 REPLIES 4
Message 2 of 5
A.Acheson
in reply to: Kreshnik.HASANI

Would checking if no document is open and inventor is running be suitable through VBA? I would think that the only place you could be is on the home tab? 

Here is a post where user activated the home button. 

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/activate-quot-home-quot-tab-or-switch-t...

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 5
WCrihfield
in reply to: A.Acheson

I don't think that would work either, because I generally don't use the 'My Home' tab, so when I close my last document, there are simply no tabs left (black screen), but Inventor is still open.  I am still unsure if it is possible to detect that event or not though.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 4 of 5

The only Event I can think of that might be worth looking into right now might be the 'UserInterfaceEvents.OnEnvironmentChange' event.  I'm still not sure that would do the trick either though, but you can investigate into it further if you want.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 5 of 5

Hi,

 

Thanks for your help.

 

I added a ribbon panel in ZeroDoc, Assembly, Part and Drawing.

 

I wanted to disable some buttons where the user is in Home tab.

 

As I can't get the event when user select Home tab, I choose to show only the activated buttons in the ZeroDoc Ribbon.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report