MetroCad USA
GETXXX Functions
USER INPUT FUNCTIONS:
(GETINT [<prompt>])
Pauses for user input of an integer. (getint "Input an integer: ")
(GETREAL [<prompt>])
Pauses for user input of a real number. (getreal "Input a real number: ")
(GETSTRING <cr> [<prompt>])
Pauses for user input of a string. <cr> Disables the spacebar as a return key
when this is non-nil. (getstring "Input a string: ")
(GETPOINT <pt> [<prompt>])
Pauses for user input of a point. <pt> A 2D or 3D point list. If used a
rubber-band line will be created. (getpoint pt "Pick a point: ")
(GETDIST <pt> [<prompt>])
Pauses for user input of two points, or a second point if <pt> is specified.
(getdist pt "Input points: ")
(GETKWORD [<prompt>])
Pauses for user input of a keyword and limits acceptable string responses to those in
the <keyword-string> option of the INITGET function. (getkword "Enter LAyer or
LInetype: ")
(INITGET [<int>] [<keyword-string>])
Used with GETXXX functions to restrict next user input value. <int> An integer
that refers to the restrictions of the input. 1 = rejects null input 2 = rejects zero
values 4 = rejects negative values 8 = disables drawing limit checking 16 = not used
<keyword-string> expands the acceptable responses to include specific keyword
strings. Used exclusively with GETKWORD. (initget 3) will not allow a user input of zero
of a null input. (initget 7) will not allow zero, negative, or null inputs. (initget 7
"LAyer LInetype") will not allow zero, negative, null inputs and restricts the
input to LA, or LI for the next GETKWORD function.
Example functions page
Back Home