Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 856 Bytes

File metadata and controls

44 lines (34 loc) · 856 Bytes

GetPref

Description

Function GetPref returns the on-off status of the specified preference item.

A table of preference dialog items and their corresponding IDs may be found in the [[VS:Function Reference Appendix#Appendix F - Preference Selectors|VectorScript Appendix]].

FUNCTION GetPref(prefIndex : INTEGER): BOOLEAN;
def vs.GetPref(prefIndex):
    return BOOLEAN

Parameters

Name Type Description
prefIndex INTEGER Preference item constant.

Examples

==== VectorScript ====

SelHandleStatus:=GetPref(17);

Example for a shortcut to toggle preference true/false:

SetPref(49,not GetPref(49));

==== Python ====

SelHandleStatus = vs.GetPref(17)

See Also

SetPref

Version

Availability: from MiniCAD6.0

Category

  • Document Settings