RVTDocs.com

RebarConstraintsManager.SetPreferredConstraintsToSurfaceForHandles

Method
Description:
For ShapeDriven Rebar it will set a preferred 'ToSurface' RebarConstraint for each input handle. The surface that will be used by the constraint is the current surface that is used to compute the position of the handle.
Parameters
Parameter Type Description
handles IList The RebarConstrainedHandles for which the 'ToSurface' RebarConstraint will be applied.
Return Value
Exceptions
Exception Condition
ArgumentException One of the RebarConstrainedHandle is no longer valid.
ArgumentNullException A non-optional argument was null
InvalidOperationException The RebarConstraintsManager does not manage a valid Rebar element. -or- The RebarConstraintsManager does not manage a shape driven Rebar element.