Share

Acad.PromptEntityOptions.addAllowedClass Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.PromptEntityOptions.addAllowedClass(className, exactMatch);

Group

ACAD Namespace

Parameters

Parameter Description
className name of allowed class
exactMatch boolean for exact type

Description

Use this method to add className to the internal list of classes allowed for the selection.

If exactMatch is true, then only objects of the exact class type are allowed. Otherwise, objects of the specified type and of any derived types are allowed. If type is already in the class list, the value of exactMatch is applied to the existing class entry.

Exception

Throws a TypeError or Error object based on the problem encountered.

ACAD Namespace

Was this information helpful?