コード例 #1
0
 public IfcBoundaryEdgeCondition(IfcLabel?__Name, IfcModulusOfTranslationalSubgradeReactionSelect __TranslationalStiffnessByLengthX, IfcModulusOfTranslationalSubgradeReactionSelect __TranslationalStiffnessByLengthY, IfcModulusOfTranslationalSubgradeReactionSelect __TranslationalStiffnessByLengthZ, IfcModulusOfRotationalSubgradeReactionSelect __RotationalStiffnessByLengthX, IfcModulusOfRotationalSubgradeReactionSelect __RotationalStiffnessByLengthY, IfcModulusOfRotationalSubgradeReactionSelect __RotationalStiffnessByLengthZ)
     : base(__Name)
 {
     this._TranslationalStiffnessByLengthX = __TranslationalStiffnessByLengthX;
     this._TranslationalStiffnessByLengthY = __TranslationalStiffnessByLengthY;
     this._TranslationalStiffnessByLengthZ = __TranslationalStiffnessByLengthZ;
     this._RotationalStiffnessByLengthX    = __RotationalStiffnessByLengthX;
     this._RotationalStiffnessByLengthY    = __RotationalStiffnessByLengthY;
     this._RotationalStiffnessByLengthZ    = __RotationalStiffnessByLengthZ;
 }
コード例 #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 1:
                _translationalStiffnessByLengthX = (IfcModulusOfTranslationalSubgradeReactionSelect)(value.EntityVal);
                return;

            case 2:
                _translationalStiffnessByLengthY = (IfcModulusOfTranslationalSubgradeReactionSelect)(value.EntityVal);
                return;

            case 3:
                _translationalStiffnessByLengthZ = (IfcModulusOfTranslationalSubgradeReactionSelect)(value.EntityVal);
                return;

            case 4:
                _rotationalStiffnessByLengthX = (IfcModulusOfRotationalSubgradeReactionSelect)(value.EntityVal);
                return;

            case 5:
                _rotationalStiffnessByLengthY = (IfcModulusOfRotationalSubgradeReactionSelect)(value.EntityVal);
                return;

            case 6:
                _rotationalStiffnessByLengthZ = (IfcModulusOfRotationalSubgradeReactionSelect)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }