[gme-users] Invoking an Add-On from a Decorator event
Kevin Smyth
kevin.m.smyth at gmail.com
Mon Feb 26 12:22:27 CST 2018
Hi Cinthya,
IMgaProject.AddOnComponents is the way to do this. You can find an example
here:
https://github.com/metamorph-inc/meta-core/blob/master/src/CyPhyMetaLink/CyPhyMetaLinkInterpreter.cs#L517
Kevin
On Mon, Feb 26, 2018 at 12:03 PM, Cinthya Lopez <
Cinthya_K_Lopez at raytheon.com> wrote:
> 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
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/gme-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20180226/4c5531a6/attachment.html>
More information about the gme-users
mailing list