Rebar
|
This method creates a constraint of 'ToSurface' type for a given RebarConstrainedHandle.
The RebarConstrainedHandle should belong to a Shape Driven Rebar, otherwise it will throw exception.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
public static RebarConstraint CreateConstraintToSurface(
RebarConstrainedHandle handle,
Surface surface
)
Parameters
- handle RebarConstrainedHandle
- The handle of the rebar that will be constrained.
- surface Surface
- The surface that will be used by the constraint.
Return Value
RebarConstraintReturns the newly created RebarConstraint.
| Exception | Condition |
|---|---|
| ArgumentException | handle is no longer valid. -or- -or- The RebarConstrainedHandle doesn't allow constraint of RebarConstraintType.ToSurface type. |
| ArgumentNullException | A non-optional argument was null |