Beispiel #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:
            case 8:
                base.Parse(propIndex, value, nestedIndex);
                return;

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

            case 10:
                _nominalDiameter = value.RealVal;
                return;

            case 11:
                _nominalLength = value.RealVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
 public IfcMechanicalFastenerType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcMechanicalFastenerTypeEnum __PredefinedType, IfcPositiveLengthMeasure?__NominalDiameter, IfcPositiveLengthMeasure?__NominalLength)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType  = __PredefinedType;
     this._NominalDiameter = __NominalDiameter;
     this._NominalLength   = __NominalLength;
 }
Beispiel #3
0
 public IfcMechanicalFastener(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcPositiveLengthMeasure nominalDiameter, IfcPositiveLengthMeasure nominalLength, IfcMechanicalFastenerTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     NominalDiameter = nominalDiameter;
     NominalLength   = nominalLength;
     PredefinedType  = predefinedType;
 }
 public IfcMechanicalFastenerType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcMechanicalFastenerTypeEnum predefinedType, IfcPositiveLengthMeasure nominalDiameter, IfcPositiveLengthMeasure nominalLength) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType  = predefinedType;
     NominalDiameter = nominalDiameter;
     NominalLength   = nominalLength;
 }
        }                                                               // optional


        /// <summary>
        /// Construct a IfcMechanicalFastenerType with all required attributes.
        /// </summary>
        public IfcMechanicalFastenerType(IfcGloballyUniqueId globalId, IfcMechanicalFastenerTypeEnum predefinedType) : base(globalId)
        {
            PredefinedType = predefinedType;
        }
Beispiel #6
0
		internal IfcMechanicalFastenerType(IfcMechanicalFastenerType t) : base(t) { mNominalDiameter = t.mNominalDiameter; mNominalLength = t.mNominalLength; mPredefinedType = t.mPredefinedType; }