TriadEvents Bug

TriadEvents Bug

wgraham
Advocate Advocate
272 Views
1 Reply
Message 1 of 2

TriadEvents Bug

wgraham
Advocate
Advocate

Anyone else out there using the TriadEvents?  I can get the triad started and capture all the changes etc, but can't find a way to capture when the event triad is applied or cancelled.  I can detect the termination of the of the overall interaction event which I think may be triggering ahead of the triad event and killing the event I want.  Otherwise if anyone has a different way to see if the triad was cancelled by the user I would appreciate that.  Below is a subset of the code I'm trying to use.

 

 interaction = App.CommandManager.CreateInteractionEvents();
interaction.SelectionActive = false;
interaction.InteractionDisabled = true;

triadEvents = interaction.TriadEvents;
triadEvents.Repeat = true;
triadEvents.Enabled = true;

//These events don't appear to trigger
triadEvents.OnActivate += TriadEvents_OnActivate;
triadEvents.OnTerminate += TriadEvents_OnTerminate;

//Can hit everyone of these events
triadEvents.OnStartSequence += TriadEvents_OnStartSequence;
triadEvents.OnEndSequence += TriadEvents_OnEndSequence;
triadEvents.OnStartMove += TriadEvents_OnStartMove;
triadEvents.OnMove += TriadEvents_OnMove;
triadEvents.OnEndMove += TriadEvents_OnEndMove;
triadEvents.OnMoveTriadOnlyToggle += TriadEvents_OnMoveTriadOnlyToggle;
triadEvents.OnSegmentSelectionChange += TriadEvents_OnSegmentSelectionChange;

interaction.OnSuspend += Interaction_OnSuspend;
interaction.OnResume += Interaction_OnResume; ;
interaction.OnTerminate += Interaction_OnTerminate;

interaction.Start();

 

0 Likes
273 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@wgraham,

 

OnTerminate event is not triggering on closing Triad tool in C#. For this, a change request(INVGEN - 17970 - OnTerminate event and OnEndSequence event of TriadEvents is not working in C#) is created with engineering team.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes