<?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: Refresh/Update Toolpath name in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980255#M6755</link>
    <description>&lt;P&gt;so you want it to store the original information before you change, and then be able to recall it later?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the only way i can think to do that is to create a user defined parameter in the toolpath prior to changing it your first macro.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 19:17:23 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2022-03-02T19:17:23Z</dc:date>
    <item>
      <title>Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979427#M6751</link>
      <description>&lt;P&gt;Good Day,&lt;/P&gt;&lt;P&gt;I have this macro which will number and add toolpath info.&lt;/P&gt;&lt;P&gt;Once I have this, perhaps I might edit the name somewhat, replace the tool etc.&lt;/P&gt;&lt;P&gt;What I was wondering is if there's a way to refresh selected toolpaths, keeping the toolpath number but refreshing the tool info?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 { reset localvars string $new_name = "" STRING Strategy = 'null' DIALOGS MESSAGE OFF DIALOGS ERROR OFF GRAPHICS LOCK //starting number INT StartNumber = INPUT "Start at #?" INT start = $StartNumber STRING start1 = $StartNumber INT i = $start1 //set text to replace and new text STRING oldText = "." STRING newText = "," // IF { // Commands A // } ELSEIF { // Commands B // } ELSE { // Commands C // } FOREACH $tp IN explorer_selected_entities() { IF tp.drill.type == "helical" { //RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number} RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_XY" + tp.Drill.Thickness + "_Z" + tp.Drill.AxialThickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF tp.drill.type == "thread_mill" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_XY" + tp.Drill.Thickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "drill" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF tp.drill.type == "deep_drill" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF tp.drill.type == "break_chip" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "swarf" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "surface_machine" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "curve_profile" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "chamfer" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number} $i = $i + 1 } ELSEIF $tp.Strategy == "curve_area_clear" { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number} $i = $i + 1 } ELSE { RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number} $i = $i + 1 } IF position(tp.name, oldText) &amp;gt;= 0 { STRING newName = replace(tp.name, oldText, newText) RENAME TOOLPATH $tp.name $newName STRING newName2 = replace(tp.name, "chamfer", "Chamf") RENAME TOOLPATH $tp.name $newName2 STRING newName3 = replace(tp.name, "curve_profile", "Crv-Prof") RENAME TOOLPATH $tp.name $newName3 STRING newName4 = replace(tp.name, "adaptive_area_clear", "Vort-AreaClear") RENAME TOOLPATH $tp.name $newName4 STRING newName5 = replace(tp.name, "surface_machine", "SurfMachine") RENAME TOOLPATH $tp.name $newName5 STRING newName6 = replace(tp.name, "offset_area_clear", "Off-AreaClear") RENAME TOOLPATH $tp.name $newName6 STRING newName7 = replace(tp.name, "drill", "Drill") RENAME TOOLPATH $tp.name $newName7 STRING newName8 = replace(tp.name, "swarf", "Swarf") RENAME TOOLPATH $tp.name $newName8 STRING newName9 = replace(tp.name, "pattern", "Pattern") RENAME TOOLPATH $tp.name $newName9 STRING newName10 = replace(tp.name, "curve_area_clear", "Crv-AreaClear") RENAME TOOLPATH $tp.name $newName10 STRING newName11 = replace(tp.name, "face", "Face") RENAME TOOLPATH $tp.name $newName11 STRING newName12 = replace(tp.name, "embedded", "Embed") RENAME TOOLPATH $tp.name $newName12 STRING newName13 = replace(tp.name, "offset_flat", "Off-Flat") RENAME TOOLPATH $tp.name $newName13 STRING newName14 = replace(tp.name, "offset_3d", "Off-3d") RENAME TOOLPATH $tp.name $newName14 STRING newName15 = replace(tp.name, "constantz", "Const-Z") RENAME TOOLPATH $tp.name $newName15 STRING newName16 = replace(tp.name, "automatic_corner", "AutoCorn") RENAME TOOLPATH $tp.name $newName16 STRING newName17 = replace(tp.name, "multi_pencil_corner", "MultiPen") RENAME TOOLPATH $tp.name $newName17 STRING newName18 = replace(tp.name, "pencil_corner", "Pencil") RENAME TOOLPATH $tp.name $newName18 STRING newName19 = replace(tp.name, "disc_profile", "DiscProf") RENAME TOOLPATH $tp.name $newName19 STRING newName20 = replace(tp.name, "flowline", "Flow") RENAME TOOLPATH $tp.name $newName20 STRING newName21 = replace(tp.name, "opti_constz", "OptiConstZ") RENAME TOOLPATH $tp.name $newName21 STRING newName22 = replace(tp.name, "parametric_offset", "ParaOffset") RENAME TOOLPATH $tp.name $newName22 STRING newName23 = replace(tp.name, "parametric_spiral", "ParaSpiral") RENAME TOOLPATH $tp.name $newName23 STRING newName24 = replace(tp.name, "profile", "Prof") RENAME TOOLPATH $tp.name $newName24 STRING newName25 = replace(tp.name, "curve_projection", "Crv-Proj") RENAME TOOLPATH $tp.name $newName25 STRING newName26 = replace(tp.name, "line_projection", "LineProj") RENAME TOOLPATH $tp.name $newName26 STRING newName27 = replace(tp.name, "plane_projection", "PlaneProj") RENAME TOOLPATH $tp.name $newName27 STRING newName28 = replace(tp.name, "point_projection", "PointProj") RENAME TOOLPATH $tp.name $newName28 STRING newName29 = replace(tp.name, "surFace_proj", "Surf-Proj") RENAME TOOLPATH $tp.name $newName29 STRING newName30 = replace(tp.name, "radial", "Radial") RENAME TOOLPATH $tp.name $newName30 STRING newName31 = replace(tp.name, "raster", "Raster") RENAME TOOLPATH $tp.name $newName31 STRING newName32 = replace(tp.name, "Raster_flat", "Rast-Flat") RENAME TOOLPATH $tp.name $newName32 STRING newName33 = replace(tp.name, "rest_finishing", "RestFinish") RENAME TOOLPATH $tp.name $newName33 STRING newName34 = replace(tp.name, "rotary", "Rotary") RENAME TOOLPATH $tp.name $newName34 STRING newName35 = replace(tp.name, "spiral", "Spiral") RENAME TOOLPATH $tp.name $newName35 STRING newName36 = replace(tp.name, "inter_constz", "SteepShallow") RENAME TOOLPATH $tp.name $newName36 STRING newName37 = replace(tp.name, "wireframe_Profile", "WireProf") RENAME TOOLPATH $tp.name $newName37 STRING newName38 = replace(tp.name, "wireframe_Swarf", "WireSwarf") RENAME TOOLPATH $tp.name $newName38 STRING newName39 = replace(tp.name, "bore_1", "Ream") RENAME TOOLPATH $tp.name $newName39 STRING newName40 = replace(tp.name, "tap_2", "RigidTap") RENAME TOOLPATH $tp.name $newName40 STRING newName41 = replace(tp.name, "single_peck", "Sing-Peck") RENAME TOOLPATH $tp.name $newName41 STRING newName42 = replace(tp.name, "helical", "Heli") RENAME TOOLPATH $tp.name $newName42 STRING newName43 = replace(tp.name, "break_chip", "Universal") RENAME TOOLPATH $tp.name $newName43 STRING newName44 = replace(tp.name, "deep_Drill", "DeepDrill") RENAME TOOLPATH $tp.name $newName44 STRING newName45 = replace(tp.name, "Raster_area_clear", "Rast-AreaClear") RENAME TOOLPATH $tp.name $newName45 STRING newName46 = replace(tp.name, "corner_clear", "CornerClear") RENAME TOOLPATH $tp.name $newName46 STRING newName47 = replace(tp.name, "Profile_area_clear", "ProfAreaClear") RENAME TOOLPATH $tp.name $newName47 STRING newName48 = replace(tp.name, "plunge", "Plunge") RENAME TOOLPATH $tp.name $newName48 STRING newName49 = replace(tp.name, "Drill_thread_mill", "ThreadMill") RENAME TOOLPATH $tp.name $newName49 STRING newName50 = replace(tp.name, "port_area_clear", "PortAreaClear") RENAME TOOLPATH $tp.name $newName50 STRING newName51 = replace(tp.name, "port_Plunge", "PortPlunge") RENAME TOOLPATH $tp.name $newName51 STRING newName52 = replace(tp.name, "port_Spiral", "PortSpiral") RENAME TOOLPATH $tp.name $newName52 STRING newName53 = replace(tp.name, "surFace_inspection", "Probing") RENAME TOOLPATH $tp.name $newName53 DEACTIVATE Toolpath DEACTIVATE TOOL UNDRAW TOOL ALL } } DIALOGS MESSAGE ON DIALOGS ERROR ON GRAPHICS UNLOCK&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:03:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979427#M6751</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2022-03-02T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979431#M6752</link>
      <description>&lt;P&gt;Try that again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {&lt;BR /&gt;reset localvars&lt;BR /&gt;string $new_name = ""&lt;BR /&gt;STRING Strategy = 'null'&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;DIALOGS ERROR OFF&lt;BR /&gt;GRAPHICS LOCK&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//starting number&lt;BR /&gt;INT StartNumber = INPUT "Start at #?"&lt;BR /&gt;INT start = $StartNumber&lt;BR /&gt;STRING start1 = $StartNumber&lt;BR /&gt;INT i = $start1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//set text to replace and new text&lt;BR /&gt;STRING oldText = "."&lt;BR /&gt;STRING newText = ","&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// IF &amp;lt;expression_1&amp;gt; {&lt;BR /&gt;// Commands A&lt;BR /&gt;// } ELSEIF &amp;lt;expression_2&amp;gt; {&lt;BR /&gt;// Commands B&lt;BR /&gt;// } ELSE {&lt;BR /&gt;// Commands C&lt;BR /&gt;// }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOREACH $tp IN explorer_selected_entities() {&lt;/P&gt;&lt;P&gt;IF tp.drill.type == "helical" {&lt;BR /&gt;&lt;BR /&gt;//RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number}&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_XY" + tp.Drill.Thickness + "_Z" + tp.Drill.AxialThickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;} ELSEIF tp.drill.type == "thread_mill" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_XY" + tp.Drill.Thickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;} ELSEIF $tp.Strategy == "drill" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;} ELSEIF tp.drill.type == "deep_drill" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;} ELSEIF tp.drill.type == "break_chip" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.drill.type + "_" + tp.Tool.Identifier + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;} ELSEIF $tp.Strategy == "swarf" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;} ELSEIF $tp.Strategy == "surface_machine" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} ELSEIF $tp.Strategy == "curve_profile" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;} ELSEIF $tp.Strategy == "chamfer" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} ELSEIF $tp.Strategy == "curve_area_clear" {&lt;BR /&gt;&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.CurveThickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} ELSE {&lt;BR /&gt;RENAME TOOLPATH $tp.Name ${i + "_" + tp.Strategy + "_" + tp.Tool.Identifier + "_XY" + tp.Thickness + "_Z" + tp.axial_thickness + "_T" + tp.tool.number}&lt;/P&gt;&lt;P&gt;$i = $i + 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;IF position(tp.name, oldText) &amp;gt;= 0 {&lt;BR /&gt;STRING newName = replace(tp.name, oldText, newText)&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName&lt;BR /&gt;STRING newName2 = replace(tp.name, "chamfer", "Chamf")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName2&lt;BR /&gt;STRING newName3 = replace(tp.name, "curve_profile", "Crv-Prof")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName3&lt;BR /&gt;STRING newName4 = replace(tp.name, "adaptive_area_clear", "Vort-AreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName4&lt;BR /&gt;STRING newName5 = replace(tp.name, "surface_machine", "SurfMachine")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName5&lt;BR /&gt;STRING newName6 = replace(tp.name, "offset_area_clear", "Off-AreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName6&lt;BR /&gt;STRING newName7 = replace(tp.name, "drill", "Drill")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName7&lt;BR /&gt;STRING newName8 = replace(tp.name, "swarf", "Swarf")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName8&lt;BR /&gt;STRING newName9 = replace(tp.name, "pattern", "Pattern")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName9&lt;BR /&gt;STRING newName10 = replace(tp.name, "curve_area_clear", "Crv-AreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName10&lt;BR /&gt;STRING newName11 = replace(tp.name, "face", "Face")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName11&lt;BR /&gt;STRING newName12 = replace(tp.name, "embedded", "Embed")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName12&lt;BR /&gt;STRING newName13 = replace(tp.name, "offset_flat", "Off-Flat")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName13&lt;BR /&gt;STRING newName14 = replace(tp.name, "offset_3d", "Off-3d")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName14&lt;BR /&gt;STRING newName15 = replace(tp.name, "constantz", "Const-Z")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName15&lt;BR /&gt;STRING newName16 = replace(tp.name, "automatic_corner", "AutoCorn")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName16&lt;BR /&gt;STRING newName17 = replace(tp.name, "multi_pencil_corner", "MultiPen")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName17&lt;BR /&gt;STRING newName18 = replace(tp.name, "pencil_corner", "Pencil")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName18&lt;BR /&gt;STRING newName19 = replace(tp.name, "disc_profile", "DiscProf")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName19&lt;BR /&gt;STRING newName20 = replace(tp.name, "flowline", "Flow")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName20&lt;BR /&gt;STRING newName21 = replace(tp.name, "opti_constz", "OptiConstZ")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName21&lt;BR /&gt;STRING newName22 = replace(tp.name, "parametric_offset", "ParaOffset")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName22&lt;BR /&gt;STRING newName23 = replace(tp.name, "parametric_spiral", "ParaSpiral")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName23&lt;BR /&gt;STRING newName24 = replace(tp.name, "profile", "Prof")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName24&lt;BR /&gt;STRING newName25 = replace(tp.name, "curve_projection", "Crv-Proj")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName25&lt;BR /&gt;STRING newName26 = replace(tp.name, "line_projection", "LineProj")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName26&lt;BR /&gt;STRING newName27 = replace(tp.name, "plane_projection", "PlaneProj")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName27&lt;BR /&gt;STRING newName28 = replace(tp.name, "point_projection", "PointProj")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName28&lt;BR /&gt;STRING newName29 = replace(tp.name, "surFace_proj", "Surf-Proj")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName29&lt;BR /&gt;STRING newName30 = replace(tp.name, "radial", "Radial")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName30&lt;BR /&gt;STRING newName31 = replace(tp.name, "raster", "Raster")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName31&lt;BR /&gt;STRING newName32 = replace(tp.name, "Raster_flat", "Rast-Flat")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName32&lt;BR /&gt;STRING newName33 = replace(tp.name, "rest_finishing", "RestFinish")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName33&lt;BR /&gt;STRING newName34 = replace(tp.name, "rotary", "Rotary")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName34&lt;BR /&gt;STRING newName35 = replace(tp.name, "spiral", "Spiral")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName35&lt;BR /&gt;STRING newName36 = replace(tp.name, "inter_constz", "SteepShallow")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName36&lt;BR /&gt;STRING newName37 = replace(tp.name, "wireframe_Profile", "WireProf")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName37&lt;BR /&gt;STRING newName38 = replace(tp.name, "wireframe_Swarf", "WireSwarf")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName38&lt;BR /&gt;STRING newName39 = replace(tp.name, "bore_1", "Ream")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName39&lt;BR /&gt;STRING newName40 = replace(tp.name, "tap_2", "RigidTap")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName40&lt;BR /&gt;STRING newName41 = replace(tp.name, "single_peck", "Sing-Peck")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName41&lt;BR /&gt;STRING newName42 = replace(tp.name, "helical", "Heli")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName42&lt;BR /&gt;STRING newName43 = replace(tp.name, "break_chip", "Universal")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName43&lt;BR /&gt;STRING newName44 = replace(tp.name, "deep_Drill", "DeepDrill")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName44&lt;BR /&gt;STRING newName45 = replace(tp.name, "Raster_area_clear", "Rast-AreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName45&lt;BR /&gt;STRING newName46 = replace(tp.name, "corner_clear", "CornerClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName46&lt;BR /&gt;STRING newName47 = replace(tp.name, "Profile_area_clear", "ProfAreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName47&lt;BR /&gt;STRING newName48 = replace(tp.name, "plunge", "Plunge")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName48&lt;BR /&gt;STRING newName49 = replace(tp.name, "Drill_thread_mill", "ThreadMill")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName49&lt;BR /&gt;STRING newName50 = replace(tp.name, "port_area_clear", "PortAreaClear")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName50&lt;BR /&gt;STRING newName51 = replace(tp.name, "port_Plunge", "PortPlunge")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName51&lt;BR /&gt;STRING newName52 = replace(tp.name, "port_Spiral", "PortSpiral")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName52&lt;BR /&gt;STRING newName53 = replace(tp.name, "surFace_inspection", "Probing")&lt;BR /&gt;RENAME TOOLPATH $tp.name $newName53&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DEACTIVATE Toolpath&lt;BR /&gt;DEACTIVATE TOOL&lt;BR /&gt;UNDRAW TOOL ALL&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE ON&lt;BR /&gt;DIALOGS ERROR ON&lt;BR /&gt;GRAPHICS UNLOCK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979431#M6752</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2022-03-02T13:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979621#M6753</link>
      <description>&lt;P&gt;deactivate/reactivate the toolpath, that'll refresh the info&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 14:26:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10979621#M6753</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-03-02T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980060#M6754</link>
      <description>&lt;P&gt;Maybe I should explain a bit better.&lt;/P&gt;&lt;P&gt;I have a bunch of toolpaths (Pic1).&lt;/P&gt;&lt;P&gt;I run the macro (Pic2).&lt;/P&gt;&lt;P&gt;Now say for instance I change the tool used and thickness for a certain toolpath.&lt;/P&gt;&lt;P&gt;I want to create a macro button in my quick access toolbar (or user menu) which will update/refresh any selected toolpaths, returning the original toolpath number and any text edits made to the toolpath strategy.&lt;/P&gt;&lt;P&gt;So in short only the tool used, toolpath thickness and the tool number should be refreshed.&lt;/P&gt;&lt;P&gt;I hope that makes sense.&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 17:18:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980060#M6754</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2022-03-02T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980255#M6755</link>
      <description>&lt;P&gt;so you want it to store the original information before you change, and then be able to recall it later?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the only way i can think to do that is to create a user defined parameter in the toolpath prior to changing it your first macro.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:17:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980255#M6755</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-03-02T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980312#M6756</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3976796"&gt;@TK.421&lt;/a&gt;&amp;nbsp;Yes, that's exactly what I want.&lt;/P&gt;&lt;P&gt;Just not sure how to do that.&lt;/P&gt;&lt;P&gt;Thanks for the input btw!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980312#M6756</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2022-03-02T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980362#M6757</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 693px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1031716iECBA049F879A58C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this code:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;// for a string value
EDIT USERPAR toolpath_strategy ; TYPE 'String'
EDIT USERPAR toolpath_strategy ; NAME "stringName"
CREATE USERPAR toolpath_strategy ;
EDIT USERPAR toolpath_strategy ; "stringName" 'stringValue'

// for a real value
EDIT USERPAR toolpath_strategy ; TYPE 'Real'
EDIT USERPAR toolpath_strategy ; NAME "realName"
CREATE USERPAR toolpath_strategy ;
EDIT USERPAR toolpath_strategy ; "realName" '3.14'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then recall it thusly:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;ENTITY activeToolpath = entity('toolpath','')

If member($activeToolpath.UserParameters._keys, "stringName") {
    STRING msg = $activeToolpath.UserParameters.stringName
    MESSAGE INFO $msg
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10980362#M6757</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-03-02T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh/Update Toolpath name</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10997000#M6758</link>
      <description>&lt;P&gt;Thanks Mate,&lt;/P&gt;&lt;P&gt;I'll have a fiddle with that code.&lt;/P&gt;&lt;P&gt;Regards Jon K&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/refresh-update-toolpath-name/m-p/10997000#M6758</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2022-03-10T17:31:27Z</dc:date>
    </item>
  </channel>
</rss>

