Revit 2025.3 API
Rebar |
Create a rebar shape definition with a given number of segments.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public RebarShapeDefinitionBySegments( Document doc, int numberOfSegments )
Public Sub New ( doc As Document, numberOfSegments As Integer )
public: RebarShapeDefinitionBySegments( Document^ doc, int numberOfSegments )
new : doc : Document * numberOfSegments : int -> RebarShapeDefinitionBySegments
Parameters
- doc Document
- A document. The definition object is not a part of the document, but it will contain references to parameters that are in a document. The definition can be used for RebarShape creation only in the specified document.
- numberOfSegments Int32
- The number of segments in the definition.
| Exception | Condition |
|---|---|
| ArgumentException | numberOfSegments must be at least 1. |
| ArgumentNullException | A non-optional argument was null |
See Also