Skip to content

Latest commit

 

History

History
82 lines (72 loc) · 1.74 KB

File metadata and controls

82 lines (72 loc) · 1.74 KB

SetClassOptions

Description

Sets class visibility setting for the active document.

Visibility Index
Active Only 1
Gray Others 2
Gray/Snap Others 6
Show Others 3
Show/Snap Others 4
Show/Snap/Modify Others 5
PROCEDURE SetClassOptions(classOpts : INTEGER);
def vs.SetClassOptions(classOpts):
    return None

Parameters

Name Type Description
classOpts INTEGER New class visibility setting.

Examples

		Layer(GetLName(temp_h));
		ShowLayer;
		temp_h := NextObj(temp_h);
	END;
	SetClassOptions(5);
	for i := 1 to ClassNum DO ShowClass(ClassList(i));
END;

BEGIN
		SetClassOptions(5);
		SetLayerOptions(5);
		DSelectAll;
		Layer(kStrErrorLayer);
		SetLayerOptions(1);

{set the Class Setting to Show/Snap/Modify Others}
SetClassOptions (5);
curClassVis = vs.GetClassOptions()
vs.SetClassOptions( 5 ) #Set to Show/Snap/Modify to fix VB-116777

Version

Availability: from VectorWorks8.5

Category