Creates a new detail section assembly view for the assembly instance.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static ViewSection CreateDetailSection(
Document document,
ElementId assemblyInstanceId,
AssemblyDetailViewOrientation direction
)
Parameters
- document Document
-
The document to which the view will be added.
- assemblyInstanceId ElementId
-
Id of the assembly instance that owns the new view.
- direction AssemblyDetailViewOrientation
-
The direction for the new view.
Return Value
ViewSection
A new detail section assembly view.
Exceptions
Remarks
The detail section will cut through the center of the assembly instance's outline.
The document must be regenerated before using the detail section.
See Also
Reference