Gallery Events

Gallery Events

Anonymous
Not applicable
272 Views
3 Replies
Message 1 of 4

Gallery Events

Anonymous
Not applicable

Hi I hope someone can help out with this one, I've created a gallery on my ribbon with a number of buttons. They all have an event created at run time which call the same event (as I don't know at run time which gallery items will be present).

In my event handler I need to identify the control which called it so I can handle it properly. But the standard control signature of (Sender, e) isn't used by teh Inventor ribbon controls. Instead I have the 'context' which I can't figure out. Is there any guidance on either how the context (NameValueMap) term is used to determine what fired a given event, or is there another method I'm missing?

Many thansk in advance.

0 Likes
273 Views
3 Replies
Replies (3)
Message 2 of 4

Balaji_Ram
Alumni
Alumni

Hi James,

 

Sorry, this is a known behavior.

We have a request logged in our internal database to provide sender information in the callback method.

 

At present, it is not possible to know the button that originates the call by using the NameValueMap

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi Balaji, thanks for your response, although it's not particularly helpful at this point, is there a time scale in mind for implementing this, or is there some form of workaround, I've been wracking my brains for days but I can't come up with a way of using dynamically created controls in the ribbon. The only solution I have so far it to build a separate form which controls everything, but this does lack the elegance of integrating systems into the Inventor control interface.
Regards
James
0 Likes
Message 4 of 4

Balaji_Ram
Alumni
Alumni

Hi James,

 

Sorry, the request has not been prioritized yet as this is only important when adding button definitions at runtime.

So, I do not know when this will be available. 

 

Also, I haven't found a workaround for it. 

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes