2024 Class
Changes 6
C

RebarFreeFormAccessor

Description:
A class that is used to access the properties and capabilities of free-form Rebar.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Structure.RebarFreeFormAccessor
public class RebarFreeFormAccessor : IDisposable
Name Return Type Description
M AddUpdatingSharedParameter(ElementId) None Add existing shared parameter as a dependency for the calculation of the rebar curves.
M CanBeHookNormal(Int32, Int32, XYZ) bool A vector can be hook normal if for a bar specified by index, the bar direction is not parallel with the vector.
M DisconnectFromServer() None 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).
M Dispose() None Releases all resources used by the
M GetCouplerIdAtIndex(Int32, Int32) ElementId Gets the id of the Rebar Coupler that is applied to the bar with index barPositionIndex at the specified end.
M GetCustomDistributionPath() IList<Curve> Gets the custom distribution path for free form rebar set.
M GetEndTreatmentTypeIdAtIndex(Int32, Int32) ElementId Gets the id of the EndTreatmentType that is applied to the bar with index barPositionIndex at the specified end.
M GetHookOrientationAngleAtIndex(Int32, Int32) double Gets the hook orientation angle that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
M GetHookOrientationAngle(Int32) double Get the hook orientation angle at end.
M GetHookOrientationAtIndex(Int32, Int32) RebarHookOrientation Gets the hook orientation that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
M GetHookPlaneNormalForBarIdx(Int32, Int32) XYZ Returns the normal of plane in which the hook at end of bar with index barPositionIndex will stay.
M GetHookTypeIdAtIndex(Int32, Int32) ElementId Gets the id of the RebarHookType that is applied to this Rebar at the bar with index barPositionIndex at the specified end.
M GetServerGUID() Guid Returns the GUID of the API server.
M GetShapeIdAtIndex(Int32) ElementId Gets the Rebar Shape id for the bar with index barPositionIndex.
M GetUpdatingSharedParameters() IList<ElementId> Get the shared parameters listed as dependencies in the calculation of the rebar curves
M HasValidAlignedServer() bool Returns true if the current rebar is created with the Aligned Free Form rebar server, false otherwise.
M HasValidServer() bool Returns true if the current rebar contains a valid server GUID, false otherwise.
M IsBarMatchedWithShapeInReverseOrder(Int32) bool Checks if the bar at index barPositionIndex it's matched in reversed order with its shape.
M IsUnconstrained() bool Returns true if the current rebar doesn't contains a valid server GUID, or contains a valid server GUID and no valid constraints.
M RemoveUpdatingSharedParameter(ElementId) None Remove existing shared parameter as a dependency for the calculation of the rebar curves.
M SetCurves(IList<CurveLoop>) RebarFreeFormValidationResult Set the curves into a free form Rebar. Will throw exception if the rebar has valid constraints.
M SetCurves(IList<IList<Curve>>) RebarFreeFormValidationResult Set the curves into a free form Rebar. Will throw exception if the rebar has valid constraints.
M SetHookOrientationAngle(Int32, Double) None Set the hook orientation angle at end. Will throw exception if the rebar has valid constraints.
M SetHookPlaneNormalForBarIdx(Int32, Int32, XYZ) None Set the normal of plane in which the hook at end of bar with index barPositionIndex will stay. Will throw exception if the rebar has valid constraints.
M SetLayoutAsFixedNumber(Int32) None Sets the Layout Rule property of rebar set to Fixed Number.
M SetLayoutAsMaximumSpacing(Double) None Sets the Layout Rule property of rebar set to Maximum Spacing.
M SetLayoutAsMinimumClearSpacing(Double) None Sets the Layout Rule property of rebar set to Minimum Clear Spacing.
M SetLayoutAsNumberWithSpacing(Int32, Double) None Sets the Layout Rule property of rebar set to Number With Spacing.
M SetLayoutAsSingle() None Sets the Layout Rule property of rebar set to Single.
M SetReportedShape(ElementId) None This method changes the RebarShape of a Free Form Rebar that is using RebarWorkInstructions.Straight property to the provided RebarShape.
Name Return Type Description
P AlignedFreeFormSetOrientationOptions AlignedFreeFormSetOrientationOptions Orientation options for an Aligned Free Form Rebar set.
P CycleCounter int Identifies the cycle counter. It can be zero or a pozitive number.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P RebarStyle RebarStyle Identifies the RebarStyle of the current Rebar element.
P StirrupTieAttachmentType StirrupTieAttachmentType Identifies the StirrupTieAttachmentType of the current Rebar element. The RebarStyle of the Rebar element must be StirrupTie.
P WorkshopInstructions RebarWorkInstructions Identifies the workshop instructions of the current Rebar element.