2023 Class
Changes 0
C

RebarShapeDefinition

Description:
A class to assist in defining rebar shapes. A RebarShape element needs exactly one RebarShapeDefinition.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Structure.RebarShapeDefinition
    Autodesk.Revit.DB.Structure.RebarShapeDefinitionByArc
    Autodesk.Revit.DB.Structure.RebarShapeDefinitionBySegments
public class RebarShapeDefinition : IDisposable
Name Return Type Description
M AddFormulaParameter(ElementId, String) None Add a formula-driven parameter to the shape definition.
M AddParameter(ElementId, Double) None Add a parameter to the shape definition.
M CheckDefaultParameterValues(Double, Double) bool Check that the shape can be solved with the default parameter values.
M Dispose() None Releases all resources used by the
M GetParameterDefaultValue(ElementId) The parameter value. Return the parameter's default value as stored in the definition.
M GetParameterFormula(ElementId) string Return the parameter's formula, if one is associated with it.
M GetParameters() IList<ElementId> Return the Ids of the shared parameters in the Definition.
M HasParameter(ElementId) bool Whether the definition stores the parameter.
M RemoveParameter(ElementId) None Remove the parameter from the definition.
M SetParameterDefaultValue(ElementId, Double) None Change the parameter's value as stored in the definition.
M SetParameterFormula(ElementId, String) None Associate a formula with the parameter.
Name Return Type Description
P Complete bool Report whether the shape definition is fully constrained.
P IsPlanar bool Reports whether the shape definition lies within a plane: false if a spiral, true in all other cases.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.