Shows the element group's attached detail groups of the input group type that
are compatible with the input view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2019.1
Syntax
C# |
---|
public void ShowAttachedDetailGroups( View view, ElementId detailGroupTypeId ) |
Visual Basic |
---|
Public Sub ShowAttachedDetailGroups ( _ view As View, _ detailGroupTypeId As ElementId _ ) |
Visual C++ |
---|
public: void ShowAttachedDetailGroups( View^ view, ElementId^ detailGroupTypeId ) |
Parameters
- view
- Type: Autodesk.Revit.DB..::..View
The view that the attached detail groups must be compatible with.
- detailGroupTypeId
- Type: Autodesk.Revit.DB..::..ElementId
Only attached detail groups of this type will be shown.
Remarks
Currently, perpendicular elevation views (for example, North and East views) are considered
compatible when deciding whether or not to allow a detail group to be displayed in a view.
The show operation may generate an error (FailureMessage) based on id if the orientation of the
annotations do not match the orientation of the target view (for example, the failure definition
DimensionPerpendicularToView). To prevent displaying detail groups in the wrong view, you can
check the OwnerViewId of a detail group to make sure it matches the view in which you are trying
to display it.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | The attached detail group detailGroupTypeId does not match the input view's orientation. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
Autodesk.Revit.Exceptions..::..InvalidOperationException | The input group is not a model group and can therefore not have attached detail groups. -or- This exception is thrown if the input attached detail group cannot be found in the current document. |