Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 919 Bytes

File metadata and controls

39 lines (30 loc) · 919 Bytes

GetPrefReal

Description

Returns the value of a VectorWorks preference setting. Used with preference settings returning a REAL value.

A table of preference dialog items and their corresponding IDs may be found in the Scirpt Appendix.

FUNCTION GetPrefReal(prefIndex : INTEGER): REAL;
def vs.GetPrefReal(prefIndex):
    return REAL

Parameters

Name Type Description
prefIndex INTEGER Preference item index.

Remarks

Returns the status of the specified preference item. Used for preferences that return a real instead of a Boolean (see GetPref)

Examples

VectorScript

upi:= GetPrefReal(152);

Python

upi = vs.GetPrefReal(152)

Version

Availability: from VectorWorks9.0

Category