<?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: Model filename in custom report in Moldflow Insight Forum</title>
    <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7419472#M5146</link>
    <description>&lt;P&gt;This will work, but as you mentioned, the ability to add the part name would be a nice feature..&lt;BR /&gt;&lt;BR /&gt;Tack &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 07:25:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-29T07:25:02Z</dc:date>
    <item>
      <title>Model filename in custom report</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7413553#M5142</link>
      <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;&lt;BR /&gt;I'm currently customizing the customreport.vbs, and want the model filename ex. model123.CATPart to be on the report.&lt;BR /&gt;&lt;BR /&gt;Only thing I have found is the study name in the API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim StudyDoc, objShapes, Item
Set StudyDoc = Synergy.StudyDoc()
Set Item = ObjShapes.Item(1)
Item.TextFrame.TextRange.Text =StudyDoc.StudyName&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 14:47:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7413553#M5142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-27T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Model filename in custom report</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7418120#M5143</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@&lt;A id="link_7f068150d6643c" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5133456" target="_self"&gt;&lt;SPAN class=""&gt;mikael.roslund&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for using the Autodesk Moldflow Insight forums! I understand that you would like to include the Model file name in the custom report you are generating.&amp;nbsp; Please review the following Autodesk Help Webinar that was presented on this topic&amp;nbsp;-&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=6P3RITWRhzg&amp;amp;list=PLIv6vwn776aRRpQtH6KUqHw8QXkZyNlyq&amp;amp;index=24" target="_blank"&gt;Understanding Moldflow Insight Automated Report Tools&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Information&amp;nbsp;is presented in this webinar providing guidance for your request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ultimately, you will want to update the .rpt file to include model file name you would like included on the report title page&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TEMPLATE,default.pot&lt;BR /&gt;TITLEPAGE,Report Title,Author --&amp;gt; &lt;STRONG&gt;replace this line with "TITLEPAGE,model123.CATPart,&lt;SPAN class=""&gt;&lt;A id="link_7f068150d6643c" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5133456" target="_self"&gt;mikael.roslund&lt;/A&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;MESHINFORMATION, ADVANCED&lt;BR /&gt;MATERIALINFORMATION, ADVANCED&lt;BR /&gt;ANALYSISINFORMATION&lt;BR /&gt;PROCESSINFORMATION, ADVANCED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/406683i8DB7C5ADBD3E17FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make this change/update to any of the .rpt files depending on which custom report you would like to run:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 690px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/406685iF68FDE18416C2D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Beth&amp;nbsp; Mollica&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://image-proxy.prod.aws.lcloud.com/b4560a525164ddd72ee58a06fa68e4216c8c2a42/687474703a2f2f696d616765732e6175746f6465736b2e636f6d2f666c6173686173736574732f7374617469636173736574732f696d616765732f6175746f6465736b5f6c6f676f5f7369676e61747572652e706e67" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;___________________________________________________________________&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 19:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7418120#M5143</guid>
      <dc:creator>beth.mollica</dc:creator>
      <dc:date>2017-09-28T19:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Model filename in custom report</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7418245#M5144</link>
      <description>&lt;P&gt;Hi Mikael,&lt;BR /&gt;the Moldflow API cannot extract cad part name in study from what I know.&lt;BR /&gt;There is currently no object such as StudyDoc.PartName.&lt;BR /&gt;Room for improvement here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some ideas to workaround your issue:&lt;/P&gt;
&lt;P&gt;If the model name is in study name, you could use something like:&lt;BR /&gt;StudyName = left(StudyDoc.StudyName, len(StudyDoc.StudyName)-4)&lt;BR /&gt;This removes .sdy from name, but could be shortened to suit your needs, if you know model name length.&lt;BR /&gt;Maybe a special charachter to be able to separate cad model name from study name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option could be using named layers.Such as:&lt;BR /&gt;&amp;nbsp;Set LayerManager = Synergy.LayerManager()&lt;BR /&gt;&amp;nbsp;Set L1 = LayerManager.GetFirst()&lt;BR /&gt;&amp;nbsp;While Not L1 Is Nothing&lt;BR /&gt;&amp;nbsp;MsgBox LayerManager.GetName( L1 )&lt;BR /&gt;&amp;nbsp;Set L1 = LayerManager.GetNext(L1)&lt;BR /&gt;&amp;nbsp;Wend&lt;/P&gt;
&lt;P&gt;When importing CAD model, the second layer, CAD Geometry will have the model name.&lt;BR /&gt;This would work for one model.&lt;BR /&gt;If an assembly, a bit more tricky, as you will not know on which layer the used model name will be on.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;Berndt&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 19:57:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7418245#M5144</guid>
      <dc:creator>bernor_mf</dc:creator>
      <dc:date>2017-09-28T19:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Model filename in custom report</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7419469#M5145</link>
      <description>&lt;P&gt;Thank you Beth, but I want it to be automated.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 07:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7419469#M5145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-29T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model filename in custom report</title>
      <link>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7419472#M5146</link>
      <description>&lt;P&gt;This will work, but as you mentioned, the ability to add the part name would be a nice feature..&lt;BR /&gt;&lt;BR /&gt;Tack &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 07:25:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/moldflow-insight-forum/model-filename-in-custom-report/m-p/7419472#M5146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-29T07:25:02Z</dc:date>
    </item>
  </channel>
</rss>

