<?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: run a macro for every toolpath and boundary in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450321#M25349</link>
    <description>&lt;P&gt;or something like this:&lt;/P&gt;
&lt;PRE&gt;FOREACH tp IN FOLDER('toolpath') {
	ACTIVATE TOOLPATH $tp.name
	MACRO "toolpathmacro.mac"
	
}
FOREACH b IN FOLDER('boundary')	{
	ACTIVATE BOUNDARY $b.name
	MACRO "boundarymacro.mac"
}&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Oct 2017 07:52:21 GMT</pubDate>
    <dc:creator>kukelyk</dc:creator>
    <dc:date>2017-10-11T07:52:21Z</dc:date>
    <item>
      <title>run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450235#M25347</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I make a macro that runs a macro for every toolpath and every boundary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to step up my game for automating my electrode&amp;nbsp;programming (changing spark gap automaticly by a predefined value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this isn't possible, how can I make a variable for every toolpath name? Note that the amount of toolpath my vary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Glenn&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 07:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450235#M25347</guid>
      <dc:creator>GlennM.MCAM</dc:creator>
      <dc:date>2017-10-11T07:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450310#M25348</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;PRE&gt;FOREACH tp IN FOLDER('toolpath') {
	FOREACH b IN FOLDER('boundary')	{
		ACTIVATE TOOLPATH $tp.name
		EDIT TOOLPATH ; CLONE
		ACTIVATE BOUNDARY $b.name
		EDIT TOOLPATH ; CALCULATE
	}
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 07:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450310#M25348</guid>
      <dc:creator>kukelyk</dc:creator>
      <dc:date>2017-10-11T07:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450321#M25349</link>
      <description>&lt;P&gt;or something like this:&lt;/P&gt;
&lt;PRE&gt;FOREACH tp IN FOLDER('toolpath') {
	ACTIVATE TOOLPATH $tp.name
	MACRO "toolpathmacro.mac"
	
}
FOREACH b IN FOLDER('boundary')	{
	ACTIVATE BOUNDARY $b.name
	MACRO "boundarymacro.mac"
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 07:52:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450321#M25349</guid>
      <dc:creator>kukelyk</dc:creator>
      <dc:date>2017-10-11T07:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450454#M25350</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3959841"&gt;@kukelyk&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 08:40:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7450454#M25350</guid>
      <dc:creator>GlennM.MCAM</dc:creator>
      <dc:date>2017-10-11T08:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7930376#M25351</link>
      <description>&lt;P&gt;How can I check if a boundary is active or the toolpath even has a boundary?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like this but doesn't work because that variable is incorrect&lt;/P&gt;&lt;PRE&gt;IF $b.active {
MESSAGE INFO "boundary is active"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Glenn&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 10:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7930376#M25351</guid>
      <dc:creator>GlennM.MCAM</dc:creator>
      <dc:date>2018-04-13T10:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: run a macro for every toolpath and boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7930419#M25352</link>
      <description>&lt;P&gt;Nevermind, found a solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF entity_exists(entity('boundary','')) {&lt;BR /&gt; MESSAGE INFO "active boundary"&lt;BR /&gt;} ELSE {&lt;BR /&gt; MESSAGE INFO "no active boundary"&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Apr 2018 10:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/run-a-macro-for-every-toolpath-and-boundary/m-p/7930419#M25352</guid>
      <dc:creator>GlennM.MCAM</dc:creator>
      <dc:date>2018-04-13T10:21:00Z</dc:date>
    </item>
  </channel>
</rss>

