API Reference > OdEd Classes > OdEdBaseUserIO Class > OdEdBaseUserIO Methods > OdEdBaseUserIO::getDist Method
OdEdBaseUserIO::getDist Method
Syntax
C++
virtual double getDist(const OdString& prompt, int options = OdEd::kInpDefault, double defaultValue = 0.0, const OdString& keywords = OdString::kEmpty, OdEdRealTracker* pTracker = 0) = 0;
Parameters 
Description 
const OdString& prompt 
[in] Message displayed to prompt the user.  
int options = OdEd::kInpDefault 
[in] Combination of OdEd::GetPointOptions enum values.  
double defaultValue = 0.0 
[in] Default value to return if an empty string is received as input.  
const OdString& keywords = OdString::kEmpty 
[in] Keyword string.  
OdEdRealTracker* pTracker = 0 
[in] Pointer to a User IO tracker. 

Returns user input of a distance. 

 

This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input. 

If prompt is an empty string, a default prompt string is used.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.