<?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: help needed for a macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14040366#M33290</link>
    <description>&lt;P&gt;UNLUKILY I don't understand why, also using macro pause, the macro only flips the axis orientation.&lt;/P&gt;&lt;P&gt;sometime rotate 180 degrees, sometime flips 360 degrees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my macro again: because when I mirror I can't flip manually all the toolpaths!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;entity list $tps = input entity multiple toolpath 'SELEZIONA PERCORSI'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Dialogs message off&lt;/DIV&gt;&lt;DIV&gt;foreach $tp in $tps {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;STRING Msg = "riavvia se ha aggiornato"&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;EXPLORER SELECT Toolpath "$tp.Name" NEW&lt;/DIV&gt;&lt;DIV&gt;ACTIVATE TOOLPATH $tp.name&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "MachineTool"&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD START&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD FLIPORIENTATION&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD UPDATETOOLPATH&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD ACCEPT&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "MachineTool"&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "Home"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;MACRO PAUSE $Msg&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;Dialogs message on&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;well...... thanks to the solver, if.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;greetings&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;danny&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2026 15:08:26 GMT</pubDate>
    <dc:creator>benettitec01</dc:creator>
    <dc:date>2026-03-03T15:08:26Z</dc:date>
    <item>
      <title>help needed for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14040148#M33289</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I have this macro that let me choose wich toolpaths It reverses the machine head. unfortunatelly the update time is sometime too high so I decided I had to input a macro pause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But so that I have to look at the process , wait for the updating, and lately confirm the macro pause to go forward.&lt;/P&gt;&lt;P&gt;Is there someone that can help me to avoid to manually confirm for each toolpath? I don't know how to make the macro consider the update time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my macro, and thank you for helping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;entity list $tps = input entity multiple toolpath 'SELEZIONA PERCORSI'&lt;/P&gt;&lt;P&gt;Dialogs message off&lt;BR /&gt;foreach $tp in $tps {&lt;/P&gt;&lt;P&gt;EXPLORER SELECT Toolpath "$tp.Name" NEW&lt;BR /&gt;ACTIVATE TOOLPATH $tp.name&lt;BR /&gt;FORM RIBBON TAB "MachineTool"&lt;BR /&gt;MODE TOOLCONTROLPAD START&lt;BR /&gt;MODE TOOLCONTROLPAD FLIPORIENTATION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STRING Msg = "riavvia se ha aggiornato"&lt;BR /&gt;MODE TOOLCONTROLPAD UPDATETOOLPATH&lt;BR /&gt;MACRO PAUSE $Msg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MODE TOOLCONTROLPAD ACCEPT&lt;BR /&gt;FORM RIBBON TAB "MachineTool"&lt;BR /&gt;FORM RIBBON TAB "Home"&lt;BR /&gt;TEXTINFO ACCEPT&lt;BR /&gt;DEACTIVATE Toolpath&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;Dialogs message on&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 12:56:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14040148#M33289</guid>
      <dc:creator>benettitec01</dc:creator>
      <dc:date>2026-03-03T12:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14040366#M33290</link>
      <description>&lt;P&gt;UNLUKILY I don't understand why, also using macro pause, the macro only flips the axis orientation.&lt;/P&gt;&lt;P&gt;sometime rotate 180 degrees, sometime flips 360 degrees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my macro again: because when I mirror I can't flip manually all the toolpaths!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;entity list $tps = input entity multiple toolpath 'SELEZIONA PERCORSI'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Dialogs message off&lt;/DIV&gt;&lt;DIV&gt;foreach $tp in $tps {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;STRING Msg = "riavvia se ha aggiornato"&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;EXPLORER SELECT Toolpath "$tp.Name" NEW&lt;/DIV&gt;&lt;DIV&gt;ACTIVATE TOOLPATH $tp.name&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "MachineTool"&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD START&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD FLIPORIENTATION&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD UPDATETOOLPATH&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MODE TOOLCONTROLPAD ACCEPT&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "MachineTool"&lt;/DIV&gt;&lt;DIV&gt;FORM RIBBON TAB "Home"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;MACRO PAUSE $Msg&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;Dialogs message on&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;well...... thanks to the solver, if.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;greetings&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;danny&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 15:08:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14040366#M33290</guid>
      <dc:creator>benettitec01</dc:creator>
      <dc:date>2026-03-03T15:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14046440#M33298</link>
      <description>&lt;P&gt;Você pode responder algo assim no fórum:&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I updated your macro slightly to make it a bit cleaner and avoid some unnecessary overhead. However, macros that interact with the Tool Control Pad and force a toolpath update are inherently slow in Powermill, because each toolpath must be recalculated after the orientation change.&lt;/P&gt;
&lt;P&gt;So unfortunately you will probably not get a much faster result than this when using a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the updated version:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;ENTITY LIST $tps = input entity multiple toolpath 'SELEZIONA PERCORSI'

DIALOGS MESSAGE OFF
GRAPHICS LOCK
FOREACH $tp IN $tps {
	ACTIVATE TOOLPATH $tp.name
	SIMULATE TOOLPATH $tp.name
	MODE TOOLCONTROLPAD START
	MODE TOOLCONTROLPAD FLIPORIENTATION
	MODE TOOLCONTROLPAD UPDATETOOLPATH
	MODE TOOLCONTROLPAD ACCEPT
	TEXTINFO ACCEPT
	DEACTIVATE Toolpath
}
GRAPHICS UNLOCK
DIALOGS MESSAGE ON&lt;/LI-CODE&gt;
&lt;P&gt;This should behave the same as your original macro but with slightly cleaner execution. However, since each toolpath still needs to be recalculated, the execution time will mainly depend on the number and complexity of the toolpaths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, macros do not have a faster internal way to flip the orientation of multiple toolpaths.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2026 17:59:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-needed-for-a-macro/m-p/14046440#M33298</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2026-03-07T17:59:19Z</dc:date>
    </item>
  </channel>
</rss>

