Entity.SetVisibility Method

Sets the entity visibility status.
Public Sub SetVisibility( _ 
ByVal status As Boolean, _ 
ByVal parents As Stack(Of BlockReference) _ 
)
This language is not supported or no code example is available.
public void SetVisibility( 
bool status
Stack<BlockReference> parents 
)
This language is not supported or no code example is available.

Parameters

status
bool

The visibility status

parents
Stack<BlockReference>

The parents stack, stored in the entity, that define a nested instance

Remarks
 

To change the status of a single instance use a full stack of parents starting from the root level. To change the status of all specified instances of the entity inside a given block use a partial stack of parents starting from the block level.

The parents stack is not cloned, it's stored in the entity and used to check the visibility.

.NET Framework

Supported in: 4.8

In this article

Definition