Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 908 Bytes

File metadata and controls

39 lines (30 loc) · 908 Bytes

GetPrefInt

Description

Function GetPrefInt returns the value of a numeric VectorWorks preference setting.

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

FUNCTION GetPrefInt(prefIndex : INTEGER): INTEGER;
def vs.GetPrefInt(prefIndex):
    return INTEGER

Parameters

Name Type Description
prefIndex INTEGER Preference item constant.

Remarks

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

Examples

VectorScript

maxUndos:=GetPrefInt(17);

Python

maxUndos = vs.GetPrefInt(17)

Version

Availability: from VectorWorks8.0

Category