PromptForSelection Method (ICommandMessage)

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

Get Hatch and Hatch Boundary Loop Data (C#)
Get Hatch and Hatch Boundary Loop Data (VB.NET)
Get Hatch and Hatch Boundary Loop Data (VBA)
Rotate and Copy Entities (C#)
Rotate and Copy Entities (VB.NET)
Rotate and Copy Entities (VBA)
Insert Hatch (JavaScript)
Insert Hatch by Entities or Internal Points (VB.NET)
Insert Hatch by Entities or Internal Points (C#)
Insert Hatch by Entities or Internal Points (VBA)

# Remarks

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

# See Also

####

ICommandMessage Interface
ICommandMessage Members
ICommandMessage::PromptForSelectionOrKeyword Method ()
ISelectionManager::PaperSpaceSelectionEnabled Property ()
ISelectionManager::RemoveOptions Property ()

# Availability

DraftSight V1R1.1