Example #1
0
 public IfcReinforcingBar(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcLabel steelGrade, IfcPositiveLengthMeasure nominalDiameter, IfcAreaMeasure crossSectionArea, IfcPositiveLengthMeasure barLength, IfcReinforcingBarTypeEnum predefinedType, IfcReinforcingBarSurfaceEnum barSurface) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag, steelGrade)
 {
     NominalDiameter  = nominalDiameter;
     CrossSectionArea = crossSectionArea;
     BarLength        = barLength;
     PredefinedType   = predefinedType;
     BarSurface       = barSurface;
 }
 public IfcReinforcingBarType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcReinforcingBarTypeEnum predefinedType, IfcPositiveLengthMeasure nominalDiameter, IfcAreaMeasure crossSectionArea, IfcPositiveLengthMeasure barLength, IfcReinforcingBarSurfaceEnum barSurface, IfcLabel bendingShapeCode, List <IfcBendingParameterSelect> bendingParameters) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType    = predefinedType;
     NominalDiameter   = nominalDiameter;
     CrossSectionArea  = crossSectionArea;
     BarLength         = barLength;
     BarSurface        = barSurface;
     BendingShapeCode  = bendingShapeCode;
     BendingParameters = bendingParameters;
 }
Example #3
0
 public IfcReinforcingBarType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcReinforcingBarTypeEnum __PredefinedType, IfcPositiveLengthMeasure?__NominalDiameter, IfcAreaMeasure?__CrossSectionArea, IfcPositiveLengthMeasure?__BarLength, IfcReinforcingBarSurfaceEnum?__BarSurface, IfcLabel?__BendingShapeCode, IfcBendingParameterSelect[] __BendingParameters)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType    = __PredefinedType;
     this._NominalDiameter   = __NominalDiameter;
     this._CrossSectionArea  = __CrossSectionArea;
     this._BarLength         = __BarLength;
     this._BarSurface        = __BarSurface;
     this._BendingShapeCode  = __BendingShapeCode;
     this._BendingParameters = new List <IfcBendingParameterSelect>(__BendingParameters);
 }
        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 = (IfcReinforcingBarTypeEnum)System.Enum.Parse(typeof(IfcReinforcingBarTypeEnum), value.EnumVal, true);
                return;

            case 10:
                _nominalDiameter = value.RealVal;
                return;

            case 11:
                _crossSectionArea = value.RealVal;
                return;

            case 12:
                _barLength = value.RealVal;
                return;

            case 13:
                _barSurface = (IfcReinforcingBarSurfaceEnum)System.Enum.Parse(typeof(IfcReinforcingBarSurfaceEnum), value.EnumVal, true);
                return;

            case 14:
                _bendingShapeCode = value.StringVal;
                return;

            case 15:
                _bendingParameters.InternalAdd((IfcBendingParameterSelect)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #5
0
		public IfcReinforcingBarType(DatabaseIfc m, string name, IfcReinforcingBarTypeEnum type, double diameter, double area, double length, IfcReinforcingBarSurfaceEnum surface, string shapecode, List<IfcBendingParameterSelect> bends)
			: base(m)
		{
			Name = name;
			mPredefinedType = type;
			mNominalDiameter = diameter;
			mCrossSectionArea = area;
			mBarLength = length;
			mBarSurface = surface;
			if (!string.IsNullOrEmpty(shapecode))
				mBendingShapeCode = shapecode;
			if (bends != null && bends.Count > 0)
				mBendingParameters.AddRange(bends);
		}
Example #6
0
		internal IfcReinforcingBarType(IfcReinforcingBarType t)
			: base(t)
		{
			mPredefinedType = t.mPredefinedType;
			mNominalDiameter = t.mNominalDiameter;
			mCrossSectionArea = t.mCrossSectionArea;
			mBarLength = t.mBarLength;
			mBarSurface = t.mBarSurface;
			mBendingShapeCode = t.mBendingShapeCode;
			mBendingParameters.AddRange(t.mBendingParameters);
		}
Example #7
0
		internal IfcReinforcingBar(IfcReinforcingBar b) : base(b)
		{
			mNominalDiameter = b.mNominalDiameter;
			mCrossSectionArea = b.mCrossSectionArea;
			mBarLength = b.mBarLength;
			mPredefinedType = b.mPredefinedType;
			mBarSurface = b.mBarSurface;
		}
        }                                                                          // optional


        /// <summary>
        /// Construct a IfcReinforcingBarType with all required attributes.
        /// </summary>
        public IfcReinforcingBarType(IfcGloballyUniqueId globalId, IfcReinforcingBarTypeEnum predefinedType) : base(globalId)
        {
            BendingParameters = new List <IfcBendingParameterSelect>();

            PredefinedType = predefinedType;
        }