<div dir="ltr">1. You want the ShowFCO method on the GME interface (IGMEOleIt):<div><div>[helpstring("ShowFCO - accepts relative path both up and down. For models only: If InParent == true shown selected in parent, otherwise opened.")]</div><div>HRESULT ShowFCO( [in] BSTR path, [in, defaultvalue(0)] VARIANT_BOOL inParent );</div></div><div><br></div><div>You can get the GME interface from the project:</div><div><br></div><div>project->GetClientByName(_bstr_t(L"GME.Application"), &client)<br></div><div><br></div><div>2.</div><div>Yes, that's what the hyperlinks do. You could try writing a link like <a href="javascript:gme.MgaProject.BeginTransactionInNewTerr(); gme.ShowFCO(gme.MgaProject.GetFCOByID(&quot;id-0065-000011&quot;), true); gme.MgaProject.CommitTransaction()">model</a></div><div>(I haven't tested this code. You may need to call ShowFCO outside the transaction)</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, Oct 23, 2017 at 4:54 AM, Somesh Das <span dir="ltr"><<a href="mailto:somesh_au@yahoo.com" target="_blank">somesh_au@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><span>Hi,</span></div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><span id="m_-7005399429603231165yui_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="m_-7005399429603231165yui_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="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><br></div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18968">HRESULT hres = decorator.CoCreateInstance(L"<wbr>MGA.BoxDecorator" );</div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18969" dir="ltr">decorator->Initialize(project-<wbr>>getProjectI(), NULL,fco (intended fco));</div><div dir="ltr" id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18971">decorator->SetSelected(value);</div><div></div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"> </div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555">However this code is not working.</div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br></div><div id="m_-7005399429603231165yui_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="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br></div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr">Console::Out::WriteLine(<wbr>CString("-> Source: ") + Formatter::<wbr>MakeObjectHyperlink(CString(<wbr>namePath.c_str()), CString(connEnd->getID().c_<wbr>str())));<br></div><div id="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div id="m_-7005399429603231165yui_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="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div id="m_-7005399429603231165yui_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="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555" dir="ltr"><br></div><div class="m_-7005399429603231165signature" id="m_-7005399429603231165yui_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="m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_19210">Thanks & Regards<span class="HOEnZb"><font color="#888888"><br>Somesh Das<br><br></font></span></font></div></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>