Close

Relief for ODA Team in Ukraine

Learn more
ODA PRC SDK
ExPrcCommandContext::getDist Method
Syntax
C++
virtual double getDist(const OdString& prompt, int options = OdEd::kInpDefault, double defVal = 0.0, const OdString& keywords = OdString::kEmpty, OdEdRealTracker* pTracker = 0);

Gets user input of a distance value from the command's input.

Parameters
Description
prompt
[in] A prompt string with text printed before waiting for user input.
options
[in] A set of input options (bitwise or combination of the OdEd::CommonInputOptions enum).
defVal
[in] A default value returned if user inputs nothing.
keywords
[in] A string with a keywords list.
pTracker
[in] A pointer to a notification interface for tracking changes in the command context object.

Returns the entered double value for a distance.

Copyright © 2002-2022. Open Design Alliance All rights reserved.