Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 865 Bytes

File metadata and controls

40 lines (30 loc) · 865 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 [[VS:Function Reference Appendix#Appendix F - Preference Selectors|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

  • Document Settings