<?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: Tool Swap Macro help. in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083318#M20890</link>
    <description>&lt;PRE&gt;STRING $FolderName = active_folder()
IF $FolderName == '' {
	MESSAGE ERROR "There is no active folder. Please activate a folder and try again."
	MACRO ABORT
}

FOREACH tl IN FOLDER(FolderName) {
	IF tl.Drill.Type == 'thread_mill' {   
		IF tl.SpindleSpeed.Value &amp;gt; 0 {
			&lt;FONT color="#0000FF"&gt;ACTIVATE TOOLPATH $tl.Name
			ENTITY $Selected_Tool = INPUT ENTITY TOOL "Select Replacement Tool"
			INVALIDATE TOOLPATH NOQUERY ;&lt;/FONT&gt;
			ACTIVATE TOOL $Selected_Tool.Name
			EDIT PAR 'CutDirection' 'conventional'
			EDIT TOOLPATH $tl.Name CALCULATE
		}
	}
}&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Jun 2018 16:11:46 GMT</pubDate>
    <dc:creator>rafael.sansao</dc:creator>
    <dc:date>2018-06-21T16:11:46Z</dc:date>
    <item>
      <title>Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083282#M20889</link>
      <description>&lt;P&gt;We just recently had our POST changed. It used to be setup that all thread mills ran CW. After the change it looks at the RPM and if the RPM is negative is runs CW and positive runs CCW.&amp;nbsp; Problem is our old programs, if you run them the thread mill it post out as running the spinlde CCW. Most of our thread mills are CW cutting. So I was trying to make this Macro to look at all the toolpaths in a Folder. Then if it sees a drill type listed as Thread_mill, and the spindle speed is greater than 0 it will ask you what tool to use to replace the current tool. Replace it and recalculate it. I think my issue is the $Selected_Tool is a list, and I'm trying to pull information as an Entity?? If someone could poke me in the right direction that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;STRING $FolderName = active_folder()

IF $FolderName == '' {
MESSAGE ERROR "There is no active folder. Please activate a folder and try again."
MACRO ABORT
}


FOREACH tl IN FOLDER(FolderName) {

IF tl.Drill.Type == 'thread_mill' {   
					IF tl.SpindleSpeed.Value &amp;gt; 0 {
					ENTITY LIST $Selected_Tool = INPUT ENTITY MULTIPLE TOOL "Select Replacement Tool"
					ACTIVATE TOOLPATH $tl.Name
					ACTIVATE TOOL $Selected_Tool.Name
					EDIT PAR 'CutDirection' 'conventional'
					EDIT TOOLPATH $tl.Name CALCULATE




											}		
						}	
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:57:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083282#M20889</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2018-06-21T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083318#M20890</link>
      <description>&lt;PRE&gt;STRING $FolderName = active_folder()
IF $FolderName == '' {
	MESSAGE ERROR "There is no active folder. Please activate a folder and try again."
	MACRO ABORT
}

FOREACH tl IN FOLDER(FolderName) {
	IF tl.Drill.Type == 'thread_mill' {   
		IF tl.SpindleSpeed.Value &amp;gt; 0 {
			&lt;FONT color="#0000FF"&gt;ACTIVATE TOOLPATH $tl.Name
			ENTITY $Selected_Tool = INPUT ENTITY TOOL "Select Replacement Tool"
			INVALIDATE TOOLPATH NOQUERY ;&lt;/FONT&gt;
			ACTIVATE TOOL $Selected_Tool.Name
			EDIT PAR 'CutDirection' 'conventional'
			EDIT TOOLPATH $tl.Name CALCULATE
		}
	}
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083318#M20890</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-06-21T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083320#M20891</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4439104"&gt;@Scoobyvroom&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STRING $Selected_Tool = INPUT ENTITY TOOL "Please select a Tool."&lt;/P&gt;&lt;P&gt;ACTIVATE TOOL $Selected_Tool&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083320#M20891</guid>
      <dc:creator>rui_rita</dc:creator>
      <dc:date>2018-06-21T16:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083995#M20892</link>
      <description>&lt;P&gt;Got the macro working 99% the way I want. The only issue I am still having is upon importing tools from the database it has a query box pop up. I have Dialog, and Message set to OFF. Anything else I can do to stop this pop up? I am importing multiple tools at one time. I also tried NOQUERY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:47:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8083995#M20892</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2018-06-21T20:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8084746#M20893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4439104"&gt;@Scoobyvroom&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try "NOQUIBBLE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TOOLDB RESULTS_LIST CREATE NOQUIBBLE SELECTED&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 08:35:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8084746#M20893</guid>
      <dc:creator>rui_rita</dc:creator>
      <dc:date>2018-06-22T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8085074#M20894</link>
      <description>&lt;P&gt;Thank you! works perfect now. Can I ask where you find this information?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:20:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/8085074#M20894</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2018-06-22T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/13812221#M32906</link>
      <description>&lt;P&gt;Hai&lt;BR /&gt;&lt;BR /&gt;could you please share the final macro&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 07:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/13812221#M32906</guid>
      <dc:creator>ramaprasad_narayan</dc:creator>
      <dc:date>2025-09-16T07:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Swap Macro help.</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/13817985#M32918</link>
      <description>&lt;P&gt;if the tool is of the same type, diameter you can replace the tool without invalidating the toolpath:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;STRING Cmd= "EDIT TOOLPATH '" + $tpName + "' REPLACE_TOOL '" + $RTools[$I] + "'"

DoCommand $Cmd&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Sep 2025 14:48:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-swap-macro-help/m-p/13817985#M32918</guid>
      <dc:creator>artur.boszczyk</dc:creator>
      <dc:date>2025-09-19T14:48:43Z</dc:date>
    </item>
  </channel>
</rss>

