<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Any fast way to get all node coordinates? in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/any-fast-way-to-get-all-node-coordinates/m-p/8520315#M3819</link>
    <description>&lt;P&gt;Hello Lance,&lt;/P&gt;
&lt;P&gt;the fastest way is to export the mesh into a text file format such as the Patran format or the UDM format. This writes all the mesh information into&amp;nbsp;a text which you can then quickly read back using standard vbs commands to get the coordinates.&lt;/P&gt;
&lt;P&gt;In fact, this is how many of the scripts I have written read and process the mesh information. Some of these scripts are already included as part of the Moldflow Insight installation (Look in:&amp;nbsp;C:\Program Files\Autodesk\Moldflow Synergy 2019\data\commands). For example, look at the ExportGasCoreSTL.vbs file and find the ReadData function in the MeshClass class. Notice also that ReadData is called in the Class_Initialize function immediate after the line: "Synergy.Project.ExportModel UdmName" which is the command to have a script write the mesh data into a text file having the name of path which is stored in the variabel UdmName.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 12:51:51 GMT</pubDate>
    <dc:creator>franco.costa</dc:creator>
    <dc:date>2019-01-14T12:51:51Z</dc:date>
    <item>
      <title>Any fast way to get all node coordinates?</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/any-fast-way-to-get-all-node-coordinates/m-p/8519928#M3818</link>
      <description>&lt;P&gt;I want to output all the nodes coordinates with NodeID.&lt;/P&gt;
&lt;P&gt;The code I used is some one posted in the forum as following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim StudyDoc, Node, Label, Coord&lt;BR /&gt;Set StudyDoc = Synergy.StudyDoc()&lt;BR /&gt;Set Node = StudyDoc.GetFirstNode()&lt;BR /&gt;While Not Node Is Nothing&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label = StudyDoc.GetEntityID(Node)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Coord = StudyDoc.GetNodeCoord(Node)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataFile.Write Label &amp;amp; Chr(9) &amp;amp; Coord.X &amp;amp; Chr(9) &amp;amp; Coord.Y &amp;amp; Chr(9) &amp;amp; Coord.Z &amp;amp; vbCrLf&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Node = StudyDoc.GetNextNode(Node)&lt;BR /&gt;Wend&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that, when the model is complicated, it requires several hours to output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other solution is faster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 09:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/any-fast-way-to-get-all-node-coordinates/m-p/8519928#M3818</guid>
      <dc:creator>lance.xi</dc:creator>
      <dc:date>2019-01-14T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Any fast way to get all node coordinates?</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/any-fast-way-to-get-all-node-coordinates/m-p/8520315#M3819</link>
      <description>&lt;P&gt;Hello Lance,&lt;/P&gt;
&lt;P&gt;the fastest way is to export the mesh into a text file format such as the Patran format or the UDM format. This writes all the mesh information into&amp;nbsp;a text which you can then quickly read back using standard vbs commands to get the coordinates.&lt;/P&gt;
&lt;P&gt;In fact, this is how many of the scripts I have written read and process the mesh information. Some of these scripts are already included as part of the Moldflow Insight installation (Look in:&amp;nbsp;C:\Program Files\Autodesk\Moldflow Synergy 2019\data\commands). For example, look at the ExportGasCoreSTL.vbs file and find the ReadData function in the MeshClass class. Notice also that ReadData is called in the Class_Initialize function immediate after the line: "Synergy.Project.ExportModel UdmName" which is the command to have a script write the mesh data into a text file having the name of path which is stored in the variabel UdmName.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 12:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/any-fast-way-to-get-all-node-coordinates/m-p/8520315#M3819</guid>
      <dc:creator>franco.costa</dc:creator>
      <dc:date>2019-01-14T12:51:51Z</dc:date>
    </item>
  </channel>
</rss>

