MLightCAD
    Preparing search index...

    Represents the base class for prompt options in the Editor, similar to Autodesk.AutoCAD.EditorInput.PromptOptions. Provides configuration for the prompt message, keyword collection, and how keywords are appended/displayed.

    Type Parameters

    • T = number | string | AcGePoint3d

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructs a new AcEdPromptOptions with a given prompt message.

      Type Parameters

      • T = string | number | AcGePoint3d

      Parameters

      • message: string

        The message to show to the user in the prompt, or a combined message and keywords string in the format "Message text [Keyword1/Keyword2/...]".

      • OptionalglobalKeywords: string

        Optional space-separated list of global keyword names. If provided, the message parameter is treated as a combined message and keywords string.

      Returns AcEdPromptOptions<T>

    Accessors

    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