Options for prompting the user to enter an integer (whole number), similar to AutoCAD .NET PromptIntegerOptions.

Inherits common numeric‑prompt behavior from AcEdPromptNumericalOptions, and adds integer-specific configuration for minimum and maximum allowed values.

Hierarchy (View Summary)

Constructors

  • Constructs a new AcEdPromptIntegerOptions.

    AutoCAD .NET provides multiple overloads. This constructor supports the same idea by allowing:

    • just a message, or
    • a message + lower limit, or
    • a message + lower + upper limit.

    Parameters

    • message: string

      The message displayed to the user when prompting for an integer.

    • OptionallowerLimit: number

      (optional) Minimum allowed integer value. Enables useLowerLimit.

    • OptionalupperLimit: number

      (optional) Maximum allowed integer value. Enables useUpperLimit.

    Returns AcEdPromptIntegerOptions

Accessors

  • get allowArbitraryInput(): boolean

    Gets or sets whether arbitrary (non-numeric) input is accepted. If true, the prompt may allow strings or other input, depending on implementation. Corresponds to PromptNumericalOptions.AllowArbitraryInput in AutoCAD .NET API.

    Returns boolean

  • set allowArbitraryInput(flag: boolean): void

    Parameters

    • flag: boolean

    Returns void

  • get appendKeywordsToMessage(): boolean

    Gets or sets whether keywords should be appended automatically to the message when rendering. In AutoCAD .NET, this is PromptOptions.AppendKeywordsToMessage.

    Returns boolean

  • set appendKeywordsToMessage(value: boolean): void

    Parameters

    • value: boolean

    Returns void

  • get defaultValue(): number

    Gets or sets the default numerical value for the prompt. This is used when the user presses ENTER without providing any other input. In the .NET API, derived classes define the type-specific default value (e.g., integer, double).

    Returns number

  • set defaultValue(val: number): void

    Parameters

    • val: number

    Returns void

  • get isReadOnly(): boolean

    Gets whether this AcEdPromptOptions is read-only. When read-only, properties such as message and appendKeywordsToMessage cannot be changed. Corresponds to PromptOptions.IsReadOnly.

    Returns boolean

Methods

  • Sets both the prompt message and the display keywords from a single combined string. This corresponds to PromptOptions.SetMessageAndKeywords(string messageAndKeywords, string globalKeywords) in the .NET API.

    The messageAndKeywords string is typically of the form "Message text [Keyword1/Keyword2/...]". The globalKeywords parameter is a space-separated list of global keyword names.

    After calling this, the message is updated to the part before the [ ... ], and the keywords collection is updated to contain the specified global keywords.

    Parameters

    • messageAndKeywords: string

      The combined message and keywords for the prompt.

    • globalKeywords: string

      A space-separated string listing the global names of the keywords.

    Returns this