GetHandleSurface Method


Rebar Constrained Handle Get Handle Surface Method

Gets the surface of this handle.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public Surface GetHandleSurface()

Return Value

Surface
Returns the surface of this handle.
Exceptions
Exception Condition
InvalidOperationException RebarConstrainedHandle is no longer valid. -or- This handle doesn't belong to a shape driven rebar.
Remarks

This function takes into account the handle behavior.

This function works only for shape driven rebar.

Usualy the return surface is a plane. Only for segments of bars whose shape has a RebarShapeDefinitionByArc will return a cylindrical surface.

See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →