SetConstraints Method


Rebar Shape Vertex Set Constraints Method

Assign a new list of constraints to this vertex.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetConstraints(
	IList<RebarShapeConstraint> constraints
)

Parameters

constraints IList RebarShapeConstraint
A new list of constraints.
Exceptions
Exception Condition
ArgumentException One or more of the constraints is of a type not supported for RebarShapeVertex.
ArgumentNullException A non-optional argument was null
Remarks
Any existing constraints are discarded. The new constraints replace them. Any parameters driving the constraints must already be added with RebarShapeDefinition.AddParameter().

The allowable constraint types are:

  • RebarShapeConstraintRadius
  • RebarShapeConstraintArcLength
Any number of constraints may be specified. With no constraints, the bend radius will default to the appropriate bend radius from the RebarBarType element.

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 →