Entity.Visible Property
When the visibility of an entity changes, it's important to call Environment.UpdateBoundingBox to properly update the visualization.
To gets or sets the visibility status of the instances inside nested BlockReferences use GetVisibility and SetVisibility.