RebarConstraint.IsValidSurfaceToConstraintHandleTo
Method
Description:
Checks if the surface can be used to create a constraint to it for the input handle.
Checks if the surface can be used to create a constraint to it for the input handle.
Remarks:
If the handle belongs to a free from rebar will return false.
If the input plane is almost perpendicular (the angle between surfaces is between 84 or 96 degrees) will return false.
If the input handle is Rebar Plane or Out Of Plane Extents and the surface isn't a plane will return false.
If the input handle is a segment of a bar whose shape has a RebarShapeDefinitionBySegments definition and the surface isn't a cylinder surface will return false.
For any other cases will return true
Syntax
public static bool IsValidSurfaceToConstraintHandleTo(
RebarConstrainedHandle handle,
Surface surface
)
Parameters
Parameter | Type | Description |
---|---|---|
handle | RebarConstrainedHandle | The handle of the rebar that will be constrained. |
surface | Surface | The surface that will be tested. |
Return Value
Type | Description |
---|---|
Boolean | Returns true if the surface can be used to create a constraint to it for the input handle. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |