<?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 Rename Toolpath again in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298381#M18932</link>
    <description>&lt;P&gt;Yes. CONTINUE "aborts" the current loop. See the description in the guide:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturar.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/551395iE9ABAF9AB1DCA849/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.PNG" alt="Capturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 02:19:55 GMT</pubDate>
    <dc:creator>rafael.sansao</dc:creator>
    <dc:date>2018-09-28T02:19:55Z</dc:date>
    <item>
      <title>Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8292776#M18928</link>
      <description>&lt;P&gt;I have a Macro thx to you that renames all toolpath.&lt;/P&gt;&lt;P&gt;What i like to do is that the macro should jump over disc profile finishing strategie. Every other toolpath should be renamed. Is something like that possible.&lt;/P&gt;&lt;PRE&gt;String $New_Name = ""
Int $Index = 0

FOREACH tp IN FOLDER('toolpath') {
    $Index = $Index + 1
	$New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.Tool.Name
	IF $tp.Strategy == "drill" {
	    $New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.FeatureSet.name + " - " + $tp.Tool.Name
	    RENAME Toolpath $tp.name $New_Name
	} ELSE {
	RENAME Toolpath $tp.name $New_Name
	}
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Sep 2018 04:25:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8292776#M18928</guid>
      <dc:creator>gosmann.andreas</dc:creator>
      <dc:date>2018-09-26T04:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8292849#M18929</link>
      <description>&lt;P&gt;You could try adding&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF NOT Strategy == "disk_profile" {
//rest of code
}&lt;/PRE&gt;&lt;P&gt;so it will only run the stuff between the { } if the strategy is not a disk profile strategy. Might be a simple work around for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 05:19:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8292849#M18929</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2018-09-26T05:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8293581#M18930</link>
      <description>&lt;P&gt;or:&lt;/P&gt;
&lt;PRE&gt;String $New_Name = ""
Int $Index = 0

FOREACH tp IN FOLDER('toolpath') {
&lt;FONT color="#339966"&gt;&lt;STRONG&gt;	IF $tp.Strategy == "disc_profile" {
		CONTINUE
	}&lt;/STRONG&gt;&lt;/FONT&gt;
    $Index = $Index + 1
	$New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.Tool.Name
	IF $tp.Strategy == "drill" {
	    $New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.FeatureSet.name + " - " + $tp.Tool.Name
	    RENAME Toolpath $tp.name $New_Name
	} ELSE {
		RENAME Toolpath $tp.name $New_Name
	}
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Sep 2018 11:11:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8293581#M18930</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-09-26T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298371#M18931</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;or:&lt;/P&gt;&lt;PRE&gt;String $New_Name = ""
Int $Index = 0

FOREACH tp IN FOLDER('toolpath') {
&lt;FONT color="#339966"&gt;&lt;STRONG&gt;	IF $tp.Strategy == "disc_profile" {
		CONTINUE
	}&lt;/STRONG&gt;&lt;/FONT&gt;
    $Index = $Index + 1
	$New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.Tool.Name
	IF $tp.Strategy == "drill" {
	    $New_Name = $Index + " - " + $tp.Strategy + " - " + $tp.FeatureSet.name + " - " + $tp.Tool.Name
	    RENAME Toolpath $tp.name $New_Name
	} ELSE {
		RENAME Toolpath $tp.name $New_Name
	}
}&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How does the "CONTINUE" command work? Is that any different then just leaving it blank between the{ }?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 02:13:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298371#M18931</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2018-09-28T02:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298381#M18932</link>
      <description>&lt;P&gt;Yes. CONTINUE "aborts" the current loop. See the description in the guide:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturar.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/551395iE9ABAF9AB1DCA849/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.PNG" alt="Capturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 02:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298381#M18932</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-09-28T02:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298382#M18933</link>
      <description>&lt;P&gt;Ah, thanks, surprised I missed that when I read through. Appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 02:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8298382#M18933</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2018-09-28T02:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Rename Toolpath again</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8301301#M18934</link>
      <description>&lt;P&gt;Thank you works fine&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 06:20:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-toolpath-again/m-p/8301301#M18934</guid>
      <dc:creator>gosmann.andreas</dc:creator>
      <dc:date>2018-09-29T06:20:55Z</dc:date>
    </item>
  </channel>
</rss>

