C# 클래스 Revit.SDK.Samples.NewRebar.CS.RebarShapeDef

This class wraps RebarShapeDefinition object.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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