Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 936 Bytes

File metadata and controls

43 lines (32 loc) · 936 Bytes

SetPrefString

Description

Sets the value of the specified VectorWorks preference setting. Used with preference settings requiring a STRING 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]].

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

Parameters

Name Type Description
index INTEGER Preference item index.
value STRING 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 string values

Examples

==== VectorScript ====

SetPrefString(154,'cubits');

==== Python ====

Version

Availability: from VectorWorks9.0

Category

  • Document Settings