API Reference > OdDb Classes > OdDbVisibilityOverrule Class > OdDbVisibilityOverrule Methods > OdDbVisibilityOverrule::setVisibility Method
OdDbVisibilityOverrule::setVisibility Method
Syntax
C++
virtual OdResult setVisibility(OdDbEntity* pSubject, OdDb::Visibility visibility, bool doSubents = true);
Parameters 
Description 
OdDbEntity* pSubject 
[in] A raw pointer to an entity.  
OdDb::Visibility visibility 
[in] A visibility state as the OdDb::Visibility enumeration.  
bool doSubents = true 
[in] Indicates whether the new value should be applied to the subentitites. 

Overrules OdDbEntity::subSetVisibility() method and calls it in the default implementation. This method returns eOk if successful. 

 

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