<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Standards Forum</title>
    <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/" />
    <link rel="self" type="application/atom+xml" href="http://www.presagis.com/standards_forum/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2012</rights>
    <generator uri="http://expressionengine.com/" version="1.6.9">ExpressionEngine</generator>
    <id>tag:presagis.com,2012:02:03</id>


    <entry>
      <title>MgGetCode = 4097</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1154/" />      
      <id>tag:presagis.com,2012:standards_forum/viewthread/.1154</id>
      <published>2012-02-02T15:56:20Z</published>
      <updated></updated>
      <author><name>jrhea</name></author>
      <content type="html">
      <![CDATA[
        <p>Can you tell me what a code 4097 is for?&nbsp; It looks like some sort of reference node.&nbsp; The problem is I can&#8217;t call mgGetName on a node that is of type 4097.&nbsp; How would I change the name of that node? Or how would I change to what the node refers to?&nbsp; Thanks!
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Problems debugging</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1153/" />      
      <id>tag:presagis.com,2012:standards_forum/viewthread/.1153</id>
      <published>2012-02-01T13:12:14Z</published>
      <updated></updated>
      <author><name>jrhea</name></author>
      <content type="html">
      <![CDATA[
        <p>I am using MS Visual Studio 2008 and C++.&nbsp; When I try to debug, the mgOpenDb command fails.&nbsp; Is there a trick to getting the debugger to work with the OpenFlight API?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>CDB User Group Presentation &#45; ITSEC 2011</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1139/" />      
      <id>tag:presagis.com,2012:standards_forum/viewthread/.1139</id>
      <published>2012-01-13T08:39:59Z</published>
      <updated></updated>
      <author><name>David.Nadeau</name></author>
      <content type="html">
      <![CDATA[
        <p>Here is the presentation from the CDB User Group at ITSEC 2011.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>OpenFlight LightPoint Light Phase</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/570/" />      
      <id>tag:presagis.com,2010:standards_forum/viewthread/.570</id>
      <published>2010-04-01T15:17:03Z</published>
      <updated></updated>
      <author><name>John Hortenstine</name></author>
      <content type="html">
      <![CDATA[
        <p>Lightpoints can have a phase set in a shapefile by the LPH attribute. Currently there is not a way to set it in a OpenFlight model. It is necessary for beacons and runway guard light boxes.</p>

<p>Has there been thought on how to officially support light phase in OpenFlight?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Buildings in CDB</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/713/" />      
      <id>tag:presagis.com,2010:standards_forum/viewthread/.713</id>
      <published>2010-09-01T05:32:20Z</published>
      <updated>2010-09-01T06:00:34Z</updated>
      <author><name>AndyS</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,</p>

<p>We have vector data for an urban area comprising approx 30,000 footprints of buildings.</p>

<p>In previous terrain database formats these footprints have been extruded (based upon a &#8216;height&#8217; atttribute) and textured (based upon a &#8216;building type&#8217; attribute).</p>

<p>What is the crrently recommended way of representing this information in CDB? </p>

<p>The spec seems to suggest that the FACC codes associated with buildings should exist as point features rather than areal - but to achive correlation with our existing databases this would presumably require us to generate 30,000 geo-specific building models, which doesn&#8217;t sound like fun!</p>

<p>Is there a &#8216;correct &#8217; way to represent these individual buildings as areal features?</p>



<p>Thanks,<br />
Andy Stannard<br />
BAE SYSTEMS
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>openflightextensionmanager.dll</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1127/" />      
      <id>tag:presagis.com,2011:standards_forum/viewthread/.1127</id>
      <published>2011-12-12T10:36:05Z</published>
      <updated></updated>
      <author><name>MattN</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,</p>

<p>It&#8217;s been a long time since I last posted&#8230;..but I hope someone can help me with my current issue:</p>

<p>I&#8217;ve written a stand-alone app using the 4.0 API (and subsequently the 4.2 API), but&#8230;..and here&#8217;s where things get weird&#8230;..if I point the environment variable PRESAGIS_CREATOR_PLUGIN_DIR to a directory that contains the openflightextensionmanager.dll, then a directory is created with a garbage name in the tool&#8217;s home directory. If I remove the offending dll, or point the env var to a directory without it in, then all is fine. This strange, empty, garbaged-name directory is created during the mgInit() call.</p>

<p>Can anyone relate to this? Any suggestions?</p>

<p>Thanks for your time,</p>

<p>MattN
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>OpenFlight Script: Tip for batch processing database files without the Batch Run Script command in Creator</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1124/" />      
      <id>tag:presagis.com,2011:standards_forum/viewthread/.1124</id>
      <published>2011-12-02T16:59:54Z</published>
      <updated>2011-12-02T17:01:01Z</updated>
      <author><name>SteveThompson</name></author>
      <content type="html">
      <![CDATA[
        <p>During the OpenFlight User Group Meeting at I/ITSEC on 11/30/2011, tips and tricks were presented for using OpenFlight Script and Creator Script.</p>

<p>Here is a script presented that shows how to process multiple OpenFlight database files without using the Creator Pro command <b>Batch Run Script</b>.&nbsp; Note that you can use this technique to apply OpenFlight Script commands to your databases but you cannot invoke Creator Script commands in this way.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">def&nbsp;ProcessNodeCB&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">db</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">parent</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">rec</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">userData</span><span style="color: #007700">):&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;this&nbsp;"mgWalk"&nbsp;callback&nbsp;processes&nbsp;each&nbsp;node&nbsp;visited&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">type&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetCode&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">rec</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">type&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">fltPolygon</span><span style="color: #007700">):<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;do&nbsp;something&nbsp;to&nbsp;the&nbsp;polygon<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">print&nbsp;</span><span style="color: #DD0000">"Processing&nbsp;polygon:"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mgGetName</span><span style="color: #007700">(</span><span style="color: #0000BB">rec</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">MG_TRUE<br /><br />def&nbsp;ProcessOneFile&nbsp;&#40;db&#41;</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;</span><span style="color: #DD0000">"Processing&nbsp;file:"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mgRec2Filename</span><span style="color: #007700">(</span><span style="color: #0000BB">db&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;mgWalk&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">db</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ProcessNodeCB</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">None</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">None</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MWALK_NOREADONLY</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">outs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgPromptDialogFile&nbsp;&#40;None</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MPFM_OPEN</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MPFA_FLAGS</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MPFF_FILEMUSTEXIST</span><span style="color: #007700">|</span><span style="color: #0000BB">MPFF_MULTISELECT</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MPFA_PATTERN</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"OpenFlight&nbsp;Files|*.flt"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MPFA_TITLE</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Select&nbsp;OpenFlight&nbsp;Files&nbsp;to&nbsp;Process"&nbsp;</span><span style="color: #0000BB">&#41;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />status&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">outs&#91;0&#93;<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">MSTAT_ISOK</span><span style="color: #007700">(</span><span style="color: #0000BB">status&#41;</span><span style="color: #007700">):<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">numFiles&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">outs&#91;1&#93;<br />&nbsp;&nbsp;&nbsp;&nbsp;fileNames&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">outs&#91;2</span><span style="color: #007700">:</span><span style="color: #0000BB">len</span><span style="color: #007700">(</span><span style="color: #0000BB">outs</span><span style="color: #007700">)</span><span style="color: #0000BB">&#93;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">fileName&nbsp;in&nbsp;fileNames</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgOpenDb&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">fileName</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ProcessOneFile&nbsp;&#40;db&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mgWriteDb&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">db&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mgCloseDb&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">db</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;</span><span style="color: #DD0000">"Finished"<br /></span><span style="color: #007700">else:<br />&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;</span><span style="color: #DD0000">"User&nbsp;Canceled"&nbsp;</span>
</span>
</code></div>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Creator Script: Tip for using array type parameters in parameter blocks of Creator Script commands</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1123/" />      
      <id>tag:presagis.com,2011:standards_forum/viewthread/.1123</id>
      <published>2011-12-02T16:54:48Z</published>
      <updated>2011-12-02T16:56:23Z</updated>
      <author><name>SteveThompson</name></author>
      <content type="html">
      <![CDATA[
        <p>During the OpenFlight User Group Meeting at I/ITSEC on 11/30/2011, tips and tricks were presented for using OpenFlight Script and Creator Script.</p>

<p>Here is a script presented that shows how to use the Creator Script command <b>Modify Attributes</b>.&nbsp; It shows different ways to modify a node&#8217;s color.&nbsp; It also shows how to modify a nested attribute value using the <b>Nested Record Code</b> parameter.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">#&nbsp;this&nbsp;script&nbsp;executes&nbsp;the&nbsp;Creator&nbsp;tool:&nbsp;Modify&nbsp;Attributes<br />#&nbsp;to&nbsp;demonstrate&nbsp;how&nbsp;to&nbsp;modify&nbsp;different&nbsp;attributes&nbsp;of&nbsp;selected&nbsp;nodes<br /><br />#&nbsp;set&nbsp;the&nbsp;face/mesh&nbsp;Creator&nbsp;primary&nbsp;color&nbsp;index&nbsp;to&nbsp;127<br /></span><span style="color: #0000BB">paramBlock&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetParamBlock&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Nested&nbsp;Record&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;field&nbsp;is&nbsp;not&nbsp;nested<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Attribute&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltPolyCreatorPrimeColor</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Integer&nbsp;Value"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">127</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;set&nbsp;the&nbsp;face/mesh&nbsp;primary&nbsp;color&nbsp;index&nbsp;to&nbsp;0&nbsp;and&nbsp;primary&nbsp;color&nbsp;intensity&nbsp;to&nbsp;1.0<br />#&nbsp;this&nbsp;is&nbsp;just&nbsp;a&nbsp;different&nbsp;way&nbsp;to&nbsp;set&nbsp;Creator&nbsp;primary&nbsp;color&nbsp;index&nbsp;of&nbsp;127<br /></span><span style="color: #0000BB">paramBlock&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetParamBlock&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Nested&nbsp;Record&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;field&nbsp;is&nbsp;not&nbsp;nested<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Attribute&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltPolyPrimeColor</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Integer&nbsp;Value"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)<br /></span><span style="color: #FF8000">#&nbsp;note&nbsp;that&nbsp;we&nbsp;can&nbsp;reuse&nbsp;the&nbsp;paramBlock&nbsp;and&nbsp;just&nbsp;change&nbsp;the<br />#&nbsp;necessary&nbsp;fields&nbsp;to&nbsp;set&nbsp;the&nbsp;intensity&nbsp;value<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Attribute&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltPolyPrimeIntensity</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Double&nbsp;Value"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1.0</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;set&nbsp;the&nbsp;face/mesh&nbsp;draw&nbsp;type&nbsp;to&nbsp;solid<br /></span><span style="color: #0000BB">paramBlock&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetParamBlock&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Nested&nbsp;Record&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;field&nbsp;is&nbsp;not&nbsp;nested<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Attribute&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltPolyDrawType</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Integer&nbsp;Value"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;set&nbsp;the&nbsp;vertex&nbsp;x&nbsp;coordinate&nbsp;to&nbsp;5.0<br /></span><span style="color: #0000BB">paramBlock&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetParamBlock&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Nested&nbsp;Record&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltCoord3d</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;field&nbsp;is&nbsp;nested<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Attribute&nbsp;Code"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltCoord3dX</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Double&nbsp;Value"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5.0</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Modify&nbsp;Attributes"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Creator Script: Tip for using array type parameters in parameter blocks of Creator Script commands</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1122/" />      
      <id>tag:presagis.com,2011:standards_forum/viewthread/.1122</id>
      <published>2011-12-02T16:50:57Z</published>
      <updated></updated>
      <author><name>SteveThompson</name></author>
      <content type="html">
      <![CDATA[
        <p>During the OpenFlight User Group Meeting at I/ITSEC on 11/30/2011, tips and tricks were presented for using OpenFlight Script and Creator Script.</p>

<p>Here is a script presented that shows how to use array type parameters in the parameter blocks you provide to commands in Creator Script.</p>

<p>We invite your questions or comments.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">#&nbsp;this&nbsp;script&nbsp;executes&nbsp;the&nbsp;Creator&nbsp;tool:&nbsp;Polygon<br />#&nbsp;to&nbsp;create&nbsp;a&nbsp;simple&nbsp;square&nbsp;polygon<br /><br />#&nbsp;get&nbsp;the&nbsp;database&nbsp;the&nbsp;script&nbsp;is&nbsp;running&nbsp;on<br /></span><span style="color: #0000BB">db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetCurrentDb</span><span style="color: #007700">()<br /><br /></span><span style="color: #FF8000">#&nbsp;get&nbsp;a&nbsp;parameter&nbsp;block&nbsp;that&nbsp;can&nbsp;be&nbsp;used&nbsp;for&nbsp;the&nbsp;Polygon&nbsp;tool<br /></span><span style="color: #0000BB">paramBlock&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mgGetParamBlock&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Polygon"</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;set&nbsp;up&nbsp;the&nbsp;tool&nbsp;parameters<br /><br />#&nbsp;make&nbsp;a&nbsp;solid&nbsp;polygon<br /></span><span style="color: #0000BB">mgParamSet&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Type"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Solid"</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;the&nbsp;"Points"&nbsp;parameter&nbsp;is&nbsp;an&nbsp;array&nbsp;type&nbsp;parameter&nbsp;of&nbsp;double3&nbsp;values<br />#&nbsp;each&nbsp;point&nbsp;in&nbsp;the&nbsp;array&nbsp;represents&nbsp;vertex&nbsp;on&nbsp;the&nbsp;polygon&nbsp;to&nbsp;be&nbsp;created<br />#&nbsp;the&nbsp;order&nbsp;of&nbsp;the&nbsp;points&nbsp;is&nbsp;the&nbsp;order&nbsp;the&nbsp;vertices&nbsp;will&nbsp;be&nbsp;created<br />#&nbsp;and&nbsp;will&nbsp;determine&nbsp;the&nbsp;front/back&nbsp;of&nbsp;the&nbsp;polygon<br /><br />#&nbsp;use&nbsp;mgParamSet&nbsp;to&nbsp;set&nbsp;the&nbsp;first&nbsp;point&nbsp;in&nbsp;the&nbsp;parameter&nbsp;array<br />#&nbsp;when&nbsp;you&nbsp;do&nbsp;this,&nbsp;the&nbsp;first&nbsp;item&nbsp;in&nbsp;the&nbsp;array&nbsp;is&nbsp;set&nbsp;and&nbsp;the&nbsp;length<br />#&nbsp;of&nbsp;the&nbsp;array&nbsp;is&nbsp;reset&nbsp;to&nbsp;one<br /></span><span style="color: #0000BB">mgParamSet&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Points"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#91;&nbsp;0</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0&#93;</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;use&nbsp;mgParamAppend&nbsp;to&nbsp;add&nbsp;subsequent&nbsp;points&nbsp;to&nbsp;the&nbsp;array<br /></span><span style="color: #0000BB">mgParamAppend&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Points"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#91;10</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0&#93;</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamAppend&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Points"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#91;10</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0&#93;</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">mgParamAppend&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Points"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#91;&nbsp;0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0&#93;</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;set&nbsp;the&nbsp;modeling&nbsp;mode&nbsp;to&nbsp;polygon&nbsp;-&nbsp;this&nbsp;will&nbsp;create&nbsp;a&nbsp;face&nbsp;node<br />#&nbsp;for&nbsp;the&nbsp;new&nbsp;polygon&nbsp;below&nbsp;the&nbsp;current&nbsp;modeling&nbsp;parent<br />#&nbsp;if&nbsp;you&nbsp;set&nbsp;modeling&nbsp;mode&nbsp;to&nbsp;object&nbsp;(fltObject),&nbsp;an&nbsp;object&nbsp;node<br />#&nbsp;would&nbsp;be&nbsp;created&nbsp;above&nbsp;the&nbsp;new&nbsp;face&nbsp;(just&nbsp;like&nbsp;in&nbsp;Creator)<br /></span><span style="color: #0000BB">mgSetModelingMode&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">db</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fltPolygon</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;execute&nbsp;the&nbsp;Polygon&nbsp;tool<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Polygon"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paramBlock</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Creator Script: Tip for using Triangulate to process non&#45;planar faces</title>
      <link rel="alternate" type="text/html" href="http://www.presagis.com/standards_forum/viewthread/1121/" />      
      <id>tag:presagis.com,2011:standards_forum/viewthread/.1121</id>
      <published>2011-12-02T16:45:53Z</published>
      <updated></updated>
      <author><name>SteveThompson</name></author>
      <content type="html">
      <![CDATA[
        <p>During the OpenFlight User Group Meeting at I/ITSEC on 11/30/2011, tips and tricks were presented for using OpenFlight Script and Creator Script.</p>

<p>Here is a very simple script presented that shows how to use two Creator Script commands together.&nbsp; The first selects nodes to process (specifically, non-planar faces).&nbsp; The second processes the non-planar faces selected by triangulating them.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">#&nbsp;select&nbsp;faces&nbsp;that&nbsp;are&nbsp;not&nbsp;planar<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Select&nbsp;Nonplanar&nbsp;Faces"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">None</span><span style="color: #007700">)<br /><br /></span><span style="color: #FF8000">#&nbsp;invoke&nbsp;the&nbsp;Triangulate&nbsp;command&nbsp;to&nbsp;triangulate&nbsp;the&nbsp;<br />#&nbsp;non-planar&nbsp;faces&nbsp;selected<br /></span><span style="color: #0000BB">mgExecute&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Triangulate"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">None</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div>
      ]]>
      </content>
    </entry>


</feed>
