<?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: Create rectangle pattern from block macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478812#M5313</link>
    <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 22:34:48 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2022-10-12T22:34:48Z</dc:date>
    <item>
      <title>Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478713#M5308</link>
      <description>&lt;P&gt;Hi. Pretty new to writing macros in Powermill. I'm trying to write a macro for creating a specific toolpath based on some user input and need to create a rectangle in a pattern based on the block. I've figured it out except for getting the rectangle points from the block. If I just record the macro and pick points it works, but I want to be able to have the macro get the points from the block automatically. Hopes this makes sense. Any ideas? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 21:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478713#M5308</guid>
      <dc:creator>jasmcd1</dc:creator>
      <dc:date>2022-10-12T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478744#M5309</link>
      <description>&lt;P&gt;you want the x,y corners of the block?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;REAL xMinus = $toolpath.Block.Limits.XMin&lt;/P&gt;
&lt;P&gt;REAL xPlus = $toolpath.Block.Limits.XMax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on for y and z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is that what youre l;ooking for?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 21:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478744#M5309</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-10-12T21:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478753#M5310</link>
      <description>&lt;P&gt;I think that may be part of the solution, but how do I then use those values to create the rectangle? When I create the rectangle manually I have to pick points (top of block corners in this case) on the screen...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasmcd1_0-1665611227863.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126643i791FADE558E2808A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jasmcd1_0-1665611227863.png" alt="jasmcd1_0-1665611227863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 21:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478753#M5310</guid>
      <dc:creator>jasmcd1</dc:creator>
      <dc:date>2022-10-12T21:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478777#M5311</link>
      <description>&lt;P&gt;i see what you're saying&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try something like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;REAL xMinus = $toolpath.Block.Limits.XMin
REAL yMinus = $toolpath.Block.Limits.YMin
REAL xPlus = $toolpath.Block.Limits.XMax
REAL yPlus = $toolpath.Block.Limits.YMax

CREATE PATTERN ; EDIT PATTERN ; CURVEEDITOR NOGUI START
CURVEEDITOR MODE RECTANGLE
MODE COORDINPUT COORDINATES $xMinus $yMinus 0
MODE COORDINPUT COORDINATES $xPlus $yPlus 0
CURVEEDITOR FINISH ACCEPT&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 22:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478777#M5311</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-10-12T22:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478811#M5312</link>
      <description>&lt;P&gt;That worked perfectly! Thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 22:34:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478811#M5312</guid>
      <dc:creator>jasmcd1</dc:creator>
      <dc:date>2022-10-12T22:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create rectangle pattern from block macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478812#M5313</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 22:34:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-rectangle-pattern-from-block-macro/m-p/11478812#M5313</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2022-10-12T22:34:48Z</dc:date>
    </item>
  </channel>
</rss>

