C# Класс Revit.SDK.Samples.NewRebar.CS.RebarShapeDef

This class wraps RebarShapeDefinition object.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_constraints List
m_parameters List
m_rebarshapeDefinition RebarShapeDefinition

Открытые методы

Метод Описание
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.

Описание методов

AddConstraint() публичный Метод

Add a constraint to RebarShapeDefinition.
public AddConstraint ( Type constraintType ) : ConstraintOnRebarShape
constraintType System.Type Type of constraint /// (the class must be subclass of ConstraintOnRebarShape).
Результат ConstraintOnRebarShape

AddParameter() публичный Метод

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)
Результат RebarShapeParameter

AllParameterTypes() публичный Метод

Return all the parameter types supported by RebarShape definition.
public AllParameterTypes ( ) : List
Результат List

AllowedConstraintTypes() публичный Метод

Return all the constraint types supported by RebarShapeDefinition.
public AllowedConstraintTypes ( ) : List
Результат List

Commit() публичный Метод

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
Результат void

RebarShapeDef() публичный Метод

Constructor, initialize the fields.
public RebarShapeDef ( RebarShapeDefinition shapeDef ) : System
shapeDef RebarShapeDefinition RebarShapeDefinition object to be wrapped
Результат System

Описание свойств

m_constraints защищенное свойство

All the dimensions will be added to RebarShapeDefinition.
protected List m_constraints
Результат List

m_parameters защищенное свойство

All the parameters will be added to RebarShapeDefinition.
protected List m_parameters
Результат List

m_rebarshapeDefinition защищенное свойство

RebarShape definition, the real object to be wrapped.
protected RebarShapeDefinition m_rebarshapeDefinition
Результат RebarShapeDefinition