Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
Preview Visibility Mode

Preview visibility mode is available only for families (RFA files). It allows you to see how a view will be rendered in a project.

You can control preview visibility mode in the DBView element using the following methods.

To set preview visibility mode, use the setPreviewVisibility() method:

      
void setPreviewVisibility(bool isOn);
      
    

To check whether preview visibility mode is on, use the getPreviewVisibility() method:

      
bool getPreviewVisibility() const;
      
    

When you turn preview visibility mode on for GenSweep-derived elements, flags that are set in the FamElemVisibility attribute are checked, and an element is determined as visible according to the view's detail settings.

To check whether a view has a determined level of detail, use the isDetailLevel() method:

      
static bool isDetailLevel(OdInt32 nVisibility, OdBm::ViewLevelObjectDetail::Enum detailLevel);
      
    

For more details, see the preview visibility mode in the OdaBimApp sample application and read the OdaBimApp article.

See Also

Work with Views

Work with View Disciplines

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