<?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: Help please - vbs scripts in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6204953#M7453</link>
    <description>&lt;P&gt;Thank you very much for responding - but the issue is that I don't want to use the log file, because some of the thinsg that Iwant to inquire on - are not included in the log file - for example - if I want to know what mold temp conv criterion was used for cool, or howhat was the max number of temperature iterations (limit) in fill etc - these parameter &amp;nbsp;values ar &amp;nbsp;not included in the log file - but they are stored nevertheless with the study file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can write macros to assign values tto these parameters - but what I cannot figure out is how to inquire on - what values were used (macros to print currnet value - not assign new one) - any help / pointers would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 17:01:13 GMT</pubDate>
    <dc:creator>oak</dc:creator>
    <dc:date>2016-03-08T17:01:13Z</dc:date>
    <item>
      <title>Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6203730#M7451</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to write a script - to write out some of the input and output paramaers from analysis - but I do not want to extract them from a log file - &amp;nbsp;I want Moldflow vbs to write out a text file (or dipslay on screen) the values that I am looking for. &amp;nbsp;I am trying to do this based on T CODES. can someone please help me and show me how to do this - using three things as an example :&lt;BR /&gt;1) Aggregate cooling option in cooling analysis (10000 Thermoplastics injection molding solver parameters (Midplane))&lt;/P&gt;&lt;P&gt;2) The tme at which a particular anlaysis started and ended&lt;/P&gt;&lt;P&gt;3) The version&amp;nbsp;of software that was used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 00:57:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6203730#M7451</guid>
      <dc:creator>oak</dc:creator>
      <dc:date>2016-03-08T00:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6204053#M7452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;regarding:&lt;BR /&gt;3) The version&amp;nbsp;of software that was used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'%RunPerInstance
'@ DESCRIPTION
SetLocale("en-us")
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
Synergy.SetUnits "Metric"
SynVersion = Synergy.Version()
SynBuild = Synergy.Build()
MsgBox  " Version: " &amp;amp; SynVersion &amp;amp; " Build: " &amp;amp; SynBuild,,"Information"&lt;/PRE&gt;&lt;P&gt;Now, this will be for Synergy. For Insight solver, I could not find object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For solver, you probably need to read analysis log file.&lt;/P&gt;&lt;P&gt;You can save log file in text format, for easier search.&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/sfdcarticles/sfdcarticles/Where-is-Analysis-Log-saved-to-be-used-by-Moldflow-API.html" target="_blank"&gt;Where is Analysis Log saved to be used by Moldflow API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2) The time at which a particular anlaysis started and ended&lt;/P&gt;&lt;P&gt;&amp;gt; Easiest to get from analysis log file, I think.&lt;/P&gt;&lt;P&gt;Else, you need to work with Job Manager object, and review analysis jobs and store start and end time.&lt;/P&gt;&lt;P&gt;This is already in analysis log...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this article from &lt;SPAN&gt;the &lt;/SPAN&gt;&lt;A href="http://knowledge.autodesk.com/" target="_self" rel="nofollow"&gt;AKN (Autodesk Knowledege Network) &lt;/A&gt;as reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/sfdcarticles/sfdcarticles/How-to-find-Moldflow-API-documentation-and-reference.html" target="_blank"&gt;How to find Moldflow API documentation and reference&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 07:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6204053#M7452</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2016-03-08T07:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6204953#M7453</link>
      <description>&lt;P&gt;Thank you very much for responding - but the issue is that I don't want to use the log file, because some of the thinsg that Iwant to inquire on - are not included in the log file - for example - if I want to know what mold temp conv criterion was used for cool, or howhat was the max number of temperature iterations (limit) in fill etc - these parameter &amp;nbsp;values ar &amp;nbsp;not included in the log file - but they are stored nevertheless with the study file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can write macros to assign values tto these parameters - but what I cannot figure out is how to inquire on - what values were used (macros to print currnet value - not assign new one) - any help / pointers would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 17:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6204953#M7453</guid>
      <dc:creator>oak</dc:creator>
      <dc:date>2016-03-08T17:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6206118#M7454</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created an example how to get data&amp;amp;colon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SetLocale("en-us")
Set Synergy = CreateObject("synergy.Synergy")
Synergy.SetUnits "METRIC"

Set PropED = Synergy.PropertyEditor()
' 10000 Thermoplastics injection molding solver parameters (Midplane)
Set Prop = PropED.FindProperty(10000, 1)

TcodeID = 539 ' 539 Use aggregated mesh solver
'Data type boolean as integer, which means = 0 not used, 1 used

Set DVec = Prop.FieldValues(TcodeID)
If DVec.Val(0) = 1 Then
	Text = DVec.Val(0) &amp;amp; " Use aggregated mesh solver "
Else
	Text = DVec.Val(0) &amp;amp; " Use aggregated mesh solver : is off "
End If

MsgBox "TcodeID: " &amp;amp; TcodeID &amp;amp; " = " &amp;amp; DVec.Val(0) &amp;amp; vbCrlf &amp;amp; Text ,,"Information" &lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Happy coding! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6206118#M7454</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2016-03-09T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6207455#M7455</link>
      <description>&lt;P&gt;Thank you thank you thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 21:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6207455#M7455</guid>
      <dc:creator>oak</dc:creator>
      <dc:date>2016-03-09T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - vbs scripts</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6820466#M7456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the solution for Synergy 2016 but I am getting an error. I am new to MF scripting. Can you point out anything that I could be doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;BR /&gt;SetLocale("en-us")&lt;BR /&gt;Dim Synergy&lt;BR /&gt;Set Synergy = CreateObject("synergy.Synergy")&lt;BR /&gt;Synergy.SetUnits "METRIC"&lt;BR /&gt;Dim Prop, DVec, TcodeID, PropED, Text&lt;BR /&gt;Set PropED = Synergy.PropertyEditor()&lt;BR /&gt;' 10000 Thermoplastics injection molding solver parameters (Midplane)&lt;BR /&gt;Set Prop = PropED.FindProperty(10000, 1)&lt;/P&gt;&lt;P&gt;TcodeID = 539 ' 539 Use aggregated mesh solver&lt;BR /&gt;'Data type boolean as integer, which means = 0 not used, 1 used&lt;/P&gt;&lt;P&gt;Set DVec = Prop.FieldValues(TcodeID)&lt;BR /&gt;If DVec.Val(0) = 1 Then&lt;BR /&gt;Text = DVec.Val(0) &amp;amp; " Use aggregated mesh solver "&lt;BR /&gt;Else&lt;BR /&gt;Text = DVec.Val(0) &amp;amp; " Use aggregated mesh solver : is off "&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;MsgBox "TcodeID: " &amp;amp; TcodeID &amp;amp; " = " &amp;amp; DVec.Val(0) &amp;amp; vbCrlf &amp;amp; Text ,,"Information"&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 19:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/help-please-vbs-scripts/m-p/6820466#M7456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T19:18:15Z</dc:date>
    </item>
  </channel>
</rss>

