Constructs a keyword collection by parsing an ObjectARX-style keyword list
string, equivalent to the kwl argument of acedInitGet.
The keyword list is a single space-delimited string. Each token defines one keyword specification and is interpreted using AutoCAD command-line rules:
-).new AcEdKeywordCollection("Width Height Depth")
AutoCAD recognizes keyword abbreviations using one of two methods:
Capital-letter method Uppercase letters inside the keyword define the required abbreviation.
LType → LT
eXit → X
Comma method The full keyword is written in uppercase, followed by a comma and an explicit abbreviation.
LTYPE,LT
The abbreviation part after the comma is not part of the returned keyword value.
The keyword list may define local-to-global mappings using an underscore (_):
Ja Nein _ Yes No
_ are local_ are globalA one-to-one match is not required:
Regardless of how the user types a keyword (full form or abbreviation), the resolved keyword value is always the global keyword as specified in the keyword list, preserving its original capitalization.
Optionalkwl: stringOptional ObjectARX-style keyword list string. If omitted, an empty keyword collection is created.
Gets the number of keywords in this collection.
Gets or sets the default keyword for this collection.
Returns an iterator over the AcEdKeyword objects in this collection.
Adds a new keyword (displayName only).
The text shown to the user for this keyword.
The newly created AcEdKeyword.
Adds a new keyword with globalName and localName.
The internal, non-display name.
The name that the user types to select the keyword.
The newly created AcEdKeyword.
Adds a new keyword with displayName, globalName, localName, enabled, visible.
The text shown to the user.
Internal identifier for the keyword.
The name used by the user to type the keyword.
Optionalenabled: booleanIf false, the keyword cannot be selected.
Optionalvisible: booleanIf false, the keyword is hidden from display.
The newly created AcEdKeyword.
Removes all keywords from the collection.
Finds a keyword by its display name (case-insensitive).
Finds a keyword by its global name (case-insensitive).
Finds a keyword by its global name (case-insensitive), alias, or display name
Returns a string representing the visible, enabled keywords for display.
Copies the keywords of this collection into a plain array.
A collection of
AcEdKeywordobjects, mirroringAutodesk.AutoCAD.EditorInput.KeywordCollection. Represents the set of valid keywords for a prompt.