Exemple #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 8:
                _operationType = (IfcDoorStyleOperationEnum)System.Enum.Parse(typeof(IfcDoorStyleOperationEnum), value.EnumVal, true);
                return;

            case 9:
                _constructionType = (IfcDoorStyleConstructionEnum)System.Enum.Parse(typeof(IfcDoorStyleConstructionEnum), value.EnumVal, true);
                return;

            case 10:
                _parameterTakesPrecedence = value.BooleanVal;
                return;

            case 11:
                _sizeable = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #2
0
 public IfcDoorStyle(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcDoorStyleOperationEnum operationType, IfcDoorStyleConstructionEnum constructionType, IfcBoolean parameterTakesPrecedence, IfcBoolean sizeable) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag)
 {
     OperationType            = operationType;
     ConstructionType         = constructionType;
     ParameterTakesPrecedence = parameterTakesPrecedence;
     Sizeable = sizeable;
 }
Exemple #3
0
 /// <summary>
 /// Construct a IfcDoorStyle with all required attributes.
 /// </summary>
 public IfcDoorStyle(IfcGloballyUniqueId globalId, IfcDoorStyleOperationEnum operationType, IfcDoorStyleConstructionEnum constructionType, IfcBoolean parameterTakesPrecedence, IfcBoolean sizeable) : base(globalId)
 {
     OperationType            = operationType;
     ConstructionType         = constructionType;
     ParameterTakesPrecedence = parameterTakesPrecedence;
     Sizeable = sizeable;
 }
Exemple #4
0
 public IfcDoorStyle(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcDoorStyleOperationEnum __OperationType, IfcDoorStyleConstructionEnum __ConstructionType, IfcBoolean __ParameterTakesPrecedence, IfcBoolean __Sizeable)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag)
 {
     this._OperationType            = __OperationType;
     this._ConstructionType         = __ConstructionType;
     this._ParameterTakesPrecedence = __ParameterTakesPrecedence;
     this._Sizeable = __Sizeable;
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
                base.IfcParse(propIndex, value);
                break;

            case 8:
                _operationType =
                    (IfcDoorStyleOperationEnum)Enum.Parse(typeof(IfcDoorStyleOperationEnum), value.EnumVal, true);
                break;

            case 9:
                _constructionType =
                    (IfcDoorStyleConstructionEnum)
                    Enum.Parse(typeof(IfcDoorStyleConstructionEnum), value.EnumVal, true);
                break;

            case 10:
                _parameterTakesPrecedence = value.BooleanVal;
                break;

            case 11:
                _sizeable = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                    base.IfcParse(propIndex, value);
                    break;
                case 8:
                    _operationType =
                        (IfcDoorStyleOperationEnum) Enum.Parse(typeof (IfcDoorStyleOperationEnum), value.EnumVal, true);
                    break;
                case 9:
                    _constructionType =
                        (IfcDoorStyleConstructionEnum)
                        Enum.Parse(typeof (IfcDoorStyleConstructionEnum), value.EnumVal, true);
                    break;
                case 10:
                    _parameterTakesPrecedence = value.BooleanVal;
                    break;
                case 11:
                    _sizeable = value.BooleanVal;
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }