<?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: Accessing active entity in a macro : # or ; or something else? in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112748#M27314</link>
    <description>&lt;P&gt;The # is the last created entity. I rarely use this unless my macro is creating only one thing that is not activated upon creation, for me it usually causes more problems than it helps solve.&amp;nbsp; the ; is for an active entity. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create pattern ;&lt;/P&gt;
&lt;P&gt;edit pattern ; insert boundary ;&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2017 14:33:18 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2017-05-27T14:33:18Z</dc:date>
    <item>
      <title>Accessing active entity in a macro : # or ; or something else?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112520#M27312</link>
      <description>&lt;P&gt;I was under the impression that we can access the active entity using '#' or ';'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROBLEM :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two boundaries B1 and B2. Lets say B2 is active and I want to make a pattern from this boundary.&lt;/P&gt;&lt;P&gt;I create a pattern and insert the active boundary using the following macro commands :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE PATTERN ;&lt;BR /&gt;EDIT PATTERN # INSERT BOUNDARY #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It even works under most cases, but I found an exception :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before running the macro commands, try the following using the GUI :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0. Activate boundary B2&lt;/P&gt;&lt;P&gt;1. Create a pattern by right click Pattern -&amp;gt; create Pattern&lt;/P&gt;&lt;P&gt;2. Right click the newly created pattern, insert boundary -&amp;gt; choose B1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if I run the macro commands mentioned above, the pattern gets created from boundary B1 even though the active boundary is B2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different way to access active entities? Will I have to loop though all boundaries, find the active one, assign it a variable and then use it to insert into a pattern?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 06:47:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112520#M27312</guid>
      <dc:creator>precicam</dc:creator>
      <dc:date>2017-05-27T06:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing active entity in a macro : # or ; or something else?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112540#M27313</link>
      <description>&lt;P&gt;Ok figured out that changing # to ; in the following line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT PATTERN ; INSERT BOUNDARY #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solves the problem. But there is no documentation for what # and ; mean?&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 07:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112540#M27313</guid>
      <dc:creator>precicam</dc:creator>
      <dc:date>2017-05-27T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing active entity in a macro : # or ; or something else?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112748#M27314</link>
      <description>&lt;P&gt;The # is the last created entity. I rarely use this unless my macro is creating only one thing that is not activated upon creation, for me it usually causes more problems than it helps solve.&amp;nbsp; the ; is for an active entity. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create pattern ;&lt;/P&gt;
&lt;P&gt;edit pattern ; insert boundary ;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 14:33:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/accessing-active-entity-in-a-macro-or-or-something-else/m-p/7112748#M27314</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2017-05-27T14:33:18Z</dc:date>
    </item>
  </channel>
</rss>

