SetConstraints Method


Assign a new list of constraints to this vertex.

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

Syntax

C#
public void SetConstraints(
	IList<RebarShapeConstraint> constraints
)
Visual Basic
Public Sub SetConstraints ( _
	constraints As IList(Of RebarShapeConstraint) _
)
Visual C++
public:
void SetConstraints(
	IList<RebarShapeConstraint^>^ constraints
)

Parameters

constraints
Type: System.Collections.GenericIListRebarShapeConstraint
A new list of constraints.

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.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException One or more of the constraints is of a type not supported for RebarShapeVertex.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also