2022 Class
Changes 4
C

RebarConstrainedHandle

Description:
A class representing a handle on a Rebar that can be joined to a reference, such as a host Element's surface or cover, or another Rebar's handle.
Remarks:

A rebar element's flexible geometry is controlled by several handles. The shape of the bar is controlled by a handle at each end of the bar (blue circle controls) and a handle each edge (blue triangle controls). Another handle is used to control the location of the plane in which the rebar lies. An additional handle controls the length of a set of rebar.

RebarConstrainedHandles can only be constructed internally by Revit. They are available to the API by querying a rebar element's RebarConstraintsManager.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Structure.RebarConstrainedHandle
public class RebarConstrainedHandle : IDisposable
Name Return Type Description
M Dispose() None Releases all resources used by the
M GetCustomHandleTag() int Returns the tag of the handle. The type of the handle should be 'CustomHandle'.
M GetEdgeNumber() int If the RebarConstrainedHandle's RebarHandleType is 'Edge', then this function will return the number of the edge that is driven by the handle.
M GetHandleName() string Gets the name of the handle.
M GetHandleType() RebarHandleType Returns the RebarHandleType of a RebarConstrainedHandle.
M IsCustomHandle() bool Returns true if the RebarHandleType of the RebarConstrainedHandle is 'CustomHandle'.
M IsEdgeHandle() bool Returns true if the RebarHandleType of the RebarConstrainedHandle is 'Edge'.
M IsValid() bool Checks that the RebarConstrainedHandle still has access to valid Rebar handle data and that its RebarConstraintsManager is still valid.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.