Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 876 Bytes

File metadata and controls

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

  • Document Settings