<?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: VBS for exporting XY plot for one node in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5894140#M7885</link>
    <description>&lt;P&gt;Node selection is not recorded in the script. 1180 is the result ID for pressure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the following two lines after "Set Plot = Viewer.ActivePlot()"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plot.SetXYPlotMaxNumberOfCurves 10&lt;BR /&gt;Plot.SetPlotNodesFromString "N1 N2 N3 N4 N5"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first line is to set the max number of curves to 10 (max number allowed in one plot).&lt;/P&gt;&lt;P&gt;The second line is to specify nodes in the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2015 13:53:09 GMT</pubDate>
    <dc:creator>jinwang</dc:creator>
    <dc:date>2015-11-05T13:53:09Z</dc:date>
    <item>
      <title>VBS for exporting XY plot for one node</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5893918#M7884</link>
      <description>&lt;P&gt;I am recording a macro to export one node XY plot in txt form. That was very esay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am trying to edit the VB script so I can export XY plot for another node, and the code does not contain the Node number. In the macro I have exported node N12508 . The only data I have in the code is ID 1180.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I select a different node in the VB script ?&lt;/P&gt;&lt;P&gt;the purpose is to make a script that can export XY&amp;nbsp; plot for 10 or 20 nodes. (So recording again a macro for the other node is not the solution i am looking for.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code of the Macro for exporting one node XY plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'%RunPerInstance&lt;BR /&gt;'@ DESCRIPTION&lt;BR /&gt;'@ Macro recorded by Synergy on 05-Nov-2015 at 11:46:20&lt;BR /&gt;SetLocale("en-us")&lt;BR /&gt;Dim SynergyGetter, Synergy&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Set SynergyGetter = GetObject(CreateObject("WScript.Shell").ExpandEnvironmentStrings("%SAInstance%"))&lt;BR /&gt;On Error GoTo 0&lt;BR /&gt;If (Not IsEmpty(SynergyGetter)) Then&lt;BR /&gt;&amp;nbsp;Set Synergy = SynergyGetter.GetSASynergy&lt;BR /&gt;Else&lt;BR /&gt;&amp;nbsp;Set Synergy = CreateObject("synergy.Synergy")&lt;BR /&gt;End If&lt;BR /&gt;Synergy.SetUnits "Metric"&lt;BR /&gt;Set PlotManager = Synergy.PlotManager()&lt;BR /&gt;Set Plot = PlotManager.CreatePlotByDsID(1180, True)&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Viewer.ShowPlot Plot&lt;BR /&gt;Set PlotManager = Synergy.PlotManager()&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Set Plot = Viewer.ActivePlot()&lt;BR /&gt;Plot.SaveXYPlotCurveData "C:\Users\rouhana\Desktop\Pressure data for one node\Node N12508 XY Pressure.txt"&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5893918#M7884</guid>
      <dc:creator>rami.rouhana</dc:creator>
      <dc:date>2015-11-05T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: VBS for exporting XY plot for one node</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5894140#M7885</link>
      <description>&lt;P&gt;Node selection is not recorded in the script. 1180 is the result ID for pressure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the following two lines after "Set Plot = Viewer.ActivePlot()"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plot.SetXYPlotMaxNumberOfCurves 10&lt;BR /&gt;Plot.SetPlotNodesFromString "N1 N2 N3 N4 N5"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first line is to set the max number of curves to 10 (max number allowed in one plot).&lt;/P&gt;&lt;P&gt;The second line is to specify nodes in the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:53:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5894140#M7885</guid>
      <dc:creator>jinwang</dc:creator>
      <dc:date>2015-11-05T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: VBS for exporting XY plot for one node</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5895887#M7886</link>
      <description>&lt;P&gt;Thank you, it worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just watned to ask, where did you find that code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a pdf file that lists those ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 10:11:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5895887#M7886</guid>
      <dc:creator>rami.rouhana</dc:creator>
      <dc:date>2015-11-06T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: VBS for exporting XY plot for one node</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5895979#M7887</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer the below image&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/198947iD034FD22A463917B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="class.png" title="class.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you are in this page, you can refer the required classes &amp;amp; methods&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 11:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/vbs-for-exporting-xy-plot-for-one-node/m-p/5895979#M7887</guid>
      <dc:creator>mppkumar</dc:creator>
      <dc:date>2015-11-06T11:27:49Z</dc:date>
    </item>
  </channel>
</rss>

