RebarShapeDefinitionBySegments Constructor


Create a rebar shape definition with a given number of segments.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public RebarShapeDefinitionBySegments(
	Document doc,
	int numberOfSegments
)
Visual Basic
Public Sub New ( _
	doc As Document, _
	numberOfSegments As Integer _
)
Visual C++
public:
RebarShapeDefinitionBySegments(
	Document^ doc, 
	int numberOfSegments
)

Parameters

doc
Type: Autodesk.Revit.DBDocument
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
Type: SystemInt32
The number of segments in the definition.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException numberOfSegments must be at least 1.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →