2026 Method
Changes 5
M

RebarConstraint.IsValidSurfaceToConstraintHandleTo

Description:
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

public static bool IsValidSurfaceToConstraintHandleTo(
	RebarConstrainedHandle handle,
	Surface surface
)
Return Value Boolean Returns true if the surface can be used to create a constraint to it for the input handle.