RebarFreeFormAccessor Class


Rebar Free Form Accessor Class

A class that is used to access the properties and capabilities of free-form Rebar.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB.Structure RebarFreeFormAccessor

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public class RebarFreeFormAccessor : IDisposable

The RebarFreeFormAccessor type exposes the following members.

Properties
Name Description
Public property AlignedFreeFormSetOrientationOptions Obsolete.
Orientation options for an Aligned Free Form Rebar set.
Public property CycleCounter

Identifies the cycle counter. It can be zero or a pozitive number.

Its value is changed when the free form Rebar element is selected and the user press Space key -or- through the setter of this property -or- by the server if it considers that the counter reaches the maximum value and reset it (set it to 0). This property can be accessed just for Rebars that are controlled by a server.

Public property FreeFormSetOrientationOptions Identifies the orientation options for an Aligned or 3D Path Free Form Rebar set.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property RebarStyle Identifies the RebarStyle of the current Rebar element.
Public property StirrupTieAttachmentType Identifies the StirrupTieAttachmentType of the current Rebar element. The RebarStyle of the Rebar element must be StirrupTie.
Public property WorkshopInstructions Identifies the workshop instructions of the current Rebar element.
Top
Methods
Name Description
Public method AddUpdatingSharedParameter Add existing shared parameter as a dependency for the calculation of the rebar curves.
Public method CanBeTerminationPlaneNormal A vector can be termination (e.g. hook, crank) plane normal if for a bar specified by index, the bar direction is not parallel with the vector.
Public method DisconnectFromServer Sets the GUID of the API server to invalid value and removes all the server related data from the Rebar (ex. the current constraints and the handle tags are removed). Calling this method will result in a Rebar that will not react to host changes anymore, however it will still have all the properties that it used to have.
Public method Dispose Releases all resources used by the RebarFreeFormAccessor
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method Flip3dPathSet For a free form set distributed along a 3D path, this method flips the distribution path. The set should not have Single layout rule.
Public method GetComputationDataFor3DPathSet For a free form set distributed along a 3D path, this method gets the computation data.
Public method GetCouplerIdAtIndex Gets the id of the Rebar Coupler that is applied to the bar with index barPositionIndex at the specified end.
Public method GetCrankTypeIdAtIndex Gets the id of the Rebar Crank Type that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
Public method GetCustomDistributionPath Gets the custom distribution path for free form rebar set.
Public method Static member GetDefaultPositiveDirectionForMorphedTargetEdgesHandle Gets the default positive direction of the specified target rebar edge in terms of how Morphed Free Form Rebar is defining the default positive direction.
Public method GetEndTreatmentTypeIdAtIndex Gets the id of the EndTreatmentType that is applied to the bar with index barPositionIndex at the specified end.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetHookTypeIdAtIndex Gets the id of the RebarHookType that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
Public method GetServerGUID Returns the GUID of the API server.
Public method GetShapeIdAtIndex Gets the Rebar Shape id for the bar with index barPositionIndex.
Public method GetTerminationOrientationAtIndex Gets the termination's (e.g. hook, crank ) orientation that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
Public method GetTerminationPlaneNormalForBarIndex Gets the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay.
Public method GetTerminationRotationAngleAtIndex Gets the termination (e.g hook,crank) rotation angle that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method GetUpdatingSharedParameters Get the shared parameters listed as dependencies in the calculation of the rebar curves
Public method HasValid3DPathServer Returns true if the current rebar is created with the 3D Path Free Form rebar server, false otherwise.
Public method HasValidAlignedServer Returns true if the current rebar is created with the Aligned Free Form rebar server, false otherwise.
Public method HasValidMorphedServer Returns true if the current rebar is created with the Morphed Free Form rebar server, false otherwise.
Public method HasValidServer Returns true if the current rebar contains a valid server GUID, false otherwise.
Public method HasValidSurfaceServer Returns true if the current rebar is created with the Surface Free Form rebar server, false otherwise.
Public method IsBarMatchedWithShapeInReverseOrder Checks if the bar at index barPositionIndex it's matched in reversed order with its shape.
Public method IsUnconstrained Returns true if the current rebar doesn't contains a valid server GUID, or contains a valid server GUID and no valid constraints.
Public method Static member IsValidRebarTargetForMorphedRebar Checks if the rebar can be used as a target for morphed rebar. A rebar is a valid target for morphed rebar if all the bars in set have the same number of segments and all are planar. Multiplanar bars are considered invalid.
Public method RemoveUpdatingSharedParameter Remove existing shared parameter as a dependency for the calculation of the rebar curves.
Public method SetComputationDataFor3DPathSet For a free form set distributed along a 3D path, this method sets the computation data.
Public method SetCurves(IList CurveLoop ) Set the curves into a free form Rebar. Will throw exception if the rebar has valid constraints.
Public method SetCurves(IList IList Curve ) Set the curves into a free form Rebar. Will throw exception if the rebar has valid constraints.
Public method SetLayoutAsCustomSpacing Sets the Layout Rule property of rebar set to Custom Spacing.
Public method SetLayoutAsFixedNumber Sets the Layout Rule property of rebar set to Fixed Number.
Public method SetLayoutAsMaximumSpacing Sets the Layout Rule property of rebar set to Maximum Spacing.
Public method SetLayoutAsMinimumClearSpacing Sets the Layout Rule property of rebar set to Minimum Clear Spacing.
Public method SetLayoutAsNumberWithSpacing Sets the Layout Rule property of rebar set to Number With Spacing.
Public method SetLayoutAsSingle Sets the Layout Rule property of rebar set to Single.
Public method SetReportedShape This method changes the RebarShape of a Free Form Rebar that is using RebarWorkInstructions.Straight property to the provided RebarShape.
Public method SetTerminationPlaneNormalForBarIndex Sets the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay. Will throw exception if the rebar has valid constraints.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
Obtain an instance of this class from GetFreeFormAccessor . The accessor includes a reference to the Rebar element. If the referenced Rebar element is deleted, using the methods form this class will throw exception.
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 →