<?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 macro not working correctly in 2019, thoughts? in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607578#M17101</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3969139"&gt;@5axes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Without a sample project to make some test it will be difficult to analyse your issue. Looks like a specific problem&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok, here is a sample project and the macro. If you select all the toolpaths and run the macro it will end up looking like this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 247px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605081i7E65C80EA4B39D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it cycles through each toolpath, clears the name and assigns the base number. after it adds the number, it deselects any toolpaths which are cloned/mirrored or created with a drilling method. This only started happening when I switched over to 2019. If you run the macro twice, it will rename everything with no problem.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 06:47:25 GMT</pubDate>
    <dc:creator>danmic7JH66</dc:creator>
    <dc:date>2019-02-20T06:47:25Z</dc:date>
    <item>
      <title>[MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522309#M17090</link>
      <description>&lt;P&gt;I have this rename macro that cycles through all selected toolpaths and renames them based on some factors. Since updating to 2019 it doesn't work correctly. It will cycle through each toolpath and assign them a number but when it&amp;nbsp;goes to the next toolpath, it sometimes deselects the toolpath it had just changed. The result is leaving some toolpath names like below, you can see how the toolpaths are deselected in the explorer window.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rename.PNG" style="width: 256px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/590801i143FCADF37A87565/image-size/large?v=v2&amp;amp;px=999" role="button" title="rename.PNG" alt="rename.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's not always on drilling programs that it deselects, just worked out that way for this session. Below is the macro. Thoughts or suggestions?&lt;/P&gt;
&lt;PRE&gt;STRING RNM = ' '
INT CNT = 0


// CYCLES THROUGH ALL SELECTED PROGRAMS AND CLEARS THE NAME AND ASSIGNS A NUMBER
 FOREACH $Selected_Toolpath IN (explorer_selected_entities()) {
    // Exit if the selected entities are not Toolpaths
    IF $Selected_Toolpath.RootType != "toolpath" {
        BREAK
  }
    MACRO APPERROR CONTINUE

// CLEARS THE TOOLPATH NAME AND ASSIGNS EACH ONE A NUMBER
IF CNT &amp;lt; 10 {
		$RNM = "0" + $CNT + "-" 
	} ELSE {
		$RNM = $CNT + "-"
	}
	
	RENAME Toolpath $Selected_Toolpath $RNM
	$CNT = $CNT + 1
	}
 
	// DETERMINS TOOL DIAMETER AND ADDS THAT TO THE TP NAME
	  
	 FOREACH $Selected_Toolpath IN (explorer_selected_entities()) {
		// Exit if the selected entities are not Toolpaths
		IF $Selected_Toolpath.RootType != "toolpath" {
			BREAK
	  }
		MACRO APPERROR CONTINUE
	ACTIVATE TOOLPATH $Selected_Toolpath

	// TOOLPATH NAME VARIABLE AND TOOLNUMBER VARIABLE
	STRING TPNAME = ENTITY('toolpath','').name
	INT TOONUM = ENTITY('toolpath','').tool.number
	STRING MISSEDTOOLNAME = ENTITY('tool','').name
	STRING TOOLNAME = ' '
	IF $TOONUM &amp;lt; 10 {
	$TOOLNAME = "T00" + $TOONUM + "-"
	} ELSE {
	$TOOLNAME = "T0" + $TOONUM + "-"
	}
	IF $TOONUM == 0 {
	MESSAGE INFO "YOU FORGOT TO ADD A TOOLNUMBER TO TOOL... $MISSEDTOOLNAME , ADD TOOLNUMBER AND RESTART MACRO!"
	RENAME TOOLPATH ; "NO TOOL NUMBER"
	BREAK
	}
	
	// TOOL DIAMETER VALUES
	STRING TOODIA = ENTITY('tool','').Diameter
	REAL TOOREA = $TOODIA
	REAL TOORND = ROUND ($TOOREA, 4)
	REAL TOOMET = $TOORND / 0.03937
	REAL METRND = ROUND ($TOOMET, 2)
	INT METINT = ROUND ($METRND, 1) 
	
	// HIGH TOLERANCE VALUE
	REAL TOL = ENTITY('toolpath','').tolerance
	
	
	
	
	// STOCK VARIABLES	
	REAL THICC = Toolpath.Thickness
	STRING STOCK = ' '
	
	IF $THICC &amp;gt;= 0.015 {
	$STOCK = "ROUGH"
	}
	IF $THICC &amp;lt; 0.015 AND $THICC &amp;gt;= 0.001 {
	$STOCK = "SEMI"
	}
	IF $THICC &amp;lt; 0.001 {
	$STOCK = "FINISH"
	}
	
	REAL FLTTHICC = Toolpath.AxialThickness
	STRING FLTSTOCK = ' '
	
	IF $FLTTHICC &amp;gt;= 0.015 {
	$FLTSTOCK = "ROUGH"
	}
	IF $FLTTHICC &amp;lt; 0.015 AND $THICC &amp;gt;= 0.001 {
	$FLTSTOCK = "SEMI"
	}
	IF $FLTTHICC &amp;lt; 0.001 {
	$FLTSTOCK = "FINISH"
	}
		
		// SPIGOT TOOL VARIABLE
		STRING SPIGNAM = ENTITY('tool','').name
		$SPIGNAM = UCASE ($SPIGNAM)
		
		// NEW NAME BASE STRING
		STRING NEWNAME = $TPNAME + $TOOLNAME
		
		// TOOLPATH NAME VARIABLES
		STRING CHAMFERNAME = $NEWNAME + "CHAMFER"
		STRING SCRIBENAME = $NEWNAME + "SCRIBE"
		STRING DRILLNAME = $NEWNAME + $METRND + "MM_DRILL"
		STRING TAPNAME = $NEWNAME + $METINT + "MM_TAP"
		STRING HELINAME = $NEWNAME + $METINT + "MM_HELICAL-" + $STOCK
		STRING RASTERFLAT = $NEWNAME + $METINT + "MM_FLAT-" + $FLTSTOCK
		STRING OFFSETFLAT = $NEWNAME + $METINT + "MM_OFFSETFLAT-" + $FLTSTOCK
		STRING BALLNAME = $NEWNAME + $METINT + "MM_BALL-" + $STOCK
		STRING SPIGOT = $NEWNAME + "10MM_SPIGOT"
		STRING SPIGOTT = $NEWNAME + "14MM_SPIGOT"
		STRING SPIGOTTT = $NEWNAME + "18MM_SPIGOT"
		STRING SPIGOTTTT = $NEWNAME + "22MM_SPIGOT"
		
		// DECIDES WHAT TO NAME THE TOOLPATH BASED ON DIFFERENT TOOLPATH VARIABLES
		
		IF Strategy == "chamfer" {
		$NEWNAME = $CHAMFERNAME
				
		} ELSEIF Tool.Type == "taper_tipped" {
		$NEWNAME = $SCRIBENAME
		
		} ELSEIF Strategy == "drill" {
		
		IF toolpath.Drill.Type == "helical" {
		$NEWNAME = $HELINAME
		
			} ELSEIF toolpath.Drill.Type == 'tap_2' {
			$NEWNAME = $TAPNAME
				
				} ELSEIF toolpath.Drill.DepthType == 'chamfer' {
					$NEWNAME = $CHAMFERNAME
					
					} ELSEIF POSITION ($SPIGNAM,"10MM SPIGOT") &amp;gt;= 0 {
					$NEWNAME = $SPIGOT
				
						} ELSEIF POSITION ($SPIGNAM,"14MM SPIGOT") &amp;gt;= 0 {
						$NEWNAME = $SPIGOTT
						
							} ELSEIF POSITION ($SPIGNAM,"18MM SPIGOT") &amp;gt;= 0 {
							$NEWNAME = $SPIGOTTT
								
								} ELSEIF POSITION ($SPIGNAM,"22MM SPIGOT") &amp;gt;= 0 {
								$NEWNAME = $SPIGOTTTT
									} ELSE {
									$NEWNAME = $DRILLNAME
} 

		} ELSEIF Strategy == "raster_flat" {
		$NEWNAME = $RASTERFLAT
		
		} ELSEIF Strategy == "offset_flat" {
		$NEWNAME = $OFFSETFLAT
		
		} ELSEIF $TOOREA == 2.0 {
		$NEWNAME = $NEWNAME + "2_" + $STOCK
		
		} ELSEIF Tool.Type == "ball_nosed" {
		$NEWNAME = $BALLNAME
		
		} ELSE {
		$NEWNAME = $NEWNAME + $METINT + "MM-" + $STOCK
		}
		
		IF $TOL &amp;lt;= 0.0001 {
		$NEWNAME = $NEWNAME + "-HT"
		
		} ELSE {
		$NEWNAME = $NEWNAME
		}
		
		RENAME TOOLPATH ; $NEWNAME
}
MESSAGE INFO "TOOLPATHS RENAMED"
&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jan 2019 04:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522309#M17090</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-15T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522451#M17091</link>
      <description>&lt;P&gt;Define selection filtering：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ENTITY LIST sel_ = explorer_selected_entities()&lt;BR /&gt;ENTITY LIST sel_Toolpath = {}&lt;BR /&gt;INT tpn = 0&lt;/P&gt;
&lt;P&gt;FOREACH Toolpath IN sel_ {&lt;BR /&gt;IF position(pathname($Toolpath), "Toolpath") != -1 {&lt;BR /&gt;$tpn = add_last(sel_Toolpath, $Toolpath)&lt;BR /&gt;} &lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;BOOL carryon = 0&lt;BR /&gt;IF $tpn != 0 {&lt;BR /&gt;STRING yesnoprompt = "Name the selected toolpath?" + CRLF + "Yes (selected)" + CRLF + "No (all)"&lt;BR /&gt;$carryon = QUERY $yesnoprompt&lt;BR /&gt;}&lt;BR /&gt;ENTITY LIST sel = select($carryon == 0 or $tpn == 0 ; folder('Toolpath'); $sel_Toolpath )&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 06:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522451#M17091</guid>
      <dc:creator>Ye。xg</dc:creator>
      <dc:date>2019-01-15T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522502#M17092</link>
      <description>&lt;P&gt;I'll give that a try and report back later, thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 07:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522502#M17092</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-15T07:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522724#M17093</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4680222"&gt;@Ye。xg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Define selection filtering：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ENTITY LIST sel_ = explorer_selected_entities()&lt;BR /&gt;ENTITY LIST sel_Toolpath = {}&lt;BR /&gt;INT tpn = 0&lt;/P&gt;
&lt;P&gt;FOREACH Toolpath IN sel_ {&lt;BR /&gt;IF position(pathname($Toolpath), "Toolpath") != -1 {&lt;BR /&gt;$tpn = add_last(sel_Toolpath, $Toolpath)&lt;BR /&gt;} &lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;BOOL carryon = 0&lt;BR /&gt;IF $tpn != 0 {&lt;BR /&gt;STRING yesnoprompt = "Name the selected toolpath?" + CRLF + "Yes (selected)" + CRLF + "No (all)"&lt;BR /&gt;$carryon = QUERY $yesnoprompt&lt;BR /&gt;}&lt;BR /&gt;ENTITY LIST sel = select($carryon == 0 or $tpn == 0 ; folder('Toolpath'); $sel_Toolpath )&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So far so good, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522724#M17093</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-15T09:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522785#M17094</link>
      <description>&lt;P&gt;Ok, nevermind. It's doing the same thing again...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rename.PNG" style="width: 301px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/590872i1B0AD6941AA84DA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="rename.PNG" alt="rename.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:48:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8522785#M17094</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-15T09:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8523166#M17095</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4344066"&gt;@danmic7JH66&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check below link,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/powermill-forum/macro-serial-number-in-toolpath/m-p/7818384#M8995" target="_blank"&gt;https://forums.autodesk.com/t5/powermill-forum/macro-serial-number-in-toolpath/m-p/7818384#M8995&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Krupal Vala&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 12:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8523166#M17095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T12:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8525994#M17096</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4344066"&gt;@danmic7JH66&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check below link,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/powermill-forum/macro-serial-number-in-toolpath/m-p/7818384#M8995" target="_blank"&gt;https://forums.autodesk.com/t5/powermill-forum/macro-serial-number-in-toolpath/m-p/7818384#M8995&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Krupal Vala&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, sorry that doesn't help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 10:07:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8525994#M17096</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-16T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8527495#M17097</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4344066"&gt;@danmic7JH66&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check if this happens when you change you folder name ( you have 'TOOLPATH' as folder)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 18:16:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8527495#M17097</guid>
      <dc:creator>rui_rita</dc:creator>
      <dc:date>2019-01-16T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8536817#M17098</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4003219"&gt;@rui_rita&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4344066"&gt;@danmic7JH66&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check if this happens when you change you folder name ( you have 'TOOLPATH' as folder)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Having different folder names does not change the results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:24:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8536817#M17098</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-01-21T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8604845#M17099</link>
      <description>&lt;P&gt;Still haven't found a solution to this problem but I have discovered it mainly skips cloned toolpaths and toolpaths generated from drilling methods. Does anyone have any idea what's going on here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:17:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8604845#M17099</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-02-19T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8604869#M17100</link>
      <description>&lt;P&gt;Without a sample project to make some test it will be difficult to analyse your issue. Looks like a specific problem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:26:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8604869#M17100</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-19T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607578#M17101</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3969139"&gt;@5axes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Without a sample project to make some test it will be difficult to analyse your issue. Looks like a specific problem&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok, here is a sample project and the macro. If you select all the toolpaths and run the macro it will end up looking like this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 247px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605081i7E65C80EA4B39D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it cycles through each toolpath, clears the name and assigns the base number. after it adds the number, it deselects any toolpaths which are cloned/mirrored or created with a drilling method. This only started happening when I switched over to 2019. If you run the macro twice, it will rename everything with no problem.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 06:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607578#M17101</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-02-20T06:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607587#M17102</link>
      <description>&lt;P&gt;It won't let me upload the file so here's a google drive link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://drive.google.com/open?id=1APUbn_c5f0gvj_x3YB-eA3CoIwf739Cw" target="_blank"&gt;https://drive.google.com/open?id=1APUbn_c5f0gvj_x3YB-eA3CoIwf739Cw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 06:54:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607587#M17102</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-02-20T06:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607734#M17103</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I don't know if it's a bug , but I would suggest to not work directly on the&amp;nbsp;explorer_selected_entities() list directly. As you can have in your macro this list can change especialy if you use it twice like in your macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So First think store this temporary list into an ENTITY list and work on these lists&lt;/P&gt;
&lt;PRE&gt;// INIT the list of selected entities
ENTITY LIST SelEnt=explorer_selected_entities()
ENTITY LIST ModiEnt={}&lt;/PRE&gt;
&lt;P&gt;Herewith your modified (Working) macro&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, 20 Feb 2019 08:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607734#M17103</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-20T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607741#M17104</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3969139"&gt;@5axes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I don't know if it's a bug , but I would suggest to not work directly on the&amp;nbsp;explorer_selected_entities() list directly. As you can have in your macro this list can change especialy if you use it twice like in your macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So First think store this temporary list into an ENTITY list and work on these lists&lt;/P&gt;
&lt;PRE&gt;// INIT the list of selected entities
ENTITY LIST SelEnt=explorer_selected_entities()
ENTITY LIST ModiEnt={}&lt;/PRE&gt;
&lt;P&gt;Herewith your modified (Working) macro&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That did the trick, thanks! I haven't experimented much with creating lists so I didn't even think about doing that. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 08:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607741#M17104</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-02-20T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607770#M17105</link>
      <description>&lt;P&gt;Your welcome ..&lt;/P&gt;
&lt;P&gt;By the way, it's nice also to have a project with your tool library, it's offer me the opportunity to test my own marcos on a different user configuration.&amp;nbsp; One of my macro is design to test invalid toolholder :&lt;BR /&gt;Test in the library, tools with the same holder reference but different geometry .&amp;nbsp; In your case several tool are detected by the macro . It's not big difference but on my mpoint of view it's better to start form a clean tool list. Have a look to the joined video &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8607770#M17105</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-20T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: [MACRO] Rename macro not working correctly in 2019, thoughts?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8613292#M17106</link>
      <description>&lt;P&gt;That's interesting thanks! I was the one who started out the tool list for that machine originally and another employee took it over when I got swamped so I'm assuming that's where the differences started. The tool library for that machine is a mess and I've been meaning to get to it but just haven't had the time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 03:36:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-rename-macro-not-working-correctly-in-2019-thoughts/m-p/8613292#M17106</guid>
      <dc:creator>danmic7JH66</dc:creator>
      <dc:date>2019-02-22T03:36:03Z</dc:date>
    </item>
  </channel>
</rss>

