Gets a real (double)
value from the user.
Signature
VBA : RetVal =
object.GetReal([Prompt])
VL : RetVal = (vla-GetReal
object Prompt)
(vla-GetReal util "\nEnter
Real Number : ")
-
Object : Utility
The object or objects this method applies to.
-
Prompt : Variant
(string); input-only; optional
The text used to prompt the user for input.
-
RetVal : Double
The value returned from the user.
Remarks
AutoCAD pauses for user
input of a real value, and sets the return value to the value that the
user enters. The Prompt parameter specifies a string that AutoCAD
displays before it pauses. The prompt is optional.
If a keyword is returned
instead of a double, AutoCAD will generate the error message "User
input keyword." Use the GetInput method to obtain the keyword from
the return value.
Example :
(defun c:al-getreal ()
(vl-load-com)
(setq util (vla-get-utility
(vla-get-activedocument
(vlax-get-acad-object))))
(setq thereal (vla-GetReal util "\nEnter Real Number : "))
(princ thereal)
(princ)
);defun
|
|