<?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: Manipulating  options during [GRREAD] in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9952921#M66105</link>
    <description>&lt;P&gt;I love grread.&lt;/P&gt;
&lt;P&gt;When you say "&lt;SPAN&gt;clicked any button in the text printed during the work of (Grread) function"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;do you mean a text object in the drawing, or text in the text screen, or something else?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would have to look at some old work of mine, but I seem to recall certain codes send a second code, or something like that.&amp;nbsp; I don't remember about 11.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry I can't look now; I'm being called for dinner.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Dec 2020 23:45:56 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2020-12-20T23:45:56Z</dc:date>
    <item>
      <title>Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9952766#M66104</link>
      <description>&lt;P&gt;&lt;FONT color="#003366"&gt;Hi everybody,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I've been using (grread) function and i managed to manipulate everything if the answer to the function is by picking a point or typing a string in the command line but here's the problem:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;If i clicked any button in the text printed during the work of (Grread) function, it always returns (11 -1) and that return doesn't change with changing the clicked button.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;How can i determinate which button the user clicks from the command line to know which rootline to take ????!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 21:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9952766#M66104</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-20T21:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9952921#M66105</link>
      <description>&lt;P&gt;I love grread.&lt;/P&gt;
&lt;P&gt;When you say "&lt;SPAN&gt;clicked any button in the text printed during the work of (Grread) function"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;do you mean a text object in the drawing, or text in the text screen, or something else?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would have to look at some old work of mine, but I seem to recall certain codes send a second code, or something like that.&amp;nbsp; I don't remember about 11.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry I can't look now; I'm being called for dinner.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 23:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9952921#M66105</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-12-20T23:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954086#M66106</link>
      <description>&lt;P&gt;&lt;FONT color="#003366"&gt;Thanks for your concern, take your time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I mean user clicks a button in the command line like that: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;(princ "\nSelect column type [Points / Select rectangle / Undo]: ")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;The grread function always returns the same (11 -1) with every command line option whether i choose Points or select rectangle or Undo, from the command line.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I managed to manipulate what to do if user clicks a keyboard button like P , S or U that's easy cause the return includes the ascii code for the entered character but if i clicked the option from the command line here's the problem.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;Try it and please help cause i got stucked&amp;nbsp; here.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 15:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954086#M66106</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-21T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954096#M66107</link>
      <description>&lt;P&gt;Try this and see the return:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(defun C:opgr (/ A B C)
  (setq B "Points"
	C "Select rectangle")
  (while
    (princ (strcat "\nSelect option [" B "/" C "]: "))
    (setq A (grread t))
    (princ A)
    (princ "\n")
    (princ)
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 15:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954096#M66107</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-21T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954264#M66108</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="color: #003366; font-family: inherit;"&gt;....&lt;SPAN&gt;if the answer to the function is by picking a point or typing a string....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;How can i determinate which button the user clicks from the command line to know which rootline to take ????!&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#003366"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By using &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(initget)&lt;/FONT&gt;&lt;/STRONG&gt;, even allowing &lt;FONT color="#FF0000"&gt;arbitrary input&lt;/FONT&gt;&amp;nbsp;if you like, rather than &lt;FONT color="#000000"&gt;(grread)&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(initget &lt;FONT color="#FF0000"&gt;128&lt;/FONT&gt; "Option Choice Variable")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(setq pt (getpoint "\nPick point or [Option/Choice/Variable]: "))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(cond&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; ((listp pt)&lt;FONT color="#00CCFF"&gt;; they picked a point&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; (&lt;FONT color="#CC99FF"&gt;... do whatever with a point value ...&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; )&lt;FONT color="#999999"&gt;; picked-a-point condition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; ((= pt "Option")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#00CCFF"&gt;; they picked on that in the prompt line, or typed in "O"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#00CCFF"&gt;; [not case-sensitive] or any amount more of the word&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; (&lt;FONT color="#CC99FF"&gt;... do whatever the "Option" choice dictates ...&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; )&lt;FONT color="#999999"&gt;; chose-"Option" condition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; ((= pt "Choice")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#00CCFF"&gt;; they picked on that in the prompt line, or typed in "C"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; (&lt;FONT color="#CC99FF"&gt;... do whatever the "Choice" option dictates ...&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; )&lt;FONT color="#999999"&gt;; chose-"Choice" condition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; ((= pt "Variable")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#00CCFF"&gt;; they picked on that in the prompt line, or typed in "V"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; (&lt;FONT color="#CC99FF"&gt;... do whatever the "Variable" choice dictates ...&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; )&lt;FONT color="#999999"&gt;; chose-"Variable" condition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; ((= (type pt) 'STR)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#00CCFF"&gt;; they typed some string other than one of the listed options&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;(&lt;FONT color="#CC99FF"&gt;... do whatever that string dictates ...&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; )&lt;FONT color="#999999"&gt;; arbitrary-text-string condition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;)&lt;FONT color="#999999"&gt;; cond&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want them to be able to type in anything other than the offered options, omit the 128 and the last condition.&amp;nbsp; It can still accept &lt;EM&gt;either&lt;/EM&gt; selection &lt;EM&gt;or&lt;/EM&gt; typing of listed options &lt;EM&gt;or&lt;/EM&gt; picking of a point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954264#M66108</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-21T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954446#M66109</link>
      <description>&lt;P&gt;One more question...&lt;/P&gt;&lt;P&gt;How to use the object snap modes (end, intersection, mid ....) to select a specified point in the grread (while loop)?&lt;/P&gt;&lt;P&gt;I personally prefer the&amp;nbsp;&lt;A href="http://www.lee-mac.com/grsnap.html" target="_blank" rel="noopener"&gt;Lee Mac GrSnap code&lt;/A&gt;&amp;nbsp;to display a&amp;nbsp;&lt;SPAN&gt;marker when you move the cursor over an object snap location.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 18:31:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954446#M66109</guid>
      <dc:creator>_Bilal</dc:creator>
      <dc:date>2020-12-21T18:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954528#M66110</link>
      <description>You keep using nentselp while tracking and derive the endpoints yourself.&lt;BR /&gt;Then you add glyphs and remove and add, etc. with each change in cursor or&lt;BR /&gt;viewctr/viewsize.  Endpoints and midpoints and nearest are easy, but I've&lt;BR /&gt;never tried intersections.</description>
      <pubDate>Mon, 21 Dec 2020 19:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954528#M66110</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-12-21T19:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954607#M66111</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;Hi everybody,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I've been using (grread) function and i managed to manipulate everything if the answer to the function is by picking a point or typing a string in the command line but here's the problem:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;If i clicked any button in the text printed during the work of (Grread) function, it always returns (11 -1) and that return doesn't change with changing the clicked button.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;How can i determinate which button the user clicks from the command line to know which rootline to take ????!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I've come cross this lately (it's &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-a-move-copy-rotate-mirror-command/m-p/9881694/highlight/true#M407740" target="_self"&gt;THIS&lt;/A&gt;&amp;nbsp;routine) and I think it's not possible. It's not compactible. Can't have everything.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 20:02:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954607#M66111</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-21T20:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954840#M66112</link>
      <description>Now I remember.&lt;BR /&gt;Code 11 represents input from an AUX menu item.&lt;BR /&gt;Forget about it.  I didn't save any of my efforts to decipher what the&lt;BR /&gt;second value means because I just got lost in trying to read menu items via&lt;BR /&gt;AutoLisp.  Not that it can't be done, just not by me 'cause I'm not a&lt;BR /&gt;masochist.</description>
      <pubDate>Mon, 21 Dec 2020 21:54:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9954840#M66112</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-12-21T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956900#M66113</link>
      <description>&lt;P&gt;&lt;FONT color="#003366"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;Thanks for your concern.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;But that's not what i'm asking for. The [Initget] function can't be used inside grread.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;That's the same for [Getxxx] functions, these can't be used while grread is active.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:21:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956900#M66113</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-22T20:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956903#M66114</link>
      <description>&lt;P&gt;&lt;FONT color="#003366"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;Thanks for your concern.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I have tried ur code but it have the same problem.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;It work perfect if user clicks a keyboard option like M, R or C but if user used the mouse pointer to select copy or move from the command line inside ur code, the command will come to an end.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;Try it yourself.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956903#M66114</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-22T20:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956909#M66115</link>
      <description>&lt;P&gt;&lt;FONT color="#003366"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp; Thanks a lot for ur concern&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;I'm so sad to hear that cause i don't know what to do.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;If you know anyone can help me with that matter please mention him cause as i said i got stucked in that.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:28:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956909#M66115</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2020-12-22T20:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956945#M66116</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;&lt;P&gt;Try this and see the return:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure I understand your request (initget) would be simpler ...&lt;/P&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:opgr (/ A B C)
  (setq
		B "Points"
		C "Select rectangle"
	)
	(princ (strcat "\nSelect option [" B "/" C "]: "))
	(while (and (setq A (grread T 4 0)) (not (member A '((2 112) (2 80) (2 83) (2 115))))))
	(cond
		((or (equal A '(2 112)) (equal A '(2 80))) (setq A B))
		((or (equal A '(2 115)) (equal A '(2 83))) (setq A C))
	)
	(princ A)
	(prin1)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956945#M66116</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2020-12-22T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956956#M66117</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="color: #003366; font-family: inherit;"&gt;.... that's not what i'm asking for. The [Initget] function can't be used inside grread.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;That's the same for [Getxxx] functions, these can't be used while grread is active.&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes.&amp;nbsp; I was suggesting an approach that does &lt;EM&gt;not&lt;/EM&gt; use (grread), but I think gets you the information you want [if I understand correctly].&amp;nbsp; Is there some reason (grread) needs to be the method?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 21:01:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956956#M66117</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-22T21:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956985#M66118</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;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="color: #003366; font-family: inherit;"&gt;.... that's not what i'm asking for. The [Initget] function can't be used inside grread.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;That's the same for [Getxxx] functions, these can't be used while grread is active.&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes.&amp;nbsp; I was suggesting an approach that does &lt;EM&gt;not&lt;/EM&gt; use (grread), but I think gets you the information you want [if I understand correctly].&amp;nbsp; Is there some reason (grread) needs to be the method?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most obvious motivation of using GRREAD in menu is that you don't need &amp;lt;enter&amp;gt; confirmation - you just hit a letter key and that's it. For that reason it's pretty fast. At least that's the reason why I have used this in my routine linked above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what the OP want's is not possible. He does not read or understand what I have said before.&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 853px; top: 385px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Dec 2020 21:15:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9956985#M66118</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-22T21:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9957108#M66119</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;....
&lt;P&gt;The most obvious motivation of using GRREAD in menu is that you don't need &amp;lt;enter&amp;gt; confirmation - you just hit a letter key and that's it. For that reason it's pretty fast. At least that's the reason why I have used this in my routine linked above.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 853px; top: 385px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have never considered that {Enter} confirmation any kind of "burden," since all AutoCAD commands work that way with typed-in options [as well as for typing in command names, and Osnap modes, and so on], so people are accustomed to it.&amp;nbsp; And in the (initget) approach it &lt;EM&gt;can&lt;/EM&gt; still be a one-step operation [no {Enter} confirmation] by &lt;EM&gt;picking the option&lt;/EM&gt; in the prompt [also as in AutoCAD commands that have options].&amp;nbsp; Another big advantage of the (initget) approach is that you can have more than one option starting with the same letter, with more-than-one-letter option abbreviations [as in, for example, the -LAYER prompt].&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 22:23:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9957108#M66119</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-22T22:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9957164#M66120</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need initget and kwords.&amp;nbsp; Grread takes input keystroke by keystroke giving you (as the coder) the opportunity to react to almost anything (except '(11 #)).&lt;/P&gt;
&lt;P&gt;Yes, there is more coding involved, but you don't need separate functions for getthis and getthat, and an Esc doesn't have to stop anything unless you want it to; it's just a '(2 27) I think.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 22:54:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9957164#M66120</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-12-22T22:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958319#M66121</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;You don't need initget and kwords.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Grread takes input keystroke by keystroke giving you (as the coder) the opportunity to react to almost anything &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(except '(11 #))&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which means exactly that they &lt;STRONG&gt;&lt;EM&gt;do&lt;/EM&gt;&lt;/STRONG&gt; need something &lt;EM&gt;other than&lt;/EM&gt; &lt;FONT color="#000000"&gt;(grread)&lt;/FONT&gt; for the situation where it returns &lt;FONT color="#000000"&gt;(11 -1)&lt;/FONT&gt; as described in Message 1 [and see &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;'s two Messages].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And another reason:&amp;nbsp; Suppose you build a routine that needs multiple options beginning with the same letter, similar to the &lt;FONT color="#000000"&gt;-LAYER&lt;/FONT&gt; command's prompt that offers &lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;L&lt;/FONT&gt;&lt;/STRONG&gt;type&lt;/FONT&gt;, &lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;LW&lt;/FONT&gt;&lt;/STRONG&gt;eight&lt;/FONT&gt; and &lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;LO&lt;/FONT&gt;&lt;/STRONG&gt;ck&lt;/FONT&gt;.&amp;nbsp; &lt;FONT color="#000000"&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;type&lt;/FONT&gt; is considered the most-used of the three, so it gets the &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;L&lt;/FONT&gt;&lt;/STRONG&gt;-&lt;EM&gt;alone&lt;/EM&gt; option abbreviation.&amp;nbsp; If it were built using the &lt;FONT color="#000000"&gt;(grread)&lt;/FONT&gt; approach with immediate reaction to a keystroke &lt;EM&gt;without&lt;/EM&gt; {Enter/space} to "register" it, if you wanted&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;-alone to trigger the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;type option, &lt;EM&gt;you would not be able to access the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;LW&lt;/STRONG&gt;&lt;/FONT&gt;eight or &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;LO&lt;/STRONG&gt;&lt;/FONT&gt;ck options!&lt;/EM&gt;&amp;nbsp; They would need to structure the reaction to the &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;L&lt;/FONT&gt;&lt;/STRONG&gt; keystroke to &lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt; go immediately into the &lt;FONT color="#000000"&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;type&lt;/FONT&gt; option, but to &lt;EM&gt;await some confirmation&lt;/EM&gt; that you want that, and not &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;LW&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;eight&lt;/FONT&gt; or &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;LO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;ck&lt;/FONT&gt;.&amp;nbsp; So it would be back to needing {Enter/space}, which I think would be confusing if it was needed for some options but not others, and it would be better to require it for all, just as all AutoCAD commands do.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 13:33:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958319#M66121</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-23T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958586#M66122</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what happened here... nobody suggested to use the grread for the -layer command.&lt;/P&gt;
&lt;P&gt;All I have said was, that I can imagine that the speed may be the reason for GRREED usage - as in my case that was MOCORO+... or let's take&amp;nbsp;&lt;A href="http://www.lee-mac.com/objectalign.html" target="_self"&gt;THIS ONE&amp;nbsp;&lt;/A&gt; Lee's tool... it would be a total nightmare with classic initget approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But who knows what tool the OP builds... he just might build some cool tool with a nice dynamic preview and wants to have some more options available on the command line... as simple as that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And BTW - Don't really understand why you consider a big advantage ability to have more-than-one-letter options... If I would really prefer the speed of it (as my MOCORO+), that would be the 1st thing that I would change - make them single-letter keys (which I did in MOCORO+). The key letter could be the less typical, it may not match the classic PGP abbreviations... but unique, preferably with some logic in it, possibly all letters close to each other on&amp;nbsp;the keyboard (again, as my MOCORO+)... I would get used to it soon because it would be fast and convenient. But this is far off-topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 15:50:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958586#M66122</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-23T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating  options during [GRREAD]</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958758#M66123</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I don't know what happened here... nobody suggested to use the grread for the -layer command.&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it was just an illustration of something people are familiar with, that has multiple options starting with the same letter, with one option being the single letter alone, and others being that same letter followed by more.&amp;nbsp; [I did&amp;nbsp;describe the problem with a conditional:&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;if&lt;/EM&gt;&lt;/STRONG&gt; the -LAYER command had been made using the (grread) approach for immediate effect at key-stroke without {Enter/space}.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Any&lt;/EM&gt; routine that someone might build in which that kind of options breakdown would be appropriate will have the problem, using the (grread) approach, of not having access to some of the options, except by requiring confirmation when they want the one with the single-letter abbreviation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The -LAYER command &lt;EM&gt;could&lt;/EM&gt; presumably be made to use that approach by restricting itself to one-letter option abbreviations, but it has so many options sharing so many letters that it could be difficult.&amp;nbsp; Presumably &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;ON&lt;/FONT&gt;&lt;/STRONG&gt; could instead be&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;O&lt;/FONT&gt;&lt;/STRONG&gt;n&lt;/FONT&gt; using the &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;O&lt;/FONT&gt;&lt;/STRONG&gt; only, but then &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;OFF&lt;/FONT&gt;&lt;/STRONG&gt; couldn't possibly be anything except&amp;nbsp;&lt;FONT color="#000000"&gt;o&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;F&lt;/FONT&gt;&lt;/STRONG&gt;f&lt;/FONT&gt;, and then &lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;F&lt;/FONT&gt;&lt;/STRONG&gt;reeze&lt;/FONT&gt; couldn't use that&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;F&lt;/FONT&gt;&lt;/STRONG&gt;, so it would need to be something else, presumably&amp;nbsp;&lt;FONT color="#000000"&gt;free&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Z&lt;/FONT&gt;&lt;/STRONG&gt;e&lt;/FONT&gt;, [since &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;E&lt;/FONT&gt;&lt;/STRONG&gt; is used for &lt;FONT color="#000000"&gt;r&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;E&lt;/FONT&gt;&lt;/STRONG&gt;concile&lt;/FONT&gt;, and that only because &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;R&lt;/FONT&gt;&lt;/STRONG&gt; was already taken for&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;R&lt;/FONT&gt;&lt;/STRONG&gt;ename&lt;/FONT&gt;], etc., etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (initget) approach avoids all such difficulties, along with having things operate as all native AutoCAD commands that have prompts with options operate, which I personally think is worthwhile in itself.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:15:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manipulating-options-during-grread/m-p/9958758#M66123</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-23T17:15:41Z</dc:date>
    </item>
  </channel>
</rss>

