Displays the specified prompt and local keywords for selecting one or more entities in the command window and gets the user's input.
.NET Syntax
COM native C++ | |
---|
HRESULT PromptForSelectionOrKeyword(
bool SingleSelection,
,
const dsString& Prompt,
,
const dsString& ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
long PromptInit,
,
dsString* Keyword
,
dsPromptResultType_e* Result
) |
C++ | |
---|
DSRESULT PromptForSelectionOrKeyword(
VARIANT_BOOL SingleSelection,
,
BSTR Prompt,
,
BSTR ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
LONG PromptInit,
,
BSTR* Keyword
,
dsPromptResultType_e* 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
- GlobalKeywordStrArray
- Array of global keywords, which are typically language independent (see Remarks)
- LocalKeywordStrArray
- Array of local keywords, which are typically translated to the local language (see Remarks)
- PromptInit
- Prompt initialization as defined in dsPromptInit_e (see Remarks)
- Keyword[out]
- Keyword input by the user
Parameters
- Result[out] or Return Value
- Result as defined in dsPromptResultType_e
Remarks
See Also
Availability
DraftSight V1R4.0