PromptForDistance Method (ICommandMessage) Send Feedback
See Also 
Result[out]
True if the prompt appears in the command window, false if not
Prompt
Prompt message
DefaultValue
Default value
Value[out]
User input linear distance
Displays the specified prompt and default value for the linear distance in the command window and gets the linear distance input by the user.

Syntax

Visual Basic 
Function PromptForDistance( _
   ByVal Prompt As System.String, _
   ByVal DefaultValue As System.Double, _
   ByRef Value As System.Double _
) As System.Boolean
C# 
System.bool PromptForDistance( 
   System.string Prompt,
   System.double DefaultValue,
   out System.double Value
)
JavaScript 
PromptForDistance( 
   Prompt : String,
   DefaultValue : Number
) : {
   Value : Number,
   Result : Boolean
}
COM native C++ 
HRESULT PromptForDistance( 
   BSTR Prompt,
   DOUBLE DefaultValue,
   DOUBLE* Value,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT PromptForDistance( 
   const dsString& Prompt,
   double DefaultValue,
   double* Value,
   bool* Result
) 

Parameters

Prompt
Prompt message
DefaultValue
Default value
Value[out]
User input linear distance
Result[out] or Return Value
True if the prompt appears in the command window, false if not
 

See Also

Availability

DraftSight V1R1.4