HideAttachedDetailGroups Method


Hides the element group's attached detail groups of the input group type that are compatible with the input view.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2019.1

Syntax

C#
public void HideAttachedDetailGroups(
	View view,
	ElementId detailGroupTypeId
)
Visual Basic
Public Sub HideAttachedDetailGroups ( _
	view As View, _
	detailGroupTypeId As ElementId _
)
Visual C++
public:
void HideAttachedDetailGroups(
	View^ view, 
	ElementId^ detailGroupTypeId
)

Parameters

view
Type: Autodesk.Revit.DBView
The view that the attached detail groups must be compatible with.
detailGroupTypeId
Type: Autodesk.Revit.DBElementId
Only attached detail groups of this type will be hidden.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The attached detail group detailGroupTypeId does not match the input view's orientation.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException The input group is not a model group and can therefore not have attached detail groups.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →