Skip to content

Latest commit

 

History

History
96 lines (83 loc) · 2.13 KB

File metadata and controls

96 lines (83 loc) · 2.13 KB

SetLayerOptions

Description

Sets layer 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 SetLayerOptions(layerOpts : INTEGER);
def vs.SetLayerOptions(layerOpts):
    return None

Parameters

Name Type Description
layerOpts INTEGER New layer visibility setting for document.

Examples

if isolate & YNDialog(GetPlugInString(7000)) then BEGIN
	{No need to change the layer & class visibility unless you're searching all layers.}
	if layerOptions = 1 then BEGIN
		SetLayerOptions(5);
		temp_h := FLayer;
		while temp_h <> nil do BEGIN
			Layer(GetLName(temp_h));
			ShowLayer;

Begin
SetLayerOptions(4);
ChangedLayerOpts := True;
End

	gX2 := gXtemp;
	gY2 := gYtemp;
END;
LayerOpt := GetLayerOptions;
IF LayerOpt > 3 THEN SetLayerOptions(5);
gDrawResult := PickPIO(kPIOName, gX1, gY1, gX2, gY2, gIDHand, gIDSymHand, gSourceObjHand, gSourceRec);
IF kDebugMode THEN alrtdialog('Returned from Initial PickPIO');
UserPick := TRUE;
IsDoor := FALSE;
import vs

# Sets layer visibility setting for the active document.
layerOpts = 1

vs.SetLayerOptions(layerOpts)

See Also

VS Functions: GetLayerOptions

Version

Availability: from VectorWorks8.5

Category