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.

Constructors

  • Creates a new Keyword.

    Parameters

    • displayName: string

      The text displayed to the user for this keyword.

    • OptionalglobalName: string

      The internal global name (never shown to user). Defaults to displayName.

    • OptionallocalName: string

      Internal local name (usually same as global name). Defaults to globalName.

    • enabled: boolean = true

      Whether the keyword is currently enabled. Default is true.

    • isReadOnly: boolean = false

      If true, the keyword properties cannot be modified. Default is false.

    • visible: boolean = true

      Whether the keyword is visible to the user. Default is true.

    Returns AcEdKeyword

Accessors