Share

Acad.PromptNumericalOptions Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.PromptNumericalOptions(messageAndKeywords);

Group

ACAD Namespace

Parameters

Parameter Description
messageAndKeywords is the prompt message along with keywords.

Description

This is the base class for types that represent optional parameters for numerical prompts. This function is derived from Acad.PromptEditorOptions.

Properties

Name Type Description Condition
allowArbitraryInput boolean Gets or sets whether or not the prompt accepts arbitrary input. Read-write
allowNegative boolean Gets or sets whether the prompt accepts negative value input. True if negative value input is accepted, false otherwise. Read-write
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
allowZero boolean Gets or sets whether the prompt accepts zero value input. True if zero valued input is accepted, false otherwise. Read-write
useDefaultValue boolean Gets or sets whether the prompt should use the default value when you press Enter without any other input. The property that allows client code to set the default value is declared by derived classes. Read-write

Exception

Throws a TypeError object.

ACAD Namespace

Was this information helpful?