Revit 2017.1 API |
View..::..SetVisibility Method |
View Class See Also |
Sets if elements of the given category will be visible in this view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Syntax
C# |
---|
[ObsoleteAttribute("This method is deprecated in Revit 2017. Use View.SetCategoryHidden() instead.")] public void SetVisibility( Category category, bool visible ) |
Visual Basic |
---|
<ObsoleteAttribute("This method is deprecated in Revit 2017. Use View.SetCategoryHidden() instead.")> _ Public Sub SetVisibility ( _ category As Category, _ visible As Boolean _ ) |
Visual C++ |
---|
[ObsoleteAttribute(L"This method is deprecated in Revit 2017. Use View.SetCategoryHidden() instead.")] public: void SetVisibility( Category^ category, bool visible ) |
Parameters
- category
- Type: Autodesk.Revit.DB..::..Category
The category.
- visible
- Type: System..::..Boolean
True to make elements of this category visible, false to make them invisible.
Remarks
This affects only if the category is set visible or invisible individually. Other Revit mechanisms
may also affect the visibility of elements of this category, including:
- the category classes settings for model categories, annotation categories, import categories or analytical model categories.
- view filters