<div dir="ltr">Hi Cinthya,<div><br></div><div>IMgaProject.AddOnComponents is the way to do this. You can find an example here: <a href="https://github.com/metamorph-inc/meta-core/blob/master/src/CyPhyMetaLink/CyPhyMetaLinkInterpreter.cs#L517">https://github.com/metamorph-inc/meta-core/blob/master/src/CyPhyMetaLink/CyPhyMetaLinkInterpreter.cs#L517</a></div><div><br></div><div>Kevin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 12:03 PM, Cinthya Lopez <span dir="ltr"><<a href="mailto:Cinthya_K_Lopez@raytheon.com" target="_blank">Cinthya_K_Lopez@raytheon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-6025095120411199664WordSection1">
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Does anyone know the recommended way to invoke an Add-On from a Decorator’s event?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Cinthya<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.<wbr>vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/gme-users" rel="noreferrer" target="_blank">http://list.isis.vanderbilt.<wbr>edu/cgi-bin/mailman/listinfo/<wbr>gme-users</a><br>
<br></blockquote></div><br></div>