<?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: please help with macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997933#M33185</link>
    <description>&lt;P&gt;Thank you so much! Everything worked as I wanted.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2026 15:30:26 GMT</pubDate>
    <dc:creator>romanov-kovrov</dc:creator>
    <dc:date>2026-01-30T15:30:26Z</dc:date>
    <item>
      <title>please help with macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13995460#M33179</link>
      <description>&lt;P&gt;FOREACH tp IN folder('Toolpath') {&lt;BR /&gt;ACTIVATE TOOLPATH $tp.Name&lt;BR /&gt;STRING NewName = replace(Name, 'DRAFT', 'FINAL')+'...'+limits('toolpath','')[4]&lt;BR /&gt;RENAME TOOLPATH ; $NewName&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.help me modify it to round or leave 2 digits after the point like 0.00&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1614267iC9A09DC6E1630B98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;tell me a macro to rename all Toolpaths at once, delete everything to the right of ... dots, thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 06:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13995460#M33179</guid>
      <dc:creator>romanov-kovrov</dc:creator>
      <dc:date>2026-01-29T06:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: please help with macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13995889#M33180</link>
      <description>&lt;P&gt;This rounds to 2 decimal places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;FOREACH tp IN folder('Toolpath') {
    ACTIVATE TOOLPATH $tp.Name

    REAL zVal = round(limits('toolpath','')[4]; 2)

    STRING NewName = replace(Name, 'DRAFT', 'FINAL') + '...' + $zVal
    RENAME TOOLPATH ; $NewName
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand your renaming request. you want to delete&amp;nbsp; the z min limits that were added to your toolpath name? Thats what is to the right of the dots.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 12:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13995889#M33180</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2026-01-29T12:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: please help with macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997312#M33182</link>
      <description>&lt;P&gt;yes, you understood everything correctly, before you write to delete the values, if I recalculate TOOLPATH and run the macro again it turns out like this, which can be confusing&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 843px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1614674i4D4ED128965EFD2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 07:16:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997312#M33182</guid>
      <dc:creator>romanov-kovrov</dc:creator>
      <dc:date>2026-01-30T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: please help with macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997878#M33184</link>
      <description>&lt;LI-CODE lang="csharp"&gt;FOREACH tp IN folder('Toolpath') {
    ACTIVATE TOOLPATH $tp.Name
    REAL zVal = round(limits('toolpath','')[4]; 2)
    
    STRING baseName = replace(Name, 'DRAFT', 'FINAL')
    
    // Remove any existing "...zVal" value from previous runs
    INT lastDotPos = position($baseName, '...')
    IF lastDotPos &amp;gt; 0 {
        $baseName = substring($baseName, 0, lastDotPos)
    }
    
    STRING NewName = $baseName + '...' + $zVal
    RENAME TOOLPATH ; $NewName
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 30 Jan 2026 15:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997878#M33184</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2026-01-30T15:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: please help with macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997933#M33185</link>
      <description>&lt;P&gt;Thank you so much! Everything worked as I wanted.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 15:30:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/please-help-with-macro/m-p/13997933#M33185</guid>
      <dc:creator>romanov-kovrov</dc:creator>
      <dc:date>2026-01-30T15:30:26Z</dc:date>
    </item>
  </channel>
</rss>

