Creates rectangle on face or sketchplane for two given diagonal points.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2012
Syntax
Visual Basic |
---|
Public Shared Sub CreateRectangle ( _
document As Document, _
startPoint As ReferencePoint, _
endPoint As ReferencePoint, _
projectionType As CurveProjectionType, _
boundaryReferenceLines As Boolean, _
boundaryCurvesFollowSurface As Boolean, _
<OutAttribute> ByRef createdCurvesIds As IList(Of ElementId), _
<OutAttribute> ByRef createdCornersIds As IList(Of ElementId) _
) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The Document.
- startPoint
- Type: Autodesk.Revit.DB..::..ReferencePoint
First diagonal point of rectangle.
- endPoint
- Type: Autodesk.Revit.DB..::..ReferencePoint
Second diagonal point of rectangle.
- projectionType
- Type: Autodesk.Revit.DB..::..CurveProjectionType
Projection type of rectangle's boundary curves.
If the rectangle input points are Face hosted, and CurveProjectionType::ParallelToLevel is requested,
and the Face normal at the location of the start point is at a less than 45 degree angle with the level
planes, then the projectionType will be set to FromTopDown, even if ParallelToLevel was requested.
- boundaryReferenceLines
- Type: System..::..Boolean
True if rectangle's boundary curves should be reference lines, false otherwise.
- boundaryCurvesFollowSurface
- Type: System..::..Boolean
True if rectangle's boundary curves should follow surface, false otherwise.
- createdCurvesIds
- Type: System.Collections.Generic..::..IList<(Of <(<'ElementId>)>)>%
Created rectangle's boundary curves ids.
- createdCornersIds
- Type: System.Collections.Generic..::..IList<(Of <(<'ElementId>)>)>%
Ids of two newly created corner points.
Remarks
Exceptions
See Also