Creates a new Keyword.
The text displayed to the user for this keyword.
OptionalglobalName: stringThe internal global name (never shown to user). Defaults to displayName.
OptionallocalName: stringInternal local name (usually same as global name). Defaults to globalName.
Whether the keyword is currently enabled. Default is true.
If true, the keyword properties cannot be modified. Default is false.
Whether the keyword is visible to the user. Default is true.
As AutoCAD .NET API, you cannot specify a keyword alias the same way as ObjectARX (Yes _Y). There is no alias parameter in AdKeywordCollection.add.
However, a different and implicit alias mechanism is provided as AutoCAD .NET API. The rule is the capital letters in the keyword global name define the alias.
User can type:
Multi-letter aliases You can control the alias length by capitalizing multiple letters:
opts.keywords.add("WireFrame"); // alias = WF
opts.keywords.add("HiddenLine"); // alias = HL
opts.keywords.add("Realistic"); // alias = R
User input:
Gets or sets the display name of the keyword.
This is the name shown to the user in prompts.
Setting has no effect if isReadOnly is true.
Gets or sets whether the keyword is currently enabled.
Disabled keywords cannot be selected by the user.
Setting has no effect if isReadOnly is true.
Gets or sets the global name of the keyword.
The global name is used internally by programs and is never displayed to the user.
Setting has no effect if isReadOnly is true.
Gets a value indicating whether the keyword is read-only. True if the keyword is read-only; otherwise, false.
Gets or sets the local name of the keyword.
Usually the same as the global name; not displayed to the user.
Setting has no effect if isReadOnly is true.
Gets or sets whether the keyword is visible to the user.
Hidden keywords cannot be selected by typing, but can be used programmatically.
Setting has no effect if isReadOnly is true.
Represents a single keyword option in a prompt, similar to Autodesk.AutoCAD.EditorInput.Keyword. Keywords can be shown to the user, used internally as global identifiers, and can be enabled/disabled or visible/hidden.