Share

Acad.PromptEntityOptions Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.PromptEntityOptions(messageAndKeywords);

Group

ACAD Namespace

Parameters

Parameter Description
messageAndKeywords is the prompt message along with keywords.

Returns

PromptEntityOptions

Description

This class represents optional parameters for an entity prompt. This function is derived from Acad.PromptEditorOptions.

Properties

Name Type Description Condition
allowedClasses Array Gets internal list of classes allowed for the selection.

Throws an Error object when trying to set the property. Use PromptEntityOptions.addAllowedClass to add or PromptEntityOptions.removeAllowedClass to remove a class.
Read-only
allowNone boolean Gets or sets whether or not the prompt accepts Enter as sole input. True if Enter on its own is allowed, false otherwise. Read-write
allowObjectOnLockedLayer boolean Gets or sets whether the prompt allows selection of entities on locked layer. Read-write
rejectMessage string Gets or sets message as the prompt that is posted if the type of a picked entity is not allowed for this selection.

Throws an Error object if a string wasn't provided.
Read-write

Exception

Throws a TypeError object.

ACAD Namespace

Was this information helpful?