<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1508750509526_2585"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1508750509526_2585"><span id="yui_3_16_0_ym19_1_1508750509526_18947">I am developing an interpreter for GME which will find out all objects connected with selected objects.</span></div><div id="yui_3_16_0_ym19_1_1508750509526_2585">For this purpose I need set selection on a set of objects in GME. I tried to get the default decorator for GME and tried the following code</div><div id="yui_3_16_0_ym19_1_1508750509526_2585"><br></div><div id="yui_3_16_0_ym19_1_1508750509526_18968">HRESULT hres = decorator.CoCreateInstance(L"MGA.BoxDecorator" );</div><div id="yui_3_16_0_ym19_1_1508750509526_18969" dir="ltr">decorator->Initialize(project->getProjectI(), NULL,fco (intended fco));</div><div dir="ltr" id="yui_3_16_0_ym19_1_1508750509526_18971">decorator->SetSelected(value);</div><div></div><div id="yui_3_16_0_ym19_1_1508750509526_15555"> </div><div id="yui_3_16_0_ym19_1_1508750509526_15555">However this code is not working.</div><div id="yui_3_16_0_ym19_1_1508750509526_15555"><br></div><div id="yui_3_16_0_ym19_1_1508750509526_15555">Actually my intention is to make a hyperlink of all connected fco. If user clicks on the hyperlink then corresponding fco will be shown up and tried the following code</div><div id="yui_3_16_0_ym19_1_1508750509526_15555"><br></div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr">Console::Out::WriteLine(CString("-> Source: ") + Formatter::MakeObjectHyperlink(CString(namePath.c_str()), CString(connEnd->getID().c_str())));<br></div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr">For Atom this code is working but if the connected fco is model then if select the hyperlink then its going inside the model which is not my intend. I want to make selection only.</div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr">Please can anybody suggest me how to make a selection on an object Programatically.</div><div id="yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div class="signature" id="yui_3_16_0_ym19_1_1508750509526_15556"><font face="HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" size="2" id="yui_3_16_0_ym19_1_1508750509526_19210">Thanks & Regards<br>Somesh Das<br><br></font></div></div></body></html>