<?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 Betreff: create a macro nc program in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295877#M3210</link>
    <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6338779816112w644h540r410" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6338779816112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6338779816112w644h540r410');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6338779816112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;Sorry for not making the problem clear to you. I want all toolpaths to be on the nc. but their names do not change. If any toolpath has additional tools, add them together: for example, C1-6r3 and C1+1, then combine them. together or H3-4r2 and H3+1 with H3+2, then add these 3 tools together on the nc program. If the previous chain is the same and the tool is shared then add them together, here the maximum value is H3 If you use the same tool 4r2, then use the same tool on nc program.&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 10:44:22 GMT</pubDate>
    <dc:creator>lamtuyphong11</dc:creator>
    <dc:date>2023-10-10T10:44:22Z</dc:date>
    <item>
      <title>create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293399#M3201</link>
      <description>&lt;UL&gt;&lt;LI&gt;Please help me create a macro nc program. I want to add a program of the same name together. Thank you for watching&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6338719042112w906h540r872" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6338719042112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6338719042112w906h540r872');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6338719042112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1276783iEE772FA510329C4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1276784i5C62525C6873F6F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;P&gt;  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 09 Oct 2023 09:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293399#M3201</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-09T09:31:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293643#M3202</link>
      <description>&lt;P&gt;do you whant somthing similar to this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/powermill-forum/help-for-rename-toolpath/m-p/12181831#M29087" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/powermill-forum/help-for-rename-toolpath/m-p/12181831#M29087&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but instead of adding it to folders add it to nc Programm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what if the nc programm does not exist? should it be created automaticly?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 11:40:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293643#M3202</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-09T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293868#M3203</link>
      <description>&lt;LI-CODE lang="general"&gt;string list $subFolders = get_folders('Toolpath')
int $index = input choice $subFolders 'Select Folder'


int $prefix = 1

string $ncName = ''

dialogs message off
foreach $tp in folder($subFolders[$index]) {

	if position($tp.Name, $prefix) == 0 {
		$ncName = $tp.Name		
		if not entity_exists('ncprogram', $ncName) {
			create ncprogram ${ncName}			
		}		
		$prefix = $prefix +1
	}
	
	if entity_exists('ncprogram' , $ncName) and position($tp.Name, $prefix - 1) == 0 {
		edit ncprogram ${ncName} insert toolpath ${tp.name} last
	}
}
dialogs message on&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Oct 2023 13:20:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12293868#M3203</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-09T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295054#M3204</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6338751110112w964h540r587" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6338751110112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6338751110112w964h540r587');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6338751110112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CO-CHUOI-KY-TU.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1277129iD5DBDE027A973778/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CO-CHUOI-KY-TU.png" alt="CO-CHUOI-KY-TU.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Thank you very much for your help. Can you convert it similarly but add a letter character in front?.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 01:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295054#M3204</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-10T01:37:24Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295258#M3205</link>
      <description>&lt;P&gt;When the ladder should be added? I Edited the macro so it adds the 'G' after the toolpath is added&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string list $subFolders = get_folders('Toolpath')
int $index = input choice $subFolders 'Select Folder'


int $prefix = 1

string $ncName = ''

dialogs message off
foreach $tp in folder($subFolders[$index]) {

	if position($tp.Name, $prefix) == 0 {
		$ncName = $tp.Name		
		if not entity_exists('ncprogram', $ncName) {
			create ncprogram ${ncName}			
		}		
		$prefix = $prefix +1
	}
	
	if entity_exists('ncprogram' , $ncName) and position($tp.Name, $prefix - 1) == 0 {
		edit ncprogram ${ncName} insert toolpath ${tp.name} last
		string $newName = 'G' + $tp.name
		if entity_exists('toolpath', $newName) {
			$newName = new_entity_name('toolpath', $newName)
		}
		rename toolpath ${tp.name} ${newName}
	}
}
dialogs message on&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Oct 2023 06:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295258#M3205</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-10T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295374#M3206</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Can you keep the characters from the toolpath list on nc?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;characters are available below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 06:36:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295374#M3206</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-10T06:36:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295541#M3207</link>
      <description>&lt;LI-CODE lang="general"&gt;string list $subFolders = get_folders('Toolpath')
