<?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: Toolpath description output via PMpost in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892348#M29382</link>
    <description>&lt;P&gt;We put any information for the toolpath in the 'Notes' section and post all of our programs with a macro that makes sure the notes get into the posted file. Here is part of the macro code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  STRING $TPNote = "/{Notes}"
  INT ComCount = 0
  INT ItemCount = 0
  // Then loop through the items within each of the ncprogram folder items (toolpaths)
  FOREACH $ncitem IN components(entity('ncprogram','')) {
    // Check that this item is an 'nctoolpath'
       IF $ncitem.RootType == "nctoolpath" {
      $ComCount = ($ItemCount + 0) * 1000
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS $TPNote
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount MESSAGES OFF
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS BEFORE
    }
    $ItemCount = ItemCount + 1
    //macro pause "here 1"
  }&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Feb 2017 10:55:12 GMT</pubDate>
    <dc:creator>cfastM58RS</dc:creator>
    <dc:date>2017-02-21T10:55:12Z</dc:date>
    <item>
      <title>Toolpath description output via PMpost</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892301#M29381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering if there is a solution to export the toolpath description as comment in the final NCcode via the postprocessor (PMPost).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Description.jpg" style="width: 346px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/325007iF05BA8C5679AF67D/image-dimensions/346x363?v=v2" width="346" height="363" role="button" title="Description.jpg" alt="Description.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made some test by using the function GetParameter&amp;nbsp; but the parameter "Description" doesn't seems to exist&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cuq&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 10:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892301#M29381</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-02-21T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Toolpath description output via PMpost</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892348#M29382</link>
      <description>&lt;P&gt;We put any information for the toolpath in the 'Notes' section and post all of our programs with a macro that makes sure the notes get into the posted file. Here is part of the macro code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  STRING $TPNote = "/{Notes}"
  INT ComCount = 0
  INT ItemCount = 0
  // Then loop through the items within each of the ncprogram folder items (toolpaths)
  FOREACH $ncitem IN components(entity('ncprogram','')) {
    // Check that this item is an 'nctoolpath'
       IF $ncitem.RootType == "nctoolpath" {
      $ComCount = ($ItemCount + 0) * 1000
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS $TPNote
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount MESSAGES OFF
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS BEFORE
    }
    $ItemCount = ItemCount + 1
    //macro pause "here 1"
  }&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 10:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892348#M29382</guid>
      <dc:creator>cfastM58RS</dc:creator>
      <dc:date>2017-02-21T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Toolpath description output via PMpost</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892410#M29383</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must use a udp_ variable in Postprocessor.&lt;/SPAN&gt;&lt;BR /&gt;Check the link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/powermill-forum/replace-a-character-in-file-with-a-macro/m-p/6774411#M2047" target="_self"&gt;https://forums.autodesk.com/t5/powermill-forum/replace-a-character-in-file-with-a-macro/m-p/6774411#M2047&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rafael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 11:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/toolpath-description-output-via-pmpost/m-p/6892410#M29383</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2017-02-21T11:40:24Z</dc:date>
    </item>
  </channel>
</rss>

