<?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: Check for Active Boundary in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10031379#M9433</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6909551"&gt;@cfastNJWK6&lt;/a&gt;&amp;nbsp;, I will give it a try and see how things go, there are some applications where this will be very helpful. Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 10:09:56 GMT</pubDate>
    <dc:creator>slejeuneSZHJV</dc:creator>
    <dc:date>2021-01-26T10:09:56Z</dc:date>
    <item>
      <title>Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029518#M9426</link>
      <description>&lt;P&gt;I am having some trouble getting this macro to work,&lt;/P&gt;&lt;P&gt;What I am trying to do is, check to see if "BOUNDARY_3" is active, and if it is do ect... ELSE do etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with this code below and it works as it should.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF entity_exists('boundary', 'BOUNDARY_3') {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do etc...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} ELSE {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do etc...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I switched it up to have it check if it was active and I'm having no luck getting it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF active entity_exists('boundary', 'BOUNDARY_3') {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do etc...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} ELSE {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do etc...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:55:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029518#M9426</guid>
      <dc:creator>slejeuneSZHJV</dc:creator>
      <dc:date>2021-01-25T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029549#M9427</link>
      <description>&lt;P&gt;You can get the Active Boundary like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;STRING $ActiveBoundary = ""
$ActiveBoundary = entity_exists(entity('Boundary', ''))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 18:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029549#M9427</guid>
      <dc:creator>cfastNJWK6</dc:creator>
      <dc:date>2021-01-25T18:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029552#M9428</link>
      <description>&lt;LI-CODE lang="csharp"&gt;IF entity_exists('boundary', '') AND entity_exists('boundary', 'BOUNDARY_3') {
	do etc...
} ELSE {
	do etc...
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 18:08:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029552#M9428</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2021-01-25T18:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029649#M9429</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6909551"&gt;@cfastNJWK6&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! , I gave both a try and seem to get the same results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have two other boundaries Im working with,&amp;nbsp; Boundary_1 , Boundary_2 , and Boundary_3 are in this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I am having issues with is,&lt;/P&gt;&lt;P&gt;If none of the boundaries are active it does the ELSE section of the code, and if any one of these boundaries are active it does the first section of the code , regardless of what the name of the boundary is. When it needs to be checking if the Boundary_3 is active or not.&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;</description>
      <pubDate>Mon, 25 Jan 2021 18:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029649#M9429</guid>
      <dc:creator>slejeuneSZHJV</dc:creator>
      <dc:date>2021-01-25T18:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029669#M9430</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;IF entity_exists('boundary', '') {
	IF $entity('boundary', '').Name == 'BOUNDARY_3' {
		MESSAGE INFO "BOUNDARY_3 Active"
	} ELSE {
		MESSAGE INFO "Other"
	}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 18:52:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029669#M9430</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2021-01-25T18:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029679#M9431</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;&amp;nbsp; This worked perfect&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 18:55:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029679#M9431</guid>
      <dc:creator>slejeuneSZHJV</dc:creator>
      <dc:date>2021-01-25T18:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029873#M9432</link>
      <description>&lt;P&gt;I typically don't like to hard-code entity names into my macros.&amp;nbsp; To avoid it you can do something like this to allow the user to select which boundary to use while the macro runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;STRING $ActiveBoundary = ""
$ActiveBoundary = INPUT ENTITY BOUNDARY "Select the Boundary you would like to use."&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:05:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10029873#M9432</guid>
      <dc:creator>cfastNJWK6</dc:creator>
      <dc:date>2021-01-25T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Active Boundary</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10031379#M9433</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6909551"&gt;@cfastNJWK6&lt;/a&gt;&amp;nbsp;, I will give it a try and see how things go, there are some applications where this will be very helpful. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 10:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/check-for-active-boundary/m-p/10031379#M9433</guid>
      <dc:creator>slejeuneSZHJV</dc:creator>
      <dc:date>2021-01-26T10:09:56Z</dc:date>
    </item>
  </channel>
</rss>

