<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>GME sends OBJEVENT_ATTR events to Addons for
objects which are derived (subtypes or instances) when an attribute
value in the base type is modified. These notifications are redundant and
require the Addon developer to code around them.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The workaround is fairly straightforward, and I
mention it here so that other Addon developers might benefit. The
following code is Python.</FONT></DIV>
<DIV> </DIV>
<DIV>attr = obj.Attribute(obj.Meta.AttributeByName("SomeAttribute"))<BR>if
attr.Status < 1:</DIV>
<DIV> # the attribute is not inherited, so act on the OBJEVENT_ATTR
notification</DIV>
<DIV> </DIV>
<DIV>So, the Status property of an IMgaAttribute has a value >= 1 if the
attribute is inherited. If it is inherited, then whatever action is taken
for the object serving as the base type is sufficient.</DIV>
<DIV> </DIV>
<DIV>I hope that these redundant notifications will go away, because they could
cause an Addon to misbehave unless the check suggested above is made. BTW,
it should also be observed that the OBJEVENT_ATTR notification provides no
information regarding which attribute changed. (Yuk!)</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>lph</DIV>
<DIV>--<BR>Larry Howard<BR>Sr. Research Scientist<BR>Institute for Software
Integrated Systems, Vanderbilt University<BR><A
href="mailto:howardlp@isis.vanderbilt.edu">howardlp@isis.vanderbilt.edu</A>
voice: (615) 343-7447 fax: (615)
343-7440<BR><BR></DIV></FONT></DIV></BODY></HTML>