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.
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
System.Object
Autodesk.Revit.DB.Structure.RebarConstrainedHandle
public class RebarConstrainedHandle : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| GetCustomHandleTag() | int | Returns the tag of the handle. The type of the handle should be 'CustomHandle'. |
| 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. |
| GetHandleName() | string | Gets the name of the handle. |
| GetHandleType() | RebarHandleType | Returns the RebarHandleType of a RebarConstrainedHandle. |
| IsCustomHandle() | bool | Returns true if the RebarHandleType of the RebarConstrainedHandle is 'CustomHandle'. |
| IsEdgeHandle() | bool | Returns true if the RebarHandleType of the RebarConstrainedHandle is 'Edge'. |
| 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 |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |