C++
ACCORE_PORT int acedGetReal( const ACHAR * prompt, double * result );
File
acedads.h
Description
Gets user input for a real value.
The AutoCAD user can enter any valid real value, but the user cannot respond to acedGetReal() by entering an AutoLISP expression.
Parameters
Parameters | Description |
---|---|
prompt | Optional prompt string that acedGetReal() displays before it pauses; for no prompt, pass a null pointer |
result | Output real number entered by the user |
Returns
Pointer to the number entered by the user is returned with the result parameter, a memory area large enough to store a double-precision floating-point number.
Returns RTNORM if successful, else RTERROR if it fails or RTCAN if the user cancels the request (by pressing [Esc]). It returns RTMODELESS, if the active command was registered using the ACRX_CMD_INTERRUPTIBLE flag and the document has received a modeless interrupt signal from a call to AcApDocManager::sendModelessInterrupt(). A prior call to acedInitGet() can also enable return values of RTNONE or RTKWORD.
Previous Declaration
AutoCAD 2025
int acedGetReal(const ACHAR *prompt, double *result);
AutoCAD 2024 and Earlier
int acedGetReal (const ACHAR *prompt, ads_real *result);