[gme-users] Invoking an Add-On from a Decorator event

Cinthya Lopez Cinthya_K_Lopez at raytheon.com
Mon Feb 26 12:03:17 CST 2018


Hi all,

Does anyone know the recommended way to invoke an Add-On from a Decorator's event?

Currently I create an instance to my Add-On and call its ObjectEvent() function directly from my Decorator. This allowed me to run my add-on code but my current issue is that the add-on code brings up a form that allows the user to update an atom's attribute value. When the add-on form is brought up by the decorator the attribute's value is not updated with the new value; even though, MgaAtom. set_StrAttrByName() is called. If I understand correctly, an add-on is always running in the background, so should I be able to grab a reference to it instead of creating a new instance of it? I am thinking my issue could be that I am creating a new instance of the add-on instead of calling the instance that is currently running.

Thanks,
Cinthya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20180226/84a3f547/attachment.html>


More information about the gme-users mailing list