Get trigger on clicking "Tutorial Gallery" in Get Started tab

Get trigger on clicking "Tutorial Gallery" in Get Started tab

prakash.muthu
Advocate Advocate
454 Views
5 Replies
Message 1 of 6

Get trigger on clicking "Tutorial Gallery" in Get Started tab

prakash.muthu
Advocate
Advocate

Please help to find command or event triggered on clicking "Tutorial Gallery" in Get Started tab. Tried by checking start command event but not getting called.

0 Likes
455 Views
5 Replies
Replies (5)
Message 2 of 6

WCrihfield
Mentor
Mentor

Hi @prakash.muthu.  The name of the command that gets executed when you click that button is "TutorialGalleryCmd".

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 6

WCrihfield
Mentor
Mentor

You may be able to use the event within the UserInputEvents object named OnActivateCommand, to monitor for that command being activated, however, there does not appear to be any documentation about its 'Context' variable, so it may be a bit difficult to work with. 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 6

prakash.muthu
Advocate
Advocate

Below events not getting triggered

 

OnActivateCommand

OnStartCommand

OnTerminateCommand

0 Likes
Message 5 of 6

WCrihfield
Mentor
Mentor

Hi @prakash.muthu.  I had not tested whether or not it would be caught by monitoring those events prior to posting, but this morning after seeing your response I tested it with the OnActivateCommand event, and observed the same outcome as you.  When I click on other tools like the 2D Sketch button or the Extrude button it is triggering the OnActivateCommand event, but it is not triggering that event when I click on the Tutorial Gallery button, the What's New button, the Team Web button, or the Help button on the Get Started tab.  They may be a different kind of command that is not monitored by that event.  I'm not sure.  Since clicking the Tutorial Gallery button seems to change the 'Environment', maybe you could monitor for that environment transition, but I have not tried that myself yet either, and I do not know if there is an environment specifically named for use with the tutorial gallery.  Maybe what we are seeing displayed within the model window after clicking that button is something more like a WebBrowserDialog, because you can access pretty much the same thing through the help button drop-down, then Learn More, then Tutorials, which takes you to a web site, but but I am not sure because I have never explored into it before.  Just relaying some thoughts.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 6 of 6

prakash.muthu
Advocate
Advocate

Hi Wesley Crihfield,

 

Thanks for the details. Even OnEnvironmentChange event not getting triggered. 

0 Likes