Layer.SetPerViewportVisible Method

LayerSetPerViewportVisible Method

Controls layer visibility in specific viewports.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void SetPerViewportVisible(
	Guid viewportId,
	bool visible
)
Public Sub SetPerViewportVisible ( 
	viewportId As Guid,
	visible As Boolean
)

Parameters

viewportId
Type: SystemGuid
If not Guid.Empty, then the setting applies only to the viewport with the specified id. If Guid.Empty, then the setting applies to all viewports with per viewport layer settings.
visible
Type: SystemBoolean
true to make layer visible, false to make layer invisible.
Version Information

Rhino for Windows

Supported in: 6.8
See Also