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:
Is there trigger for command? In this case, what is the right syntax to use?
Regards,
Jonathan
Solved! Go to Solution.
Solved by philippe.leefsma. Go to Solution.
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.
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.
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.
Regards,
Jonathan
Ability to create custom sysvar has been introduced in AutoCAD 2010.
See attached sample for a demo.
Regards,
Philippe.