PrimaryBarShapeId Property


The RebarShape element that defines the shape of the primary bars of the Path Reinforcement.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2016

Syntax

C#
public ElementId PrimaryBarShapeId { get; set; }
Visual Basic
Public Property PrimaryBarShapeId As ElementId
	Get
	Set
Visual C++
public:
property ElementId^ PrimaryBarShapeId {
	ElementId^ get ();
	void set (ElementId^ value);
}

Remarks

Changing the value of this property causes the Path Reinforcement to choose values for its shape parameters.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException When setting this property: shapeId should refer to two dimensional Rebar Shape element with segments forming only right angles.
Autodesk.Revit.Exceptions ArgumentNullException When setting this property: A non-optional argument was null
Autodesk.Revit.Exceptions DisabledDisciplineException When setting this property: None of the following disciplines is enabled: Structural.
Autodesk.Revit.Exceptions InvalidOperationException When setting this property: This PathReinforcement does not host Rebar.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →