Acad.PromptOptions.setMessageAndKeywords Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.PromptOptions.setMessageAndKeywords(messageAndKeywords, globalKeywords);
Group
Parameters
| Parameter | Description |
|---|---|
| messageAndKeywords | is the prompt message along with keywords |
| globalKeywords | is a string that contains global keywords separated by spaces |
Description
Use this method to set the prompt message to the first part of the messageAndKeywords string and sets the keywords for the latter part of the same string.
The keywords portion of messageAndKeywords must be surrounded by an opening square bracket ("[") at the beginning and a closing square bracket ("]") at the end. The keywords in this list must be delimited by a forward slash character ("/"). Each keyword specified in messageAndKeywords must also be matched by a keyword in the same position of the globalKeywords string.
Properties
| Name | Type | Description | Condition |
|---|---|---|---|
| globalKeywords | string | Gets or sets the global keywords separated by spaces. | Read-write |
| messageAndKeywords | string | Gets or sets the prompt message along with keywords. | Read-write |
Exception
Throws a TypeError object.