ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Contextual tab selector rules - available triggers?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
maisoui
755 Views, 5 Replies

Contextual tab selector rules - available triggers?

HI,

 

I'm looking for a list of all available triggers for Contextual Tab Selector rules (describing here). In the file AcContextualTabSelectorRules.xaml I noticed that only two triggers are used:

  • Selection
  • SystemVariable

Is there trigger for command? In this case, what is the right syntax to use?

 

Regards,

Jonathan

 

--
Jonathan
5 REPLIES 5
Message 2 of 6
philippe.leefsma
in reply to: maisoui

Hi Jonathan,

 

I'm checking with engineering to see if they have suggestions about it.

 

In the meantime you may find the following post useful. If you want to display a contextual tab upon your own command invocation, you could tweak the approach:

 

Displaying a contextual tab upon entity selection using Ribbon runtime API

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 6

Here is the feedback from my colleague:

 

The contextual tab evaluation is triggered on a selection change event, a sysvar notification event and on a double click event. The easiest way would be to create your own sysvar, add a contextual tab rule using the sysvar. The sysvar can be set on command invocation so that the contextual tab is displayed, and reset on command completion. I believe HATCH command does something similar, it sets the HATCHCREATION sysvar.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 4 of 6
maisoui
in reply to: philippe.leefsma

Hi,

 

Thank you for your replies. Your solution sounds good, but how to create my own sysvar? I thought about this solution but it seemed impossible to create a custom sysvar. A solution would be to use the USER... variables, but they are accessible by everyone. Smiley Frustrated

 

Regards,

Jonathan

 

--
Jonathan
Message 5 of 6
philippe.leefsma
in reply to: maisoui

Ability to create custom sysvar has been introduced in AutoCAD 2010.

 

See attached sample for a demo.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 6 of 6
maisoui
in reply to: philippe.leefsma

Perfect. Thank you very much.

Regards,

Jonathan

 

--
Jonathan

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

Post to forums  

Autodesk Design & Make Report

”Boost