int $index = input choice $subFolders 'Select Folder'


int $prefix = 1

string $ncName = ''

dialogs message off
foreach $tp in folder($subFolders[$index]) {

	string $newName = 'G' + $tp.name
	if entity_exists('toolpath', $newName) {
		$newName = new_entity_name('toolpath', $newName)
	}
	rename toolpath ${tp.name} ${newName}
	
	if position($tp.Name, $prefix) == 1 {
		$ncName = $tp.Name		
		if not entity_exists('ncprogram', $ncName) {
			create ncprogram ${ncName}			
		}		
		$prefix = $prefix +1
	}
	
	if entity_exists('ncprogram' , $ncName) and position($tp.Name, $prefix - 1) == 1 {
		edit ncprogram ${ncName} insert toolpath ${tp.name} last

	}
}
dialogs message on&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295541#M3207</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-10T08:06:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295683#M3208</link>
      <description>&lt;P&gt;Thank you for helping me. But I need something more complicated. I want all the tools in the toolpath list to go to NC but the toolpath name remains the same. and add together when the preceding series overlaps. For example: B1-R2 and B1+1 combine together on nc program. thank you!&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6338773544112w694h540r709" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6338773544112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6338773544112w694h540r709');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6338773544112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295683#M3208</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-10T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295743#M3209</link>
      <description>&lt;P&gt;I Dont get what you whant....&lt;/P&gt;&lt;P&gt;Why the prefix is now 'A', 'B'? can the prefix be more than 1 letter eg "ABC"?&lt;/P&gt;&lt;P&gt;Should the macro do the renaming of the toolpaths or not?&lt;/P&gt;&lt;P&gt;is it just to add them in the nc programm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain your end goal with this?(in detail)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295743#M3209</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-10T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295877#M3210</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6338779816112w644h540r318" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6338779816112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6338779816112w644h540r318');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6338779816112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;Sorry for not making the problem clear to you. I want all toolpaths to be on the nc. but their names do not change. If any toolpath has additional tools, add them together: for example, C1-6r3 and C1+1, then combine them. together or H3-4r2 and H3+1 with H3+2, then add these 3 tools together on the nc program. If the previous chain is the same and the tool is shared then add them together, here the maximum value is H3 If you use the same tool 4r2, then use the same tool on nc program.&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 10:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295877#M3210</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-10T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295978#M3211</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14297825"&gt;@lamtuyphong11&lt;/a&gt;&amp;nbsp;: I just edit a little bit @icse's Macro, hope it 's work.&lt;/P&gt;&lt;P&gt;(Hi Phong em thử lại với macro này nhé, hy vọng hoạt động)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt;:&amp;nbsp;the prefix he want sometimes is text, sometime is number so I use substring&amp;nbsp; to compare and add nc program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;DELETE NCPROGRAM ALL&lt;/P&gt;&lt;P&gt;string list $subFolders = get_folders('Toolpath')&lt;BR /&gt;int $index = input choice $subFolders 'Select Folder'&lt;BR /&gt;&lt;BR /&gt;//Create nc program&lt;BR /&gt;string $ncName = ''&lt;BR /&gt;dialogs message off&lt;BR /&gt;foreach $tp in folder($subFolders[$index]) {&lt;BR /&gt;int posit = position($tp.name,"-")&lt;BR /&gt;if posit != -1 {&lt;BR /&gt;string $prefix = substring($tp.name, 0 , $posit)&lt;BR /&gt;$ncName = $tp.Name&lt;BR /&gt;if not entity_exists('ncprogram', $ncName) {&lt;BR /&gt;create ncprogram ${ncName}&lt;BR /&gt;}&lt;BR /&gt;// add toolpath into nc program&lt;BR /&gt;foreach $tp_temp in folder($subFolders[$index]) {&lt;BR /&gt;if substring($tp.name, 0 , $posit) == substring($tp_temp.name, 0 , $posit) {&lt;BR /&gt;if $entity('Toolpath', $tp.Name).Tool.name == $entity('Toolpath', $tp_temp.Name).Tool.name {&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH $tp_temp.name&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 04:16:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12295978#M3211</guid>
      <dc:creator>nguyenthinhvt95</dc:creator>
      <dc:date>2023-10-11T04:16:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12296160#M3212</link>
      <description>&lt;LI-CODE lang="general"&gt;string list $subFolders = get_folders('Toolpath')
int $index = input choice $subFolders 'Select Folder'



string $ncName = ''
string $preToolName = ''

dialogs message off

foreach $tp in folder($subFolders[$index]) {
		
	if $tp.Tool.Name != $preToolName {
		$ncName = $tp.Name		
		if not entity_exists('ncprogram', $ncName) {
			create ncprogram ${ncName}			
		}	
		$preToolName = $tp.Tool.Name
	}
	
	if entity_exists('ncprogram' , $ncName) and $tp.Tool.Name == $preToolName {
		edit ncprogram ${ncName} insert toolpath ${tp.Name} last
	}
}
dialogs message on&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12296160#M3212</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-10T12:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12298693#M3213</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14297825"&gt;@lamtuyphong11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DELETE NCPROGRAM ALL&lt;/P&gt;&lt;P&gt;string list $subFolders = get_folders('Toolpath')&lt;BR /&gt;int $index = input choice $subFolders 'Select Folder'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Create nc program&lt;BR /&gt;string $ncName = ''&lt;BR /&gt;dialogs message off&lt;BR /&gt;foreach $tp in folder($subFolders[$index]) {&lt;BR /&gt;int posit = position($tp.name,"-")&lt;BR /&gt;if posit != -1 {&lt;BR /&gt;string $prefix = substring($tp.name, 0 , $posit)&lt;BR /&gt;$ncName = $tp.Name&lt;BR /&gt;if not entity_exists('ncprogram', $ncName) {&lt;BR /&gt;create ncprogram ${ncName}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// add toolpath into nc program&lt;/P&gt;&lt;P&gt;//--------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;FOREACH $prog IN folder('ncprogram') {&lt;BR /&gt;int k = 0&lt;BR /&gt;ACTIVATE NCProgram $prog.name&lt;BR /&gt;//add main toolpath&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH $prog.name&lt;BR /&gt;int posit = position($prog.name,"-")&lt;BR /&gt;string $prefix = substring($prog.name, 0 , $posit)&lt;/P&gt;&lt;P&gt;foreach $tp in folder($subFolders[$index]) {&lt;/P&gt;&lt;P&gt;// add sub toolpath if exists&lt;BR /&gt;WHILE k &amp;lt; 50 {&lt;BR /&gt;String tp_check = $prefix + "+" + $k&lt;BR /&gt;IF ENTITY_EXISTS('toolpath', $tp_check) {&lt;BR /&gt;EDIT NCPROGRAM ; APPEND TOOLPATH $tp_check&lt;BR /&gt;//edit ncprogram $prog insert toolpath $tp_check last&lt;BR /&gt;}&lt;BR /&gt;$k= $k + 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 11:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12298693#M3213</guid>
      <dc:creator>nguyenthinhvt95</dc:creator>
      <dc:date>2023-10-11T11:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12298694#M3214</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14297825"&gt;@lamtuyphong11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 11:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12298694#M3214</guid>
      <dc:creator>nguyenthinhvt95</dc:creator>
      <dc:date>2023-10-11T11:28:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12299288#M3215</link>
      <description>&lt;P&gt;Thank you for helping me&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12299288#M3215</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-11T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: create a macro nc program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12299289#M3216</link>
      <description>&lt;P&gt;Quá ok a ơi&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:14:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-a-macro-nc-program/m-p/12299289#M3216</guid>
      <dc:creator>lamtuyphong11</dc:creator>
      <dc:date>2023-10-11T15:14:51Z</dc:date>
    </item>
  </channel>
</rss>

