Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 886 Bytes

File metadata and controls

43 lines (32 loc) · 886 Bytes

SetPrefInt

Description

Function SetPrefInt sets 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]].

PROCEDURE SetPrefInt(
				index : INTEGER;
				value : INTEGER);
def vs.SetPrefInt(index, value):
    return None

Parameters

Name Type Description
index INTEGER Preference item constant.
value INTEGER New value for preference.

Remarks

Sets the value of the specified preference to the value passed. Similar to SetPref() except it works on preferences for Integer values

Examples

==== VectorScript ====

SetPrefInt(17,FALSE);

==== Python ====

Version

Availability: from VectorWorks8.0

Category

  • Document Settings