PromptForSelection Method (ICommandMessage) Send Feedback
See Also  Example
Result[out]
True if the prompt is displayed in the command window, false if not
SingleSelection
True to prompt for a single selection, false to prompt for multiple selections
Prompt
Prompt to display in the command window
ErrorMsg
Error message to display in the command window when the user's input is invalid
Displays the specified prompt for selecting one or more entities.

Syntax

Visual Basic 
Function PromptForSelection( _
   ByVal SingleSelection As System.Boolean, _
   ByVal Prompt As System.String, _
   ByVal ErrorMsg As System.String _
) As System.Boolean
C# 
System.bool PromptForSelection( 
   System.bool SingleSelection,
   System.string Prompt,
   System.string ErrorMsg
)
JavaScript 
PromptForSelection( 
   SingleSelection : Boolean,
   Prompt : String,
   ErrorMsg : String
) : Boolean
COM native C++ 
HRESULT PromptForSelection( 
   VARIANT_BOOL SingleSelection,
   BSTR Prompt,
   BSTR ErrorMsg,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT PromptForSelection( 
   bool SingleSelection,
   const dsString& Prompt,
   const dsString& ErrorMsg,
   bool* Result
) 

Parameters

SingleSelection
True to prompt for a single selection, false to prompt for multiple selections
Prompt
Prompt to display in the command window
ErrorMsg
Error message to display in the command window when the user's input is invalid
Result[out] or Return Value
True if the prompt is displayed in the command window, false if not

Example

Remarks

You can allow or disallow the selection of an entity by calling ISelectionManager::RemoveOptions before calling this method.

 

See Also

Availability

DraftSight V1R1.1