Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 946 Bytes

File metadata and controls

39 lines (30 loc) · 946 Bytes

GetPrefString

Description

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

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

FUNCTION GetPrefString(prefIndex : INTEGER): STRING;
def vs.GetPrefString(prefIndex):
    return STRING

Parameters

Name Type Description
prefIndex INTEGER Preference item index.

Remarks

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

Examples

VectorScript

unitmark:=GetPrefString(154);

Python

unitmark = vs.GetPrefString(154)

Version

Availability: from VectorWorks9.0

Category