<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The section on "scripting GME" in the users' manual is related also. <div><br></div><div><br><div><div>On Sep 17, 2009, at 10:28 AM, Csaba Toth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
<!-- Converted from text/plain format --><p><font size="2">Hi Ioannis,<br>
<br>
I haven't ever done such things, but as far as I can see:<br>
For opening a model see ShowFCO function on IGMEOLEApp interface. For<br>
example code see Kevin Smyth's letter.<br>
[id(33)] HRESULT ShowFCO([in] IMgaFCO* mgaFCO, [in,<br>
defaultvalue(0)] VARIANT_BOOL inParent);<br>
You can close models with the Close function of IGMEOLEIt interface.<br>
[id(11)] HRESULT Close();<br>
For iteration see this on IGMEOLEApp:<br>
[propget, id(40)] HRESULT OleIt([out, retval] IGMEOLEIt **<br>
mgamodel);<br>
For navigation between open models you can use ShowFCO or Next/Prev<br>
functions of IGMEOLEIt:<br>
[helpstring("makes the next (if any) view (opened model) the<br>
active view ")]<br>
HRESULT Next();<br>
HRESULT Prev();<br>
<br>
Hope this helps,<br>
Csaba<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">gme-users-bounces@list.isis.vanderbilt.edu</a><br>
[<a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">mailto:gme-users-bounces@list.isis.vanderbilt.edu</a>] On Behalf Of Ioannis<br>
Ntalamagkas<br>
Sent: Thursday, September 17, 2009 5:15 AM<br>
To: gme-users<br>
Subject: [gme-users] Create/Open/Manage Sub-window in GME<br>
<br>
Hi everyone<br>
<br>
I am developing an interpreter for a model that has containment<br>
relationship. I would like to ask whether I can programmatically control<br>
<br>
GME within my interpreter to open/close/set focus a new sub-window or<br>
tab (in GME9) to display part of the model I am interested in.<br>
<br>
Thank you in advance.<br>
<br>
--<br>
Ioannis Ntalamagkas<br>
2.71 Kilburn Building<br>
The University of Manchester<br>
M13 9PL<br>
UK<br>
<br>
_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
</font>
</p>
</div>
</blockquote></div><br></div></body></html>