<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>In UdmGme.h (Udm r3.2.8), there is a function IUnknown* UdmGme::Udm2Gme(Udm::Object o), which will return either an IMgaFCO or IMgaFolder COM pointer (as defined in Mga.h in GME), or NULL if o is not a GME object. After you QueryInterface the returned pointer, IMgaFCO and IMgaFolder have a method set_RegistryValue, into which you can pass name &#8220;icon&#8221; or &#8220;nameColor&#8221;. The value for nameColor is of the format 0xRRGGBB.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Unfortunately there&#8217;s no proper list, but these display properties are stored in the registry, so you can set it manually for an object, then right-click it and select &#8220;Registry&#8230;&#8221; to get the name of the property. If you need a list, download the GME sources and look at gme\objectinspector\preference.cpp.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Kevin<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> great-users-bounces@list.isis.vanderbilt.edu [mailto:great-users-bounces@list.isis.vanderbilt.edu] <b>On Behalf Of </b>Florian Kraus<br><b>Sent:</b> Thursday, August 25, 2011 7:11 AM<br><b>To:</b> great-users<br><b>Subject:</b> [great-users] AttributeMapping: Icon Name and Name Color<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;d kindly ask you to help me in the following subject:<o:p></o:p></p><p class=MsoNormal>How can I set the attributes or preferences of an object during a transformation?<o:p></o:p></p><p class=MsoNormal>I&#8217;d prefer to write this code in the ExpressionString of an AttributeMapping-Object.<o:p></o:p></p><p class=MsoNormal>Especially I&#8217;d like to set the &#8220;Icon name&#8221; and the &#8220;Name Color&#8221; attribute.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks to GReAT-Samples I already managed to set &#8220;name&#8221; and &#8220;position&#8221; &#8211; is there a similar method for other attributes?<o:p></o:p></p><p class=MsoNormal>Where can I find a list of the proper attribute names?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thank you in advance.<o:p></o:p></p><p class=MsoNormal>Best regards<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Florian Kraus<o:p></o:p></p></div></body></html>