<?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 NEED HELP! Fixture offset for all toolpaths within nc program in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7809850#M22841</link>
    <description>&lt;P&gt;Macro noob here! I am trying to create a macro that creates an nc program for all toolpaths within the project and use a fixture offset to sink them in the z axis. I am having trouble finding a command to select all toolpaths in the nc program window. Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres my macro so far....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE NCPROGRAM ; EDIT NCPROGRAM ; QUIT FORM NCTOOLPATH&lt;BR /&gt;RENAME NCPROGRAM "1" "SINK_TRODE-.025"&lt;BR /&gt;NCTOOLPATH ACCEPT FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH ALL&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;EDIT NCPROGRAM 'SINK_TRODE-.025' SELECT\r 1 SERIES&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; NEED A DIFFERENT COMMAND HERE TO SELECT ALL TOOLPATHS IN NCPRG&lt;/STRONG&gt;&lt;BR /&gt;EDIT NCPROGRAM 'SINK_TRODE-.025' ITEM SELECTED COMPONENT SELECTED FIXTUREOFFSET "2"&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;ACTIVATE NCPROGRAM "SINK_TRODE-.025" KEEP NCPROGRAM ; YES&lt;BR /&gt;NCTOOLPATH CANCEL FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 16:40:19 GMT</pubDate>
    <dc:creator>johnc4668</dc:creator>
    <dc:date>2018-02-26T16:40:19Z</dc:date>
    <item>
      <title>NEED HELP! Fixture offset for all toolpaths within nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7809850#M22841</link>
      <description>&lt;P&gt;Macro noob here! I am trying to create a macro that creates an nc program for all toolpaths within the project and use a fixture offset to sink them in the z axis. I am having trouble finding a command to select all toolpaths in the nc program window. Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres my macro so far....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE NCPROGRAM ; EDIT NCPROGRAM ; QUIT FORM NCTOOLPATH&lt;BR /&gt;RENAME NCPROGRAM "1" "SINK_TRODE-.025"&lt;BR /&gt;NCTOOLPATH ACCEPT FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH ALL&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;EDIT NCPROGRAM 'SINK_TRODE-.025' SELECT\r 1 SERIES&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; NEED A DIFFERENT COMMAND HERE TO SELECT ALL TOOLPATHS IN NCPRG&lt;/STRONG&gt;&lt;BR /&gt;EDIT NCPROGRAM 'SINK_TRODE-.025' ITEM SELECTED COMPONENT SELECTED FIXTUREOFFSET "2"&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;ACTIVATE NCPROGRAM "SINK_TRODE-.025" KEEP NCPROGRAM ; YES&lt;BR /&gt;NCTOOLPATH CANCEL FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7809850#M22841</guid>
      <dc:creator>johnc4668</dc:creator>
      <dc:date>2018-02-26T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! Fixture offset for all toolpaths within nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7809916#M22842</link>
      <description>&lt;P&gt;this will pull all the names from the nc program that is active:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;STRING ncProg = entity('ncprogram','').name
STRING LIST ncP_toolpaths = extract(entity('ncprogram', ncProg).nctoolpath, 'Name')

FOREACH tp IN ncP_toolpaths {&lt;BR /&gt;     put your commands here&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for more clarification, you can read &lt;A href="https://forums.autodesk.com/t5/powermill-forum/cutter-comp-macro/m-p/7785817#M8781" target="_blank"&gt;this thread &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7809916#M22842</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2018-02-26T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! Fixture offset for all toolpaths within nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810151#M22843</link>
      <description>&lt;P&gt;TK.421&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help, Im almost there but its still not doing what i want to do yet. It is still only selecting 1 toolpath in the nc program window and not all of them. Heres my updated macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE NCPROGRAM ; EDIT NCPROGRAM ; QUIT FORM NCTOOLPATH&lt;BR /&gt;RENAME NCPROGRAM "1" "SINK_TRODE-.025"&lt;BR /&gt;NCTOOLPATH ACCEPT FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;BR /&gt;ACTIVATE NCPROGRAM "SINK_TRODE-.025"&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH ALL&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;STRING ncProg = entity('ncprogram','').name&lt;BR /&gt;STRING LIST ncP_toolpaths = extract(entity('ncprogram', ncProg).nctoolpath, 'Name')&lt;/P&gt;&lt;P&gt;FOREACH tp IN ncP_toolpaths {&lt;BR /&gt;EDIT NCPROGRAM 'SINK_TRODE-.025' ITEM SELECTED COMPONENT SELECTED FIXTUREOFFSET "2"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;EDIT NCPROGRAM "SINK_TRODE-.025" QUIT FORM NCTOOLPATH&lt;BR /&gt;ACTIVATE NCPROGRAM "SINK_TRODE-.025" KEEP NCPROGRAM ; YES&lt;BR /&gt;NCTOOLPATH CANCEL FORM ACCEPT NCTOOLPATHLIST FORM ACCEPT NCTOOLLIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&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="2018-02-26_13-07-29.jpg" style="width: 699px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/467979i47270F1982755A77/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-02-26_13-07-29.jpg" alt="2018-02-26_13-07-29.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810151#M22843</guid>
      <dc:creator>johnc4668</dc:creator>
      <dc:date>2018-02-26T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! Fixture offset for all toolpaths within nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810204#M22844</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CREATE NCPROGRAM "SINK_TRODE-.025"&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH ALL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INT item_num = 0&lt;/P&gt;
&lt;P&gt;INT comp_num = 0&lt;BR /&gt;STRING ncProg = entity('ncprogram','').name&lt;BR /&gt;STRING LIST ncP_toolpaths = extract(entity('ncprogram', ncProg).nctoolpath, 'Name')&lt;/P&gt;
&lt;P&gt;FOREACH tp IN ncP_toolpaths {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF !is_empty(components(entity('ncprogram',''))) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF components(entity('ncprogram',''))[0].RootType == 'nctoolpath' {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EDIT NCPROGRAM ; ITEM $item_num COMPONENT $comp_num FIXTUREOFFSET "1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $item_num = $item_num + 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $comp_num = $comp_num + 1000&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;ACTIVATE NCPROGRAM $ncProg KEEP NCPROGRAM ; YES&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;changing settings for toolpaths in an nc program is kind of goofy. try the above and see how that works - i think it should.&amp;nbsp; I also cleaned up some stuff that you dont need&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810204#M22844</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2018-02-26T18:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! Fixture offset for all toolpaths within nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810397#M22845</link>
      <description>&lt;P&gt;worked beautifully! cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 19:35:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-fixture-offset-for-all-toolpaths-within-nc-program/m-p/7810397#M22845</guid>
      <dc:creator>johnc4668</dc:creator>
      <dc:date>2018-02-26T19:35:22Z</dc:date>
    </item>
  </channel>
</rss>

