AssemblyViewUtilsCreateDetailSection(Document, ElementId, AssemblyDetailViewOrientation) Method |
Creates a new detail section assembly view for the assembly instance.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static ViewSection CreateDetailSection(
Document document,
ElementId assemblyInstanceId,
AssemblyDetailViewOrientation direction
)
Public Shared Function CreateDetailSection (
document As Document,
assemblyInstanceId As ElementId,
direction As AssemblyDetailViewOrientation
) As ViewSection
public:
static ViewSection^ CreateDetailSection(
Document^ document,
ElementId^ assemblyInstanceId,
AssemblyDetailViewOrientation direction
)
static member CreateDetailSection :
document : Document *
assemblyInstanceId : ElementId *
direction : AssemblyDetailViewOrientation -> ViewSection
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