<?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 Post Processor - CAD file name as a comment including file name extensions in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11868507#M137628</link>
    <description>&lt;P&gt;So in the HSM Post Forum I found how to add the CAD file as a comment, however that does not fully accomplish what I needed as I would like to see the extensions of the file I used as well. I am using Creo files that end in .prt.VersionNumber, as in .prt.1 for version 1 or prt.15 for version 15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see on the side window that it sees the extension names, I am hoping I can include this on the NC file as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="constantin3x_0-1680535638136.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1197315i6E44A5525C11EBA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="constantin3x_0-1680535638136.png" alt="constantin3x_0-1680535638136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code I found and works fine but for the importing the CAD file name but it does not include any extensions.&lt;/P&gt;&lt;P&gt;//file name&lt;BR /&gt;var documentPath = getGlobalParameter("document-path");&lt;BR /&gt;writeComment(documentPath);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if its possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 15:31:46 GMT</pubDate>
    <dc:creator>constantin3x</dc:creator>
    <dc:date>2023-04-03T15:31:46Z</dc:date>
    <item>
      <title>Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11868507#M137628</link>
      <description>&lt;P&gt;So in the HSM Post Forum I found how to add the CAD file as a comment, however that does not fully accomplish what I needed as I would like to see the extensions of the file I used as well. I am using Creo files that end in .prt.VersionNumber, as in .prt.1 for version 1 or prt.15 for version 15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see on the side window that it sees the extension names, I am hoping I can include this on the NC file as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="constantin3x_0-1680535638136.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1197315i6E44A5525C11EBA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="constantin3x_0-1680535638136.png" alt="constantin3x_0-1680535638136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code I found and works fine but for the importing the CAD file name but it does not include any extensions.&lt;/P&gt;&lt;P&gt;//file name&lt;BR /&gt;var documentPath = getGlobalParameter("document-path");&lt;BR /&gt;writeComment(documentPath);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if its possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 15:31:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11868507#M137628</guid>
      <dc:creator>constantin3x</dc:creator>
      <dc:date>2023-04-03T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11870527#M137664</link>
      <description>&lt;P&gt;I don't think this is possible..&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:54:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11870527#M137664</guid>
      <dc:creator>seth.madore</dc:creator>
      <dc:date>2023-04-04T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872772#M137716</link>
      <description>&lt;P&gt;Fair enough, thank you for the reply Seth&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 19:46:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872772#M137716</guid>
      <dc:creator>constantin3x</dc:creator>
      <dc:date>2023-04-04T19:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872805#M137717</link>
      <description>&lt;P&gt;Not sure if it is 100% what you are after, but I output this:&lt;/P&gt;&lt;P&gt;(POSTED FROM FILE=10048-M1-M2.MC1.IAM) (which is an Inventor file).&lt;/P&gt;&lt;P&gt;I get that output with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var inventorFileName = FileSystem.getFilename(getGlobalParameter("document-path"));&lt;/P&gt;&lt;P&gt;writeComment("POSTED FROM FILE=" + inventorFileName);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to your code, but it gets it from FileSystem...&amp;nbsp; This also works in Fusion, I use it there too, just change the variable name.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 20:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872805#M137717</guid>
      <dc:creator>DarthBane55</dc:creator>
      <dc:date>2023-04-04T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872882#M137719</link>
      <description>&lt;P&gt;I just tried it in Fusion, and it works.&lt;/P&gt;&lt;P&gt;My file was called 6392-M2.35V, and it was version 8 in fusion, the comment output was this:&lt;/P&gt;&lt;P&gt;(POSTED FROM=6392-M2.35V V8)&lt;/P&gt;&lt;P&gt;I think this is what you were after.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 20:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11872882#M137719</guid>
      <dc:creator>DarthBane55</dc:creator>
      <dc:date>2023-04-04T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11873059#M137726</link>
      <description>&lt;P&gt;Not quite, I tried your code however it returns the same thing, that is the file name and the Fusion version number.&lt;/P&gt;&lt;P&gt;Probably because as soon as you upload a third part model, i.e. STEP or .PRT it creates its own file and associates that?&lt;/P&gt;&lt;P&gt;Instead of the actual file name I am looking for the filename which the solid model was imported from. so for example, on the left view panel, when you expand the version list, the very first version shows from which file this was imported from.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="constantin3x_0-1680645342567.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1198399i8FB281034458512A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="constantin3x_0-1680645342567.png" alt="constantin3x_0-1680645342567.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Trying your code returns POSTED FROM=222-091-pcb-base v19 which was the last Fusion file version, not the imported model one's.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 22:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11873059#M137726</guid>
      <dc:creator>constantin3x</dc:creator>
      <dc:date>2023-04-04T22:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Post Processor - CAD file name as a comment including file name extensions</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11874575#M137767</link>
      <description>&lt;P&gt;Gotcha, sorry, probably like Seth said, or at least I don't know myself how to do it.&amp;nbsp; I misunderstood the initial request.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 13:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-processor-cad-file-name-as-a-comment-including-file-name/m-p/11874575#M137767</guid>
      <dc:creator>DarthBane55</dc:creator>
      <dc:date>2023-04-05T13:02:38Z</dc:date>
    </item>
  </channel>
</rss>

