API Reference > OdDb Classes > OdDbEntity Class > OdDbEntity Methods > OdDbEntity::setVisibility Method
OdDbEntity::setVisibility Method
Syntax
C++
ODRX_SEALED_VIRTUAL OdResult setVisibility(OdDb::Visibility visibility, bool doSubents = true);
Parameters 
Description 
OdDb::Visibility visibility 
[in] Visibility status.  
bool doSubents = true 
[in] If and only if true, applies the change to all sub-entities owned by this entity. 

Returns eOk if successful, or an appropriate error code if not. 

visibility must be one of the following: 

 

Name 
Value 
OdDb::kInvisible 
OdDb::kVisible 

Sets the visibility status of this entity (DXF 60). 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.