<?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: lisp for rectangle by sides in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680790#M126608</link>
    <description>&lt;P&gt;&lt;SPAN&gt;It is very impressive. but I need to choose a point, not lines. the axes would be a representation of 2D drawings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for response&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 19:56:15 GMT</pubDate>
    <dc:creator>nacho_korn</dc:creator>
    <dc:date>2016-11-10T19:56:15Z</dc:date>
    <item>
      <title>lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679627#M126587</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I need a lisp with which I can make a rectangle by choosing the center point and 2 points of the centers of the sides&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This would be to make 3D planes based on cross-shaped 2d views.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you can do it by selecting the middle of the 2 sides, since it will always be in cross and you could calculate the center automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and excuse the translation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 14:29:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679627#M126587</guid>
      <dc:creator>nacho_korn</dc:creator>
      <dc:date>2016-11-10T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679740#M126588</link>
      <description>&lt;P&gt;Seems to me that if starting with the midpoints of two adjacent sides that there are two solutions.&lt;/P&gt;&lt;P&gt;Might there be additional information such as would indicate whether a point is on a side vs. a top or bottom?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 15:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679740#M126588</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-10T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679744#M126589</link>
      <description>You could use the POLYGON command. I know it will only draw a square to begin with, but then it's easy to stretch one side out to make a rectangle without equal sides.</description>
      <pubDate>Thu, 10 Nov 2016 15:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679744#M126589</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2016-11-10T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679812#M126590</link>
      <description>That sounds like the equivalent of a 2 point circle.</description>
      <pubDate>Thu, 10 Nov 2016 15:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679812#M126590</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-10T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679813#M126591</link>
      <description>That sounds like the equivalent of a 2 point circle.</description>
      <pubDate>Thu, 10 Nov 2016 15:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6679813#M126591</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-10T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680052#M126592</link>
      <description>&lt;P&gt;Here try this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;defun&lt;/SPAN&gt; c:2prec &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;/&lt;/SPAN&gt; mp1 mp2 p1 p3 &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp1 &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify first middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify second middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cond&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p1 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp1 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p3 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;*&lt;/SPAN&gt; 0.5 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p1 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp1 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p3 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;*&lt;/SPAN&gt; -0.5 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p1 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp1 0.0 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p3 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;*&lt;/SPAN&gt; 0.5 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p1 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp1 0.0 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;car&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
      &lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; p3 &lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;polar&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;*&lt;/SPAN&gt; -0.5 &lt;SPAN style="color: blue;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp1&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;cadr&lt;/SPAN&gt; mp2&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0080ff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;command&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"_.RECTANGLE"&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"_non"&lt;/SPAN&gt; p1 &lt;SPAN style="color: brown;"&gt;"_non"&lt;/SPAN&gt; p3&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;princ&lt;/SPAN&gt;&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;HTH, M.R.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:14:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680052#M126592</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2016-11-10T16:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680177#M126593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4159895"&gt;@nacho_korn&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Hi, I need a lisp with which I can make a rectangle by choosing the center point and 2 points of the centers of the sides&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This would be to make 3D planes based on cross-shaped 2d views.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe you can do it by selecting the middle of the 2 sides, since it will always be in cross and you could calculate the center automatically.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not quite sure I understand what you're describing, but if you mean something like this:&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="RectCross.PNG" style="width: 547px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/291569iD290A607620DF20B/image-size/large?v=v2&amp;amp;px=999" role="button" title="RectCross.PNG" alt="RectCross.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then can you just use the regular RECTangle command, with two APParent-intersection picks for the corners?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstood, post a drawing or image.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:36:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680177#M126593</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680215#M126594</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here try this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;....&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: rgb(128, 255, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp1 &lt;SPAN style="color: rgb(0, 255, 255); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify first middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 255, 255); font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 255, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: rgb(128, 255, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp2 &lt;SPAN style="color: rgb(0, 255, 255); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify second middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 255, 255); font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 255, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
....
&lt;/PRE&gt;
&lt;P&gt;HTH, M.R.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that's the kind of thing they're after, and regular RECTangle with APParent intersections won't do, I&amp;nbsp;would suggest at least a change in the prompts, since the order matters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;....
  (setq mp1 (getpoint "\nPick middle &lt;FONT color="#ff0000"&gt;of horizontal&lt;/FONT&gt; edge: "))
  (setq mp2 (getpoint "\nPick middle &lt;FONT color="#ff0000"&gt;of vertical&lt;/FONT&gt; edge: "))
....
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But another question for the OP:&amp;nbsp; Might the cross shapes ever be &lt;EM&gt;asymmetrical?&lt;/EM&gt;&amp;nbsp; That is, with one arm not the same length as the opposite arm, so that the middle of some end-of-arm edges&amp;nbsp;would not be the middle of the desired end result?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680215#M126594</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T16:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680243#M126595</link>
      <description>&lt;P&gt;Hi Kent...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The order doesn't matter... Try the code and pick any 2 points...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:53:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680243#M126595</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2016-11-10T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680257#M126596</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The order doesn't matter... Try the code and pick any 2 points...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes it does -- I did:&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="RectCross2.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/291588i1190F11CBF4D4154/image-size/large?v=v2&amp;amp;px=999" role="button" title="RectCross2.PNG" alt="RectCross2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680257#M126596</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T16:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680289#M126597</link>
      <description>&lt;P&gt;But of course that order does matter, but it's up on user to choose that, so your remark ab my prompt specifications for picking points is wrong... Simply there is first middle point and second middle point... Computer will calculate from picked order correct rectangle...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680289#M126597</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2016-11-10T17:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680318#M126598</link>
      <description>&lt;P&gt;As I had said, there are two possible solutions.&lt;/P&gt;&lt;P&gt;Using your program, if mp1 is to the right of mp2 then it draws a rectangle with mp2 being on the left side of the rectangle.&lt;/P&gt;&lt;P&gt;But if mp1 is to the left of mp2 then it draws a rectangle with mp2 being on the right side of the rectangle.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680318#M126598</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-10T17:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680352#M126599</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But of course that order does matter, but it's up on user to choose that, so your remark ab my prompt specifications for picking points is wrong... Simply there is first middle point and second middle point... Computer will calculate from picked order correct rectangle...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It clearly did not calculate the correct rectangle in the right part of the image in my previous Reply.&amp;nbsp; From the prompts as you have them worded, there is no way of knowing that in order to get the result I want,&amp;nbsp;I must pick the middle of the &lt;EM&gt;horizontal&lt;/EM&gt; edge first.&amp;nbsp; In that case I happened to pick the vertical-edge midpoint first, and&amp;nbsp;it calculated&amp;nbsp;the incorrect rectangle.&amp;nbsp; Appropriate wording in the prompts would eliminate that problem.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:21:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680352#M126599</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T17:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680357#M126600</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Here try this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;....&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp1 &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify first middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
  &lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;setq&lt;/SPAN&gt; mp2 &lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;getpoint&lt;/SPAN&gt; &lt;SPAN style="color: brown;"&gt;"\nPick or specify second middle edge point : "&lt;/SPAN&gt;&lt;SPAN style="color: #00ffff; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #80ff00; font-weight: bold;"&gt;)&lt;/SPAN&gt;
....&lt;/PRE&gt;&lt;P&gt;HTH, M.R.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If that's the kind of thing they're after, and regular RECTangle with APParent intersections won't do, I&amp;nbsp;would suggest at least a change in the prompts, since the order matters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;....
  (setq mp1 (getpoint "\nPick middle &lt;FONT color="#ff0000"&gt;of horizontal&lt;/FONT&gt; edge: "))
  (setq mp2 (getpoint "\nPick middle &lt;FONT color="#ff0000"&gt;of vertical&lt;/FONT&gt; edge: "))
....&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But another question for the OP:&amp;nbsp; Might the cross shapes ever be &lt;EM&gt;asymmetrical?&lt;/EM&gt;&amp;nbsp; That is, with one arm not the same length as the opposite arm, so that the middle of some end-of-arm edges&amp;nbsp;would not be the middle of the desired end result?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I see now, you are right Kent, but I programmed it like it doesn't matter... But it surely does...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:22:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680357#M126600</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2016-11-10T17:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680381#M126601</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4159895"&gt;@nacho_korn&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This would be to make 3D planes based on cross-shaped 2d views.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;....&amp;nbsp;it will always be in cross ....&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Again, assuming some things about what you really want to do, here's an even better way.&amp;nbsp; Load it up, type DBB for the command, and with&amp;nbsp;&lt;EM&gt;one&lt;/EM&gt; pick,&amp;nbsp;&lt;EM&gt;anywhere&lt;/EM&gt; on&amp;nbsp;the cross [or any other] shape, it&amp;nbsp;will draw the rectangle that encloses it, whether the arms are symmetrical or not, and without the need to hit midpoints or even the end-edges of the cross arms [you can pick&amp;nbsp;it at a nowhere-in-particular location even near an&lt;EM&gt; inside&lt;/EM&gt; corner, for example].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:DBB (/ minpt maxpt); = Draw Bounding Box
  (vla-getboundingbox&lt;BR /&gt;    (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect object to draw its Bounding Box: ")))&lt;BR /&gt;    'minpt 'maxpt&lt;BR /&gt;  ); ...getbound...
  (command "_.rectangle" "_none" (vlax-safearray-&amp;gt;list minpt) "_none" (vlax-safearray-&amp;gt;list maxpt))&lt;BR /&gt;  (princ)
); defun
(vl-load-com)
(prompt "\nType DBB to Draw the Bounding Box of a selected object.")
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could easily be made to verify that you actually picked something before trying to draw around it, if you think that's needed.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680381#M126601</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680585#M126602</link>
      <description>&lt;P&gt;&lt;SPAN&gt;this is pretty close to what I need. But the rectangle need to focus on the cross&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 18:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680585#M126602</guid>
      <dc:creator>nacho_korn</dc:creator>
      <dc:date>2016-11-10T18:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680591#M126603</link>
      <description>&lt;P&gt;Hi Kent, a side question... I see that your avatar is fixed - still it's wrong when I click on you to see info... But then again, where are info data for members - do I have to step into everyone's page - they were always available before - you just had to point mouse over member name and data would be displayed - I mean posts, solutions, kudos and ideas...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 18:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680591#M126603</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2016-11-10T18:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680603#M126604</link>
      <description>&lt;P&gt;&lt;SPAN&gt;yes, that's what I need&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 18:36:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680603#M126604</guid>
      <dc:creator>nacho_korn</dc:creator>
      <dc:date>2016-11-10T18:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680616#M126605</link>
      <description>&lt;P&gt;now i understand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first I have to choose the point on the Y axis to solve that&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 18:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680616#M126605</guid>
      <dc:creator>nacho_korn</dc:creator>
      <dc:date>2016-11-10T18:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for rectangle by sides</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680764#M126606</link>
      <description>&lt;P&gt;So it appears I did misinterpret your need, since your cross looks like just a crossing of two &lt;EM&gt;Lines&lt;/EM&gt;, not a cross shape in something like a Polyline.&amp;nbsp; I think I was interpreting your use of the word "middle" as meaning the midpoint of something that was &lt;EM&gt;already drawn&lt;/EM&gt;, as well as of the resulting box edge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a cross of two Lines as in your latest image, the DrawBoundingBox routine would &lt;EM&gt;not&lt;/EM&gt; do what you want.&amp;nbsp; But it gave me an idea:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;|
DrawBoundingBoxMult.lsp [command name: DBBM]
To Draw the Bounding Box around Multiple objects. Finds overall extent
of object(s) selected, and draws a Rectangle around that collective box.
Kent Cooper, 10 November 2016
|;
(defun C:DBBM (/ ss minpt maxpt eLL eUR LL UR); = Draw Bounding Box, Multiple
  (prompt "\nTo Draw the Bounding Box around Multiple objects,")
  (if (setq ss (ssget))
    (progn ; then
      (repeat (setq n (sslength ss))
        (vla-getboundingbox (vlax-ename-&amp;gt;vla-object (ssname ss (setq n (1- n)))) 'minpt 'maxpt)
        (setq
          eLL (vlax-safearray-&amp;gt;list minpt)
          eUR (vlax-safearray-&amp;gt;list maxpt)
          LL (if LL (mapcar 'min eLL LL) eLL)
          UR (if UR (mapcar 'max eUR UR) eUR)
        ); setq
      ); repeat
      (command "_.rectangle" "_none" LL "_none" UR)
    ); progn
    (prompt "\nNothing selected."); else
  ); if
  (princ)
); defun
(vl-load-com)
(prompt "\nType DBBM to Draw the Bounding Box around Multiple objects.")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will do what you are after with selection of the two Lines by &lt;EM&gt;any&lt;/EM&gt; method, and&amp;nbsp;at &lt;EM&gt;any&lt;/EM&gt; location on them [or at &lt;EM&gt;no&lt;/EM&gt; location, e.g.&amp;nbsp;inside a window]&amp;nbsp;-- no need to pick &lt;EM&gt;on&lt;/EM&gt; their endpoints, nor to pick two points in any particular order, and it doesn't matter if the Lines do not cross &lt;EM&gt;at their midpoints, &lt;/EM&gt;nor even whether they are&lt;EM&gt; perpendicular:&lt;/EM&gt;&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="DBBM.PNG" style="width: 386px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/291670i23DA77082E049FDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="DBBM.PNG" alt="DBBM.PNG" /&gt;&lt;/span&gt;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DBBM2.PNG" style="width: 382px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/291673i5FA4F8E4B1781B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DBBM2.PNG" alt="DBBM2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 19:44:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-rectangle-by-sides/m-p/6680764#M126606</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-11-10T19:44:13Z</dc:date>
    </item>
  </channel>
</rss>

