<?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: API - Tcode reference and MessageID in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366467#M2855</link>
    <description>&lt;P&gt;Thank you for your answer. Is this the same for mechanical properties ? I don't know how to read them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 12:29:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-09T12:29:51Z</dc:date>
    <item>
      <title>API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9362583#M2853</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trouble getting values from tcodes. For example, I want to extract pvT coefficients with tcode 1004 or mechanical properties data but I didn't manage to succeed... Do you have scripts to help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I tried to use&amp;nbsp;SystemMessage.GetDataMessage but is there a list of all the messageId that can be extracted from this method ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 10:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9362583#M2853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9362838#M2854</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I believe PVT coefficients might be protected for this kind of extraction.&lt;BR /&gt;Is available in tcode, but could be for write only.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Here is a way to extract data from analysis log:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/MFIA/2019/ENU/?guid=GUID-B2BCABC5-0169-442B-A85D-C546D13ADD8B" target="_blank" rel="noopener"&gt;API example: Extract information from screen out file&lt;/A&gt;&lt;BR /&gt;For the analysis log, .out file; see details in cmmesage.dat&lt;BR /&gt;in folder such as:&lt;BR /&gt;C:\Program Files\Autodesk\Moldflow Synergy 2019\data\dat&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I did not dig in to how to extract the PVT coefficients using that example, but should be possible.&lt;/P&gt;
&lt;P&gt;Share your findings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 13:10:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9362838#M2854</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2020-03-06T13:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366467#M2855</link>
      <description>&lt;P&gt;Thank you for your answer. Is this the same for mechanical properties ? I don't know how to read them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:29:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366467#M2855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T12:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366492#M2856</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;yes, and tcode 1621.Mechanical properties data, for thermoplastics material.&lt;/P&gt;
&lt;P&gt;It is in the&amp;nbsp;cmmesage.dat file.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;----
MSCD 1621 6 0 0 0 0 0 5
    
       Mechanical properties data:                    E1  = %11.4G
                                                      E2  = %11.4G
                                                      v12 = %11.4G
                                                      v23 = %11.4G
                                                      G12 = %11.4G
    Pa,1,1
    Pa,1,2
    ,0,3
    ,0,4
    Pa,1,5
----&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Pa, so you need to recalculate the found data to MPa.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:41:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366492#M2856</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2020-03-09T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366497#M2857</link>
      <description>&lt;P&gt;Just wanted to add:&lt;/P&gt;
&lt;P&gt;to use this way of getting data, you need to run at least a Fill analysis, to get an Analysis Log to read.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:43:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9366497#M2857</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2020-03-09T12:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9368703#M2858</link>
      <description>&lt;P&gt;thank you for your explanations but could you give me more ? What shoudl I do with E1 = %11.4G ? or with Pa,1,1 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9368703#M2858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: API - Tcode reference and MessageID</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9368912#M2859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;have a look at examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/MFIA/2019/ENU/?guid=GUID-B2BCABC5-0169-442B-A85D-C546D13ADD8B&amp;amp;_ga=2.213506001.439150525.1583738315-6564221.1452415940" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;API example: Extract information from screen out file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;' Read Maximum Injection pressure and the time it occurred
' return the array of numerical values associated with the last instance of Message ID (MSCD) 41400
' MSCD 41400 1 0 0 0 0 0 5
'       Maximum injection pressure          (at %11.4G) = %11.4G
'    s,1,2
'    Pa,1,1
' Note: Please see .../data/dat/shared/cmmesage.dat for format details
Set MM = lMessages.GetMessage(41400,0)
lStr = "Maximum injection pressure occured at " &amp;amp; CStr(MM.GetFloat(1)) &amp;amp; " Pressure =     " &amp;amp; CStr(MM.GetFloat(0)) 
MsgBox CStr(lStr)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1621.Mechanical properties data&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;----
MSCD 1621 6 0 0 0 0 0 5
    
       Mechanical properties data:                    E1  = %11.4G
                                                      E2  = %11.4G
                                                      v12 = %11.4G
                                                      v23 = %11.4G
                                                      G12 = %11.4G
    Pa,1,1
    Pa,1,2
    ,0,3
    ,0,4
    Pa,1,5
----
' Note: Please see .../data/dat/shared/cmmesage.dat for format details
Set MM = lMessages.GetMessage(1621,0)

lStr = "E1= " &amp;amp; CStr(MM.GetFloat(0)) &amp;amp; " E2=      " &amp;amp; CStr(MM.GetFloat(1)) 
MsgBox CStr(lStr)

' or could be:
'lStr = "E1= " &amp;amp; CStr(MM.GetFloat(1)) &amp;amp; " E2=      " &amp;amp; CStr(MM.GetFloat(2)) 
'MsgBox CStr(lStr)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"What should&amp;nbsp;I do with E1 = %11.4G ? or with Pa,1,1 ?"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt; That is format description. You could leave&amp;nbsp;%11.4G&lt;/P&gt;
&lt;P&gt;Pa,1,1, is unit, so in Pa which you might want to recalculate to MPa, and the last number, 1, is the position in array of MM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this clarifies.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Berndt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:19:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/api-tcode-reference-and-messageid/m-p/9368912#M2859</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2020-03-10T12:19:30Z</dc:date>
    </item>
  </channel>
</rss>

