C# Class Revit.SDK.Samples.NewRebar.CS.RebarShapeParameter

This class wraps an Parameter object which will be added to RebarShape definition. This is a abstract class and it will be inherited by two classes: RebarShapeParameterDouble and RebarShapeParameterFormula.
ファイルを表示 Open project: AMEE/revit Class Usage Examples

Protected Properties

Property Type Description
m_name String
m_parameterId ElementId
m_rebarShapeDef RebarShapeDef

Private Properties

Property Type Description

Public Methods

Method Description
Commit ( Autodesk doc, DefinitionGroup defGroup ) : void

Yield the Parameter.

Protected Methods

Method Description
GetOrCreateDef ( DefinitionGroup group ) : ExternalDefinition

Get a external definition if there exists one, otherwise create a new one.

RebarShapeParameter ( RebarShapeDef shapeDef, string name ) : System

Constructor.

Method Details

Commit() public abstract method

Yield the Parameter.
public abstract Commit ( Autodesk doc, DefinitionGroup defGroup ) : void
doc Autodesk
defGroup DefinitionGroup Definition group
return void

GetOrCreateDef() protected method

Get a external definition if there exists one, otherwise create a new one.
protected GetOrCreateDef ( DefinitionGroup group ) : ExternalDefinition
group DefinitionGroup Definition group
return ExternalDefinition

RebarShapeParameter() protected method

Constructor.
protected RebarShapeParameter ( RebarShapeDef shapeDef, string name ) : System
shapeDef RebarShapeDef RebarShapeDefinition proxy
name string Parameter name
return System

Property Details

m_name protected_oe property

Parameter name string.
protected String m_name
return String

m_parameterId protected_oe property

Parameter id. It is the result of commit.
protected ElementId m_parameterId
return ElementId

m_rebarShapeDef protected_oe property

RebarShape definition proxy object.
protected RebarShapeDef,Revit.SDK.Samples.NewRebar.CS m_rebarShapeDef
return RebarShapeDef