<?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 How to use macros in probe plot of Deflection, all effects: X Component in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12795956#M505</link>
    <description>&lt;P&gt;I'm creating a macro for the deflection results.&lt;/P&gt;&lt;P&gt;During the process of obtaining the final result, I am having difficulty with the following problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, the order of macro application for plotting deflection, all effects:X Component is as follows.&lt;BR /&gt;Select New Plot--&amp;gt; Select Probe Plot in Deflection, all effects:X Component--&amp;gt;The result shows a negative value as shown below.&lt;BR /&gt;The created macro is as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="probe plot.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367251iD1233802234E402F/image-size/large?v=v2&amp;amp;px=999" role="button" title="probe plot.jpg" alt="probe plot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set PlotManager = Synergy.PlotManager()&lt;BR /&gt;Set Plot = PlotManager.CreatePlotByDsID2(6250, 19)&lt;BR /&gt;Plot.SetComponent 0&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Set PlotManager_1 = Synergy.PlotManager()&lt;BR /&gt;Set Plot_1 = PlotManager_1.FindPlotByName2("Deflection, all effects:Path Plot", "Deflection, all effects")&lt;BR /&gt;Set Viewer_1 = Synergy.Viewer()&lt;BR /&gt;Viewer_1.HidePlot Plot_1&lt;BR /&gt;Viewer.ShowPlot Plot&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Set Plot = Viewer.ActivePlot()&lt;BR /&gt;Plot.SetPlotMethod 19&lt;BR /&gt;Plot.SetPlotNodesFromString "N1111 N1112 N1113 N1114 N1115"&lt;BR /&gt;Set StudyDoc = Synergy.StudyDoc()&lt;BR /&gt;StudyDoc.Save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected to get the same result by running the macro.&lt;BR /&gt;However, the generated probe plot results did not show deflection results in the X direction.&lt;BR /&gt;This result is a positive value as a result of Vector in Plot Properties being selected as Magnitude.&lt;BR /&gt;I want to get the result for Deflection, all effects:X Component using a macro.&lt;BR /&gt;I can't find any API code explanation for this.&lt;/P&gt;&lt;P&gt;So, I want to know what the API code is for selecting vector-x.&lt;BR /&gt;Please explain how to solve this problem.&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2024 05:46:32 GMT</pubDate>
    <dc:creator>php5QCWQ</dc:creator>
    <dc:date>2024-05-25T05:46:32Z</dc:date>
    <item>
      <title>How to use macros in probe plot of Deflection, all effects: X Component</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12795956#M505</link>
      <description>&lt;P&gt;I'm creating a macro for the deflection results.&lt;/P&gt;&lt;P&gt;During the process of obtaining the final result, I am having difficulty with the following problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, the order of macro application for plotting deflection, all effects:X Component is as follows.&lt;BR /&gt;Select New Plot--&amp;gt; Select Probe Plot in Deflection, all effects:X Component--&amp;gt;The result shows a negative value as shown below.&lt;BR /&gt;The created macro is as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="probe plot.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367251iD1233802234E402F/image-size/large?v=v2&amp;amp;px=999" role="button" title="probe plot.jpg" alt="probe plot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set PlotManager = Synergy.PlotManager()&lt;BR /&gt;Set Plot = PlotManager.CreatePlotByDsID2(6250, 19)&lt;BR /&gt;Plot.SetComponent 0&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Set PlotManager_1 = Synergy.PlotManager()&lt;BR /&gt;Set Plot_1 = PlotManager_1.FindPlotByName2("Deflection, all effects:Path Plot", "Deflection, all effects")&lt;BR /&gt;Set Viewer_1 = Synergy.Viewer()&lt;BR /&gt;Viewer_1.HidePlot Plot_1&lt;BR /&gt;Viewer.ShowPlot Plot&lt;BR /&gt;Set Viewer = Synergy.Viewer()&lt;BR /&gt;Set Plot = Viewer.ActivePlot()&lt;BR /&gt;Plot.SetPlotMethod 19&lt;BR /&gt;Plot.SetPlotNodesFromString "N1111 N1112 N1113 N1114 N1115"&lt;BR /&gt;Set StudyDoc = Synergy.StudyDoc()&lt;BR /&gt;StudyDoc.Save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected to get the same result by running the macro.&lt;BR /&gt;However, the generated probe plot results did not show deflection results in the X direction.&lt;BR /&gt;This result is a positive value as a result of Vector in Plot Properties being selected as Magnitude.&lt;BR /&gt;I want to get the result for Deflection, all effects:X Component using a macro.&lt;BR /&gt;I can't find any API code explanation for this.&lt;/P&gt;&lt;P&gt;So, I want to know what the API code is for selecting vector-x.&lt;BR /&gt;Please explain how to solve this problem.&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 05:46:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12795956#M505</guid>
      <dc:creator>php5QCWQ</dc:creator>
      <dc:date>2024-05-25T05:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use macros in probe plot of Deflection, all effects: X Component</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12801167#M506</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9245154"&gt;@php5QCWQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;BR /&gt;First, I noticed this in for path plot.&lt;BR /&gt;(Maybe you experience similar for probe plot as mentioned in topic headline?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I followed your example.&lt;BR /&gt;Good you provided the details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recorded a macro for path plot, Deflection all effects, with vector color in X component.&lt;BR /&gt;And I can repeat what you see.&lt;BR /&gt;When recording macro, the vector color is created in X component (Vx).&lt;BR /&gt;When playing the macro, the vector color is created in magnitude (Vm).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a look, but right now it seems to be a limitation (or a bug?).&lt;BR /&gt;I miss like "SetPathVector" and "GetPathVector" to be used with Plot.&lt;BR /&gt;Like "Plot.SetPathVector 0"&lt;BR /&gt;There is SetComponent and GetComponent which Sets displayed data component and Gets displayed data component . But seems not to apply here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment I have no workaround or solution to this. Sorry.&lt;BR /&gt;Let's see if someone else in community has any suggestions.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 05:04:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12801167#M506</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2024-05-28T05:04:53Z</dc:date>
    </item>
    <item>
      <title>RE: How to use macros in probe plot of Deflection, all effects: X Component</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12804410#M507</link>
      <description>&lt;P&gt;Thank you for your reply. While looking for a solution to this problem, I referred to the information below. In the end, I used a method of finding the node values ​​by exporting it in Patran format. Thanks again for your efforts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://forums.autodesk.com/t5/moldflow-insight-forum/vb-script-exporting-all-fiber-orientation-tensor-not-only-txx/m-p/7344829?search-action-id=889115070770&amp;amp;search-result-uid=7344829" target="_blank"&gt;https://forums.autodesk.com/t5/moldflow-insight-forum/vb-script-exporting-all-fiber-orientation-tensor-not-only-txx/m-p/7344829?search-action-id=889115070770&amp;amp;search-result-uid=7344829&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 09:58:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12804410#M507</guid>
      <dc:creator>php5QCWQ</dc:creator>
      <dc:date>2024-05-29T09:58:22Z</dc:date>
    </item>
    <item>
      <title>RE: How to use macros in probe plot of Deflection, all effects: X Component</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12806931#M508</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9245154"&gt;@php5QCWQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;BR /&gt;Good you found a workaround and a solution.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Followed the link, and found I did a post there 7 years ago (!).&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":flushed_face:"&gt;😳&lt;/span&gt;&lt;BR /&gt;And I am still hanging around here...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Patran export and reading file could be time consuming.&lt;BR /&gt;But with today's machines it might be okay.&lt;/P&gt;&lt;P&gt;I would like to highlight another option.&lt;BR /&gt;WarpQueryNode()&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;◆ WarpQueryNode()



Boolean WarpQueryNode  ( long  aNodeID,  
  long  aAnchorIndex,  
  Object  aRetValues  
 )   


Queries on a node 
Parameters
aNodeID data set id  
aAnchorIndex anchor plane index. If the index is invalid, only the displacement components in global coordinate system are returned  
aRetValues returned query values (node coordinates and displacements in global and local coordinate systems)  

Note: If anchor plane is specified, the return array contains 18 values which are the following values: 
 Index 0, 1, 2: X, Y, Z coordinates in global coordinate system before deflection 
 Index 3, 4, 5: X, Y, Z coordinates in global coordinate system after deflection 
 Index 6, 7, 8: X, Y, Z coordinates in local coordinate system before deflection 
 Index 9, 10, 11: X, Y, Z coordinates in local coordinate system after deflection 
 Index 12, 13, 14: X, Y, Z displacement components in global coordinate system 
 Index 15, 16, 17: X, Y, Z displacement components in local coordinate system 
 otherwise, the return array contains 9 values which are the following values: 
 Index 0, 1, 2: X, Y, Z coordinates in global coordinate system before deflection 
 Index 3, 4, 5: X, Y, Z coordinates in global coordinate system after deflection 
 Index 6, 7, 8: X, Y, Z displacement components in global coordinate system
ReturnsTrue if successful &lt;/LI-CODE&gt;&lt;LI-CODE lang="visual-basic"&gt;'Example:This example queries displacement values in the first anchor plane on node 100 
Dim SynergyGetter, Synergy
On Error Resume Next
Set SynergyGetter = GetObject(CreateObject("WScript.Shell").ExpandEnvironmentStrings("%SAInstance%"))
On Error GoTo 0
If (Not IsEmpty(SynergyGetter)) Then
  Set Synergy = SynergyGetter.GetSASynergy
Else
  Set Synergy = CreateObject("synergy.Synergy")
End If
Set PlotMgr = Synergy.PlotManager()
Set queryValues = Synergy.CreateDoubleArray()
PlotMgr.WarpQueryBegin 6250, Nothing
PlotMgr.WarpQueryNode 100, 1, queryValues
PlotMgr.WarpQueryEnd &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be a way to resolve the issue too.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 08:09:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12806931#M508</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2024-05-30T08:09:17Z</dc:date>
    </item>
    <item>
      <title>RE: How to use macros in probe plot of Deflection, all effects: X Component</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12814648#M509</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9245154"&gt;@php5QCWQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just wanted to add another tip.&lt;BR /&gt;If you have the same original study and node numbering, and run different studies you could lock the plot results.&lt;/P&gt;&lt;P&gt;So if a Deflection, all Effects, Path Plot, with Vector X Component (Vx), is in first study, open the second or more,&lt;/P&gt;&lt;P&gt;and Lock All Plots.&amp;nbsp;&lt;BR /&gt;This will align the plot to have Vx result for all.&lt;BR /&gt;Might be useful to "copy" result setup from one study to another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 11:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/how-to-use-macros-in-probe-plot-of-deflection-all-effects-x/m-p/12814648#M509</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2024-06-03T11:16:25Z</dc:date>
    </item>
  </channel>
</rss>

