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

This class wraps RebarShapeDefinition object.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Protected Properties

Свойство Type Description
m_constraints List
m_parameters List
m_rebarshapeDefinition RebarShapeDefinition

Méthodes publiques

Méthode Description
AddConstraint ( Type constraintType ) : ConstraintOnRebarShape

Add a constraint to RebarShapeDefinition.

AddParameter ( Type parameterType, object name, object value ) : RebarShapeParameter

Add a parameter to RebarShapeDefinition.

AllParameterTypes ( ) : List

Return all the parameter types supported by RebarShape definition.

AllowedConstraintTypes ( ) : List

Return all the constraint types supported by RebarShapeDefinition.

Commit ( System.Windows.Forms.Document rvtDoc, DefinitionGroup defGroup ) : void

Submit RebarShapeDefinition. All the parameters and constraints will be added to RebarShape. The RebarShape will be added to Revit document after successfully submitted.

RebarShapeDef ( RebarShapeDefinition shapeDef ) : System

Constructor, initialize the fields.

Method Details

AddConstraint() public méthode

Add a constraint to RebarShapeDefinition.
public AddConstraint ( Type constraintType ) : ConstraintOnRebarShape
constraintType System.Type Type of constraint /// (the class must be subclass of ConstraintOnRebarShape).
Résultat ConstraintOnRebarShape

AddParameter() public méthode

Add a parameter to RebarShapeDefinition.
public AddParameter ( Type parameterType, object name, object value ) : RebarShapeParameter
parameterType System.Type Parameter type: /// (type of RebarShapeParameterDouble or type of RebarShapeParameterFormula)
name object Parameter name
value object Parameter value (double value or formula string)
Résultat RebarShapeParameter

AllParameterTypes() public méthode

Return all the parameter types supported by RebarShape definition.
public AllParameterTypes ( ) : List
Résultat List

AllowedConstraintTypes() public méthode

Return all the constraint types supported by RebarShapeDefinition.
public AllowedConstraintTypes ( ) : List
Résultat List

Commit() public méthode

Submit RebarShapeDefinition. All the parameters and constraints will be added to RebarShape. The RebarShape will be added to Revit document after successfully submitted.
public Commit ( System.Windows.Forms.Document rvtDoc, DefinitionGroup defGroup ) : void
rvtDoc System.Windows.Forms.Document
defGroup DefinitionGroup Parameter definition group
Résultat void

RebarShapeDef() public méthode

Constructor, initialize the fields.
public RebarShapeDef ( RebarShapeDefinition shapeDef ) : System
shapeDef RebarShapeDefinition RebarShapeDefinition object to be wrapped
Résultat System

Property Details

m_constraints protected_oe property

All the dimensions will be added to RebarShapeDefinition.
protected List m_constraints
Résultat List

m_parameters protected_oe property

All the parameters will be added to RebarShapeDefinition.
protected List m_parameters
Résultat List

m_rebarshapeDefinition protected_oe property

RebarShape definition, the real object to be wrapped.
protected RebarShapeDefinition m_rebarshapeDefinition
Résultat RebarShapeDefinition