<?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: MACRO - remove nc item in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418463#M25552</link>
    <description>&lt;P&gt;ok what did you put in the search bar on the old forum, because I searched a few key words&amp;nbsp; on there and came up with the same two posts that had nothing to help here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3969139"&gt;@5axes&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Autodesk: BRING BACK THE OLD FORUMS!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 21:21:14 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2017-09-28T21:21:14Z</dc:date>
    <item>
      <title>MACRO - remove nc item</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418196#M25550</link>
      <description>&lt;P&gt;i've made a list of toolpaths in nc program and want to remove the uncomputed toolpath. How?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FOREACH $ncP in FOLDER ('NCProgram') {
	ACTIVATE NCProgram $ncP.name
	STRING LIST tpNames = extract(entity('ncprogram','').nctoolpath, 'Name') 
	INT i = 0
	FOREACH name in tpNames {
		STRING ncTp = tpNames[$i]
		ACTIVATE TOOLPATH $ncTp
		IF entity('toolpath','').computed == 0 {
			//message info $i  &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;gives correct item number&lt;/FONT&gt;&lt;/STRONG&gt;
			&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;EDIT NCPROGRAM ; REMOVE ITEM tpNames[$i]  errors here&lt;/FONT&gt;&lt;/STRONG&gt;
			$i = $i + 1
		} ELSE {
			$i = $i + 1
		}

	}
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 19:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418196#M25550</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2017-09-28T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO - remove nc item</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418448#M25551</link>
      <description>&lt;P&gt;For such type of question Think OLD FORUM ...&amp;nbsp;&lt;A href="https://manufacturing.autodesk.com/forums/forum.delcam.com/viewtopicfa6e.html?p=58166#p58166" target="_blank"&gt;https://manufacturing.autodesk.com/forums/forum.delcam.com/viewtopicfa6e.html?p=58166#p58166&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;STRING Name_NCProg = ''&lt;BR /&gt;STRING LIST Tl_list = {}&lt;BR /&gt;// build the expression&lt;BR /&gt;STRING $expr = "RootType=='nctoolpath'"&lt;BR /&gt;&lt;BR /&gt;FOREACH ncP in FOLDER ('NCProgram') {&lt;BR /&gt; $Name_NCProg=$ncp.name&lt;BR /&gt;&lt;BR /&gt; // get the list of toolpath (sorted in the NCProgram order)&lt;BR /&gt; $Tl_list = extract(filter(components(entity('ncprogram', $Name_NCProg)), $expr), 'name')&lt;BR /&gt; &lt;BR /&gt;  FOREACH ncTp in Tl_list {&lt;BR /&gt; IF entity('toolpath',$ncTp).computed == 0 {&lt;BR /&gt;     EDIT NCPROGRAM $Name_NCProg TOOLPATH $ncTp DELETE&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418448#M25551</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-09-28T21:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO - remove nc item</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418463#M25552</link>
      <description>&lt;P&gt;ok what did you put in the search bar on the old forum, because I searched a few key words&amp;nbsp; on there and came up with the same two posts that had nothing to help here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3969139"&gt;@5axes&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Autodesk: BRING BACK THE OLD FORUMS!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-remove-nc-item/m-p/7418463#M25552</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2017-09-28T21:21:14Z</dc:date>
    </item>
  </channel>
</rss>

