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 [[VS:Function Reference Appendix#Appendix F - Preference Selectors|Appendix]].
FUNCTION GetPrefString(prefIndex : INTEGER): STRING;def vs.GetPrefString(prefIndex):
return STRING| Name | Type | Description |
|---|---|---|
| prefIndex | INTEGER | Preference item index. |
Returns the status of the specified preference item. Used for preferences that return a string instead of a Boolean (see GetPref)
==== VectorScript ====
unitmark:=GetPrefString(154);==== Python ====
unitmark = vs.GetPrefString(154)Availability: from VectorWorks9.0
- Document Settings