<?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: Getangle or ref in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230331#M133444</link>
    <description>&lt;DIV style="margin: 10px; border: 1px solid #ffcc00; padding: 0.5em; background-color: #ffffcc;"&gt;
&lt;DIV style="color: #666; margin-bottom: 1em; font-style: italic;"&gt;danielbentley wrote:&lt;/DIV&gt;
If I use initget then getkword will that not stop the getangle command with basepoint?&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never said to use getkword - all getXXX functions will support the use of keywords (with the exception of getstring).&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 13:01:39 GMT</pubDate>
    <dc:creator>Lee_Mac</dc:creator>
    <dc:date>2016-03-23T13:01:39Z</dc:date>
    <item>
      <title>Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230175#M133440</link>
      <description>Ive got a very basic routine that draws an oblong hole, the user inputs length, width and defines a center/input point. After this I'm using getangle to set the rotation using the insertion point as point 1, but I also want to be able to type 'ref' to select 2 points if needed. If tried but this is scrambling my brain today. Any guidance will be appreciated.</description>
      <pubDate>Wed, 23 Mar 2016 12:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230175#M133440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230193#M133441</link>
      <description>&lt;P&gt;If you omit the basepoint argument for the &lt;FONT color="#0000FF"&gt;getangle&lt;/FONT&gt; expression, the user may either enter an angle at the command-line or pick two points to specify the angle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you necessarily need to retain the basepoint argument for the &lt;FONT color="#0000FF"&gt;getangle&lt;/FONT&gt; prompt, you will need to use a keyword (initialised using &lt;FONT color="#0000FF"&gt;initget&lt;/FONT&gt;) to allow the user to access an additional &lt;FONT color="#0000FF"&gt;getangle&lt;/FONT&gt; prompt where two points may be given.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230193#M133441</guid>
      <dc:creator>Lee_Mac</dc:creator>
      <dc:date>2016-03-23T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230234#M133442</link>
      <description>If I use initget then getkword will that not stop the getangle command with basepoint?</description>
      <pubDate>Wed, 23 Mar 2016 12:25:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230234#M133442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T12:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230301#M133443</link>
      <description>&lt;PRE&gt;(setq p1 (getpoint "\Enter center point: "))
(initget "Ref")
(setq ans (getangle p1 "\n Specify second point, or enter an angle [Ref] &amp;lt;exit&amp;gt;:"))
(cond ((= ans nil)
       (prompt "\nYou did press spacebar or enter, to exit...")
      )
      ((= 'real (type ans))
       (prompt "\nYou enter an angle...")
      )
      ((= "Ref" ans)
       (prompt "\nYou did enter Ref...")
      )
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230301#M133443</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-23T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230331#M133444</link>
      <description>&lt;DIV style="margin: 10px; border: 1px solid #ffcc00; padding: 0.5em; background-color: #ffffcc;"&gt;
&lt;DIV style="color: #666; margin-bottom: 1em; font-style: italic;"&gt;danielbentley wrote:&lt;/DIV&gt;
If I use initget then getkword will that not stop the getangle command with basepoint?&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never said to use getkword - all getXXX functions will support the use of keywords (with the exception of getstring).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 13:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6230331#M133444</guid>
      <dc:creator>Lee_Mac</dc:creator>
      <dc:date>2016-03-23T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6231210#M133445</link>
      <description>So the initget function allows for input while using getxxx?</description>
      <pubDate>Wed, 23 Mar 2016 19:19:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6231210#M133445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getangle or ref</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6231253#M133446</link>
      <description>&lt;DIV style="margin: 10px; border: 1px solid #ffcc00; padding: 0.5em; background-color: #ffffcc;"&gt;
&lt;DIV style="color: #666; margin-bottom: 1em; font-style: italic;"&gt;danielbentley wrote:&lt;/DIV&gt;
So the initget function allows for input while using getxxx?&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly - you may refer to the tables included in the &lt;A href="http://docs.autodesk.com/ACD/2013/ENU/index.html?url=files/GUID-9ED8841B-5C1D-4B3F-9F3B-84A4408A6BBF.htm,topicNumber=d30e618800" target="_blank"&gt;developer documentation&lt;/A&gt; for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example to demonstrate my earlier suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:test ( / ang bpt )

    (setq bpt '(0.0 0.0 0.0))

    (initget "Reference")
    (if (= "Reference" (setq ang (getangle bpt "\nSpecify angle [Reference]: ")))
        (setq ang (getangle "\nPick two points to define the angle: "))
    )
    (princ "\nAngle: ") (princ (angtos ang))
    (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getangle-or-ref/m-p/6231253#M133446</guid>
      <dc:creator>Lee_Mac</dc:creator>
      <dc:date>2016-03-23T19:52:39Z</dc:date>
    </item>
  </channel>
</rss>

