API Reference > Classes > PRC Protocol Extensions Classes > ExPrcCommandContext Class > ExPrcCommandContext Methods > ExPrcCommandContext::getDist Method
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);
Parameters 
Description 
const OdString& prompt 
[in] A prompt string with text printed before waiting for user input.  
int options = OdEd::kInpDefault 
[in] A set of input options (bitwise or combination of the OdEd::CommonInputOptions enum).  
double defVal = 0.0 
[in] A default value returned if user inputs nothing.  
const OdString& keywords = OdString::kEmpty 
[in] A string with a keywords list.  
OdEdRealTracker* pTracker = 0 
[in] A pointer to a notification interface for tracking changes in the command context object.  

Returns the entered double value for a distance.

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

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.