<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;">Hi Kavin,</font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;">I tried with single quotation instead of double quotation and wrote the following code:</font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">CString result ("<a href = \" javascript: gme.MgaProject.BeginTransactionInNewTerr (); gme.ShowFCO (gme.MgaProject.GetFCOByID ('id-0065-00000004'), true); gme.MgaProject.CommitTransaction (); \ ">" + text + "</a>");</font></font><br clear="none"></font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;">However in GME when I click on the link then it shows me an error "Could not complete operation due to error 87650036".</font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;">I also tried with <span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">double quotation which also shows error. <span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"> I attached a screenshots of the errors. </span></span></font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font style="vertical-align: inherit;"><br clear="none"></font></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div class="ydpa988efayiv5356466899ydp5a3aaf5fsignature" style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font face="HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" size="2"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Thanks & Regards </font></font><br clear="none"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Somesh Das</font></font></font></div><br></div><div><br></div><div class="ydp19c88513signature"><font face="HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" size="2"><br></font></div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_0584619346" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, October 26, 2017, 2:48:21 PM GMT+2, Kevin Smyth <kevin.m.smyth@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv2184170266"><div><div dir="ltr">I think you need:<div><br clear="none"></div><div><span style="color:rgb(0,0,0);">result + = """ + objectId + """; // id of the object</span><br clear="none"></div></div><div class="yiv2184170266yqt5476718205" id="yiv2184170266yqt49196"><div class="yiv2184170266gmail_extra"><br clear="none"><div class="yiv2184170266gmail_quote">On Thu, Oct 26, 2017 at 4:22 AM, Somesh Das <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:somesh_au@yahoo.com" target="_blank" href="mailto:somesh_au@yahoo.com">somesh_au@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv2184170266gmail_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="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_2889"><span><font style="vertical-align:inherit;"><font style="vertical-align:inherit;">Hi Kevin,</font></font></span></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_2889"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_7338"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_7337" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_7336" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_7335" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_7334" style="vertical-align:inherit;">I tried the code you suggested as follows :</font></font></font></font></span></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3067"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3166" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3165" style="vertical-align:inherit;">CString result ("<a href = \" javascript: ");</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3072"><br clear="none" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3073"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3074"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3075" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3138" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3137" style="vertical-align:inherit;">result + = "gme.MgaProject. BeginTransactionInNewTerr (); gme.ShowFCO (gme.MgaProject.GetFCOByID (";</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3076"><br clear="none" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3077"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3078"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3079" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3136" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3135" style="vertical-align:inherit;">result + = objectId; // id of the object</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3080"><br clear="none" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3081"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3082"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3083" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3134" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3133" style="vertical-align:inherit;">result + = "), true); gme.MgaProject. CommitTransaction ();";</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3084"><br clear="none" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3085"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3086"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3087" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3152" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3151" style="vertical-align:inherit;">result + = "\"> ";</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3088"><br clear="none" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3089"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3090"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3091" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3150" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3149" style="vertical-align:inherit;">result + = text; // name of the object</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_2889"><font style="vertical-align:inherit;"><font style="vertical-align:inherit;"></font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3092"><span id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3093" style="white-space:pre-wrap;"> </span><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3148" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3147" style="vertical-align:inherit;">result + = "</a>";</font></font></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3092"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3399" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3398" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3397" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_3396" style="vertical-align:inherit;">But in GME when I click on the hyperlink its showing a script error. I attached the screen shot of the error. Please let me know if I am doing any mistake.</font></font></font></font></div><span class="yiv2184170266"></span><div></div><div id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_2890"> </div><div class="yiv2184170266m_4064403694728025658signature" id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_2802"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_5713" face="HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" size="2"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_5712" style="vertical-align:inherit;"><font id="yiv2184170266m_4064403694728025658yui_3_16_0_ym19_1_1509009322897_5711" style="vertical-align:inherit;">Thanks & Regards </font></font><br clear="none"><font style="vertical-align:inherit;"><font style="vertical-align:inherit;">Somesh Das</font></font><br clear="none"><br clear="none"></font></div> <div class="yiv2184170266m_4064403694728025658qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv2184170266m_4064403694728025658yahoo_quoted" style="display:block;"> <div style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><span class="yiv2184170266"> </span><div dir="ltr"><font size="2" face="Arial"> On Monday, October 23, 2017 8:27 PM, Kevin Smyth <<a rel="nofollow" shape="rect" ymailto="mailto:kevin.m.smyth@gmail.com" target="_blank" href="mailto:kevin.m.smyth@gmail.com">kevin.m.smyth@gmail.com</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="yiv2184170266m_4064403694728025658y_msg_container"><div id="yiv2184170266m_4064403694728025658yiv8847876194"><div><span class="yiv2184170266"></span><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 clear="none"></div><div>You can get the GME interface from the project:</div><div><br clear="none"></div><div>project->GetClientByName(_ bstr_t(L"GME.Application"), &client)<br clear="none"></div><div><br clear="none"></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("id-0065- 000011"), 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 clear="none"></div><div>Kevin</div><div><br clear="none"></div><div><br clear="none"></div></div><div class="yiv2184170266m_4064403694728025658yiv8847876194gmail_extra"><br clear="none"><div class="yiv2184170266m_4064403694728025658yiv8847876194gmail_quote"><span class="yiv2184170266">On Mon, Oct 23, 2017 at 4:54 AM, Somesh Das <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:somesh_au@yahoo.com" target="_blank" href="mailto:somesh_au@yahoo.com">somesh_au@yahoo.com</a>></span> wrote:<br clear="none"></span><blockquote class="yiv2184170266m_4064403694728025658yiv8847876194gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv2184170266m_4064403694728025658yiv8847876194yqt3986859283" id="yiv2184170266m_4064403694728025658yiv8847876194yqt89494"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><span class="yiv2184170266"></span><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><span>Hi,</span></div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><span id="yiv2184170266m_4064403694728025658yiv8847876194m_-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="yiv2184170266m_4064403694728025658yiv8847876194m_-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="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_2585"><br clear="none"></div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18968">HRESULT hres = decorator.CoCreateInstance(L" MGA.BoxDecorator" );</div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18969">decorator->Initialize(project- >getProjectI(), NULL,fco (intended fco));</div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_18971">decorator->SetSelected(value);</div><div></div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"> </div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555">However this code is not working.</div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br clear="none"></div><div id="yiv2184170266m_4064403694728025658yiv8847876194m_-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="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br clear="none"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555">Console::Out::WriteLine( CString("-> Source: ") + Formatter:: MakeObjectHyperlink(CString( namePath.c_str()), CString(connEnd->getID().c_ str())));<br clear="none"></div><span class="yiv2184170266"></span><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br clear="none"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555">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 dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br clear="none"></div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555">Please can anybody suggest me how to make a selection on an object Programatically.</div><div dir="ltr" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15555"><br clear="none"></div><div class="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165signature" id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_15556"><font id="yiv2184170266m_4064403694728025658yiv8847876194m_-7005399429603231165yui_3_16_0_ym19_1_1508750509526_19210" face="HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" size="2">Thanks & Regards<span class="yiv2184170266m_4064403694728025658yiv8847876194HOEnZb"><font color="#888888"><br clear="none">Somesh Das<br clear="none"><br clear="none"></font></span></font></div></div></div></div><span class="yiv2184170266"><br clear="none">______________________________ _________________<br clear="none">
gme-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:gme-users@list.isis.vanderbilt.edu" target="_blank" href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis. vanderbilt.edu</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/gme-users">http://list.isis.vanderbilt. edu/cgi-bin/mailman/listinfo/ gme-users</a><br clear="none">
<br clear="none"></span></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></blockquote></div><br clear="none"></div></div></div></div></div>
</div>
</div></div></body></html>