Skip to content

RebarShapeDefinition

Public Class

A class to assist in defining rebar shapes. A RebarShape element needs exactly one RebarShapeDefinition.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.Structure.RebarShapeDefinition
Autodesk.Revit.DB.Structure.RebarShapeDefinitionByArc
Autodesk.Revit.DB.Structure.RebarShapeDefinitionBySegments

Namespace: Autodesk.Revit.DB.Structure

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class RebarShapeDefinition : IDisposable

The RebarShapeDefinition type exposes the following members.

Properties

Name

Description


Public Property

Report whether the shape definition is fully constrained.


Public Property

Reports whether the shape definition lies within a plane: false if a spiral, true in all other cases.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Methods

Name

Description


Public Method
AddFormulaParameter

Add a formula-driven parameter to the shape definition.


Public Method
AddParameter

Add a parameter to the shape definition.


Public Method
CheckDefaultParameterValues

Check that the shape can be solved with the default parameter values.


Public Method

Releases all resources used by the RebarShapeDefinition


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

Return the parameter’s default value as stored in the definition.


Public Method

Return the parameter’s formula, if one is associated with it.


Public Method

Return the Ids of the shared parameters in the Definition.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

Whether the definition stores the parameter.


Public Method
RemoveParameter

Remove the parameter from the definition.


Public Method

Change the parameter’s value as stored in the definition.


Public Method

Associate a formula with the parameter.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

A RebarShapeDefinition stores a set of Rebar Shape parameters. Each parameter may be associated with:

  • One or more RebarShapeConstraints; or
  • A formula; or
  • Neither of the above.

Each shape instance (Rebar object) will have its own values for these parameters. The RebarShapeDefinition also stores a default value for each parameter, which is ignored if the parameter is associated with a formula.