Пример #1
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string boltStandard, string boltType, string boltGrade,

            double?boltDiameter, double?boltLength, bool?boltFiledAssembled)
        {
            if (BbPropertySet == null)
            {
                BbPropertySet = bbPropertySet;
            }
            if (!string.IsNullOrWhiteSpace(boltStandard))
            {
                BoltStandard = boltStandard;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltStandard", BoltStandard, true));
            }

            if (!string.IsNullOrEmpty(boltGrade))
            {
                BoltGrade.Add(boltGrade);
                bbPropertySet.AddProperty(BbListProperty.Create("BoltGrade", boltGrade, typeof(IfcLabel)));
            }


            if (!string.IsNullOrWhiteSpace(boltType))
            {
                BoltType = boltType;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltType", BoltType, true));
            }


            if (boltDiameter != null)
            {
                BoltDiameter = boltDiameter.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltDiameter", BoltDiameter, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                BoltDiameter = 0.0;
            }

            if (boltFiledAssembled != null)
            {
                BoltFiledAssembled = boltFiledAssembled.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltFiledAssembled", BoltFiledAssembled));
            }
            else
            {
                BoltDiameter = 0.0;
            }

            if (boltLength != null)
            {
                BoltLength = boltLength.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltLength", BoltLength, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                BoltLength = 0.0;
            }
        }
Пример #2
0
        BbPieceIdentity(
            //string name,
            string indicationMark,
            string pieceMark,
            string prelimMark,
            string barCode,
            bool isMainPiece)
        {
            //Name = name;
            IndicationMark = indicationMark;
            PieceMark      = pieceMark;
            PrelimMark     = prelimMark;
            BarCode        = barCode;

            BbPropertySet = BbPropertySet.Create("PieceIdentificationProperty");
            if (!string.IsNullOrWhiteSpace(indicationMark))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("IndicationMark", indicationMark, true));
            }
            if (!string.IsNullOrWhiteSpace(pieceMark))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("PieceMark", pieceMark, true));
            }
            if (!string.IsNullOrWhiteSpace(prelimMark))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("PrelimMark", prelimMark, true));
            }
            if (!string.IsNullOrWhiteSpace(barCode))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("BarCode", barCode, true));
            }
            BbPropertySet.AddProperty(BbSingleProperty.Create("MainPieceTag", isMainPiece));
        }
Пример #3
0
        public void AddMaterialProperty(
            BbPropertySet bbPropertySet,
            string materialID,
            string materialCert,
            string materialGrade,
            string materialType)
        {
            BbPropertySet = bbPropertySet;
            MaterialID    = materialID;
            MaterialCert  = materialCert;
            MaterialGrade = materialGrade;
            MaterialType  = materialType;

            if (!string.IsNullOrWhiteSpace(materialID))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material ID", materialID, true));
            }
            if (!string.IsNullOrWhiteSpace(materialCert))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Certification", materialCert, true));
            }
            if (!string.IsNullOrWhiteSpace(materialGrade))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Grade", materialGrade, true));
            }
            if (!string.IsNullOrWhiteSpace(materialType))
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Type", materialType, true));
            }
        }
Пример #4
0
        public static BbPropertySet Create(string name)
        {
            var pset = new BbPropertySet(name);

            BbInstanceDB.AddToExport(pset);
            return(pset);
        }
Пример #5
0
        protected BbStatus(
            BbPropertySet bbPropertySet,
            string status,
            string changeStatus,
            bool?approved
            )
        {
            BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(status))
            {
                Status = status;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Status", Status, true));
            }

            if (!string.IsNullOrWhiteSpace(changeStatus))
            {
                ChangeStatus = changeStatus;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("ChangeStatus", ChangeStatus, true));
            }
            if (approved != null)
            {
                Approved = approved.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Approved", Approved));
            }
        }
Пример #6
0
        protected BbStatus(
            BbPropertySet bbPropertySet,
            string status,
            string changeStatus,
            bool? approved
            )
        {
            BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(status))
            {
                Status = status;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Status", Status, true));
            }

            if (!string.IsNullOrWhiteSpace(changeStatus))
            {
                ChangeStatus = changeStatus;
            bbPropertySet.AddProperty(BbPropertyEnumerated.Create("ChangeStatus", ChangeStatus, true));
            }
            if (approved != null)
            {
                Approved = approved.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Approved", Approved));
            }
        }
Пример #7
0
 public static BbLayoutTolerance Create(
    BbPropertySet bbPropertySet,
     double tolerance)
 {
     var ai = new BbLayoutTolerance(
         bbPropertySet,
      tolerance);
     return ai;
 }
Пример #8
0
 public static BbVersion Create(
    BbPropertySet bbPropertySet,
     string versionNumber)
 {
     var ai = new BbVersion(
         bbPropertySet,
      versionNumber);
     return ai;
 }
 public static BbSurfaceTreatmentProperty Create(
    BbPropertySet bbPropertySet,
     List<string> sequentialOrders)
 {
     var ai = new BbSurfaceTreatmentProperty(
         bbPropertySet,
      sequentialOrders);
     return ai;
 }
Пример #10
0
        public static BbSkewedEnd Create(BbElement hostElement,
                                         BbPosition3D position3D,
                                         BbPropertySet bbPropertySet, double skewedAngleX, double skewedAngleY)
        {
            var cutSkewedEnd = new BbSkewedEnd(hostElement, position3D);

            cutSkewedEnd.AddSkewedEndProperty(bbPropertySet, skewedAngleX, skewedAngleY);
            BbInstanceDB.AddToExport(cutSkewedEnd);
            return(cutSkewedEnd);
        }
Пример #11
0
        public static BbSurfaceTreatmentProperty Create(
            BbPropertySet bbPropertySet,
            List <string> sequentialOrders)
        {
            var ai = new BbSurfaceTreatmentProperty(
                bbPropertySet,
                sequentialOrders);

            return(ai);
        }
Пример #12
0
 public void AddRectangleOpeningProperty(BbPropertySet bbPropertySet, string featureSubType,
                                         double rectangleOpeningWidth,
                                         double rectangleOpeningHeight,
                                         double rectangleOpeningRoundRadius)
 {
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningWidth", rectangleOpeningWidth, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningHeight", rectangleOpeningHeight, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningRoundRadius", rectangleOpeningRoundRadius, typeof(IfcPositiveLengthMeasure)));
 }
Пример #13
0
        public static BbLayoutTolerance Create(
            BbPropertySet bbPropertySet,
            double tolerance)
        {
            var ai = new BbLayoutTolerance(
                bbPropertySet,
                tolerance);

            return(ai);
        }
Пример #14
0
 public static BbDrawingNumber Create(
    BbPropertySet bbPropertySet,
     List<string> drawingNumbers
     )
 {
     var ai = new BbDrawingNumber(
         bbPropertySet,
      drawingNumbers);
     return ai;
 }
Пример #15
0
        public static BbVersion Create(
            BbPropertySet bbPropertySet,
            string versionNumber)
        {
            var ai = new BbVersion(
                bbPropertySet,
                versionNumber);

            return(ai);
        }
Пример #16
0
 public void AddRectangleOpeningProperty(BbPropertySet bbPropertySet, string featureSubType,
                                 double rectangleOpeningWidth,
                                 double rectangleOpeningHeight,
                                 double rectangleOpeningRoundRadius)
 {
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningWidth", rectangleOpeningWidth, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningHeight", rectangleOpeningHeight, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("RectangleOpeningRoundRadius", rectangleOpeningRoundRadius, typeof(IfcPositiveLengthMeasure)));
 }
Пример #17
0
 public void AddSlottedHoleProperty(BbPropertySet bbPropertySet, string featureSubType,
                                    double slotHoleCenterToCenter,
                                    double slotHoleLength,
                                    double slotHoleWidth)
 {
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleCenterToCenter", slotHoleCenterToCenter, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleLength", slotHoleLength, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleWidth", slotHoleWidth, typeof(IfcPositiveLengthMeasure)));
 }
Пример #18
0
        protected BbCastellation(
            BbPropertySet bbPropertySet,
            string castellationType,
            double castellationEndPostWidth1,
            double castellationEndPostWidth2,
            double castellationSpacing,
            double castellationHeight,
            double castellationWidth,
            double castellationDepth
            )
        {
            BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(castellationType))
            {
                CastellationType = castellationType;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Castellation Type", CastellationType, true));
            }

            if (!double.IsPositiveInfinity(castellationEndPostWidth1))
            {
                CastellationEndPostWidth1 = castellationEndPostWidth1;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation End Post Width1", CastellationEndPostWidth1, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationEndPostWidth2))
            {
                CastellationEndPostWidth2 = castellationEndPostWidth2;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation End Post Width2", CastellationEndPostWidth2, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationSpacing))
            {
                CastellationSpacing = castellationSpacing;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Spacing", CastellationSpacing, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationHeight))
            {
                CastellationHeight = castellationHeight;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Height", CastellationHeight, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationWidth))
            {
                CastellationWidth = castellationWidth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Width", CastellationWidth, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationDepth))
            {
                CastellationDepth = castellationDepth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Depth", CastellationDepth, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #19
0
        protected BbBoltHoleProperties(
            BbPropertySet bbPropertySet,
            string fabricationMethod,
            string criticalFace,
            string designConstraint,
            string featureSubTypes,
            double boltHoleDiameter,
            bool?partialHoleIndicator,
            double partialHoleDepth
            )
        {
            BbPropertySet = bbPropertySet;

            if (!string.IsNullOrWhiteSpace(fabricationMethod))
            {
                FabricationMethod = fabricationMethod;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Fabrication Method", FabricationMethod, true));
            }

            if (!string.IsNullOrWhiteSpace(criticalFace))
            {
                CriticalFace = criticalFace;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Critical Face", CriticalFace, true));
            }

            if (!string.IsNullOrWhiteSpace(designConstraint))
            {
                DesignConstraint = designConstraint;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Design Constraint", DesignConstraint, true));
            }

            if (!string.IsNullOrWhiteSpace(featureSubTypes))
            {
                FeatureSubTypes = featureSubTypes;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Feature Sub Types", FeatureSubTypes, true));
            }

            if (!double.IsPositiveInfinity(boltHoleDiameter))
            {
                BoltHoleDiameter = boltHoleDiameter;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Bolt Hole Diameter", BoltHoleDiameter, typeof(IfcPositiveLengthMeasure)));
            }
            if (partialHoleIndicator != null)
            {
                PartialHoleIndicator = partialHoleIndicator.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Partial Hole Indicator", PartialHoleIndicator));
            }

            if (!double.IsPositiveInfinity(partialHoleDepth) && partialHoleDepth > 0)
            {
                PartialHoleDepth = partialHoleDepth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Partial Hole Depth", PartialHoleDepth, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #20
0
        public static BbDrawingNumber Create(
            BbPropertySet bbPropertySet,
            List <string> drawingNumbers
            )
        {
            var ai = new BbDrawingNumber(
                bbPropertySet,
                drawingNumbers);

            return(ai);
        }
Пример #21
0
        protected BbCastellation(
            BbPropertySet bbPropertySet,
            string castellationType,
            double castellationEndPostWidth1,
            double castellationEndPostWidth2,
            double castellationSpacing,
            double castellationHeight,
            double castellationWidth,
            double castellationDepth
            )
        {
            BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(castellationType))
            {
                CastellationType = castellationType;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Castellation Type", CastellationType, true));
            }

            if (!double.IsPositiveInfinity(castellationEndPostWidth1))
            {
                CastellationEndPostWidth1 = castellationEndPostWidth1;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation End Post Width1", CastellationEndPostWidth1, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationEndPostWidth2))
            {
                CastellationEndPostWidth2 = castellationEndPostWidth2;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation End Post Width2", CastellationEndPostWidth2, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationSpacing))
            {
                CastellationSpacing = castellationSpacing;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Spacing", CastellationSpacing, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationHeight))
            {
                CastellationHeight = castellationHeight;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Height", CastellationHeight, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationWidth))
            {
                CastellationWidth = castellationWidth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Width", CastellationWidth, typeof(IfcPositiveLengthMeasure)));
            }

            if (!double.IsPositiveInfinity(castellationDepth))
            {
                CastellationDepth = castellationDepth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Castellation Depth", CastellationDepth, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #22
0
        protected BbBoltHoleProperties(
            BbPropertySet bbPropertySet,
            string fabricationMethod,
            string criticalFace,
            string designConstraint,
            string featureSubTypes,
            double boltHoleDiameter,
            bool? partialHoleIndicator,
            double partialHoleDepth
            )
        {
            BbPropertySet = bbPropertySet;

            if (!string.IsNullOrWhiteSpace(fabricationMethod))
            {
                FabricationMethod = fabricationMethod;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Fabrication Method", FabricationMethod, true));
            }

            if (!string.IsNullOrWhiteSpace(criticalFace))
            {
                CriticalFace = criticalFace;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Critical Face", CriticalFace, true));
            }

            if (!string.IsNullOrWhiteSpace(designConstraint))
            {
                DesignConstraint = designConstraint;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Design Constraint", DesignConstraint, true));
            }

            if (!string.IsNullOrWhiteSpace(featureSubTypes))
            {
                FeatureSubTypes = featureSubTypes;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("Feature Sub Types", FeatureSubTypes, true));
            }

            if (!double.IsPositiveInfinity(boltHoleDiameter))
            {
                BoltHoleDiameter = boltHoleDiameter;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Bolt Hole Diameter", BoltHoleDiameter, typeof(IfcPositiveLengthMeasure)));
            }
            if (partialHoleIndicator != null)
            {
                PartialHoleIndicator = partialHoleIndicator.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Partial Hole Indicator", PartialHoleIndicator));
            }

            if (!double.IsPositiveInfinity(partialHoleDepth) && partialHoleDepth > 0)
            {
                PartialHoleDepth = partialHoleDepth;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Partial Hole Depth", PartialHoleDepth, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #23
0
 protected BbVersion(
     BbPropertySet bbPropertySet,
     string versionNumber
     )
 {
     BbPropertySet = bbPropertySet;
     if (!string.IsNullOrWhiteSpace(versionNumber))
     {
         VersionNumber = versionNumber;
         bbPropertySet.AddProperty(BbSingleProperty.Create("VersionNumber", VersionNumber, true));
     }
 }
Пример #24
0
 protected BbVersion(
     BbPropertySet bbPropertySet,
     string versionNumber
     )
 {
     BbPropertySet = bbPropertySet;
     if (!string.IsNullOrWhiteSpace(versionNumber))
     {
         VersionNumber = versionNumber;
         bbPropertySet.AddProperty(BbSingleProperty.Create("VersionNumber", VersionNumber, true));
     }
 }
Пример #25
0
        protected BbLayoutTolerance(
            BbPropertySet bbPropertySet,
            double tolerance
            )
        {
            BbPropertySet = bbPropertySet;

            if (!double.IsPositiveInfinity(tolerance))
            {
                Tolerance = tolerance;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Tolerance", Tolerance, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #26
0
        protected BbLayoutTolerance(
            BbPropertySet bbPropertySet,
            double tolerance
            )
        {
            BbPropertySet = bbPropertySet;

            if (!double.IsPositiveInfinity(tolerance))
            {
                Tolerance = tolerance;
                bbPropertySet.AddProperty(BbSingleProperty.Create("Tolerance", Tolerance, typeof(IfcPositiveLengthMeasure)));
            }
        }
Пример #27
0
 public static BbSchedule Create(
    BbPropertySet bbPropertySet,
     string phaseSequence,
     string sequenceLevel,
     DateTime onSiteBy)
 {
     var ai = new BbSchedule(
         bbPropertySet,
      phaseSequence,
      sequenceLevel,
      onSiteBy);
     return ai;
 }
Пример #28
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bbPropertySet"></param>
        /// <param name="status">One of "Default", "ReadyForProcurement", "ReadyForMill", "IssuedForFabrication"</param>
        /// <param name="changeStatus">One of "Default", "Changed", "Deleted"</param>
        /// <param name="approved"></param>
        /// <returns></returns>
        public static BbStatus Create(
            BbPropertySet bbPropertySet,
            string status,
            string changeStatus,
            bool?approved)
        {
            var ai = new BbStatus(
                bbPropertySet,
                status,
                changeStatus,
                approved);

            return(ai);
        }
Пример #29
0
 protected BbDrawingNumber(
     BbPropertySet bbPropertySet,
     List<string> drawingNumbers)
 {
     BbPropertySet = bbPropertySet;
     foreach (var drawingNumber in drawingNumbers)
     {
         if (!string.IsNullOrWhiteSpace(drawingNumber))
         {
             DrawingNumber.Add(drawingNumber);
         }
     }
     bbPropertySet.AddProperty(BbListProperty.Create("Drawing Number", DrawingNumber, typeof(IfcIdentifier)));
 }
Пример #30
0
 protected BbDrawingNumber(
     BbPropertySet bbPropertySet,
     List <string> drawingNumbers)
 {
     BbPropertySet = bbPropertySet;
     foreach (var drawingNumber in drawingNumbers)
     {
         if (!string.IsNullOrWhiteSpace(drawingNumber))
         {
             DrawingNumber.Add(drawingNumber);
         }
     }
     bbPropertySet.AddProperty(BbListProperty.Create("Drawing Number", DrawingNumber, typeof(IfcIdentifier)));
 }
Пример #31
0
        public static BbSchedule Create(
            BbPropertySet bbPropertySet,
            string phaseSequence,
            string sequenceLevel,
            DateTime onSiteBy)
        {
            var ai = new BbSchedule(
                bbPropertySet,
                phaseSequence,
                sequenceLevel,
                onSiteBy);

            return(ai);
        }
Пример #32
0
 public static BbRectangleOpening Create(BbElement hostElement,
                      BbCoordinate2D position,
                      double width,
                      double height,
                      SemHoleLocation location,
                      bool through,
                      BbPropertySet bbPropertySet,
                      string featureSubType,
                      double rectangleOpeningRoundRadius)
 {
     var hole = new BbRectangleOpening(hostElement, position, width, height, location, through);
     hole.AddRectangleOpeningProperty(bbPropertySet, featureSubType, width, height, rectangleOpeningRoundRadius);
     BbInstanceDB.AddToExport(hole);
     return hole;
 }
Пример #33
0
        BbWeldProperties(double throatThickness, double legLength)
        {
            ThroatThickness = throatThickness;
            LegLength       = legLength;

            BbPropertySet = BbPropertySet.Create("WeldProperties");
            if (ThroatThickness > 0)
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Throat Thickness", ThroatThickness, typeof(IFC2X3.IfcLengthMeasure)));
            }
            if (LegLength > 0)
            {
                BbPropertySet.AddProperty(BbSingleProperty.Create("Leg Length", LegLength, typeof(IFC2X3.IfcLengthMeasure)));
            }
        }
        protected BbSurfaceTreatmentProperty(
            BbPropertySet bbPropertySet,
            List<string> sequentialOrders)
        {
            BbPropertySet = bbPropertySet;
            foreach (var sequentialOrder in sequentialOrders)
            {
                if (!string.IsNullOrWhiteSpace(sequentialOrder))
                {
                    SequentialOrder.Add(sequentialOrder);
                }
            }

            bbPropertySet.AddProperty(BbListProperty.Create("Sequential Order", SequentialOrder, typeof(IfcIdentifier)));
        }
Пример #35
0
        protected BbSurfaceTreatmentProperty(
            BbPropertySet bbPropertySet,
            List <string> sequentialOrders)
        {
            BbPropertySet = bbPropertySet;
            foreach (var sequentialOrder in sequentialOrders)
            {
                if (!string.IsNullOrWhiteSpace(sequentialOrder))
                {
                    SequentialOrder.Add(sequentialOrder);
                }
            }

            bbPropertySet.AddProperty(BbListProperty.Create("Sequential Order", SequentialOrder, typeof(IfcIdentifier)));
        }
Пример #36
0
        public static BbMaterial Create(string name,
                                        BbPropertySet bbPropertySet,
                                        string materialID,
                                        string materialCert,
                                        string materialGrade,
                                        string materialType)
        {
            var material = new BbMaterial(name);

            material.AddMaterialProperty(bbPropertySet, materialID, materialCert, materialGrade, materialType);

            BbInstanceDB.AddToExport(material);

            return(material);
        }
Пример #37
0
 public static BbDrillHoleProperty Create(
    BbPropertySet bbPropertySet,
     string featureSubType,
     double boltHoleDiameter,
     bool partialHoleIndicator,
     double partialHoleDepth)
 {
     var dh = new BbDrillHoleProperty(
         bbPropertySet,
      featureSubType,
     boltHoleDiameter,
     partialHoleIndicator,
     partialHoleDepth);
     return dh;
 }
Пример #38
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string nutStandard, string nutType,

            double?nutSize, int?boltAssemblySequentialOrder, bool?headSideNut)
        {
            if (BbPropertySet == null)
            {
                BbPropertySet = bbPropertySet;
            }
            if (!string.IsNullOrWhiteSpace(nutStandard))
            {
                NutStandard = nutStandard;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutStandard", NutStandard, true));
            }



            if (!string.IsNullOrWhiteSpace(nutType))
            {
                NutType = nutType;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutType", NutType, true));
            }


            if (nutSize != null)
            {
                NutSize = nutSize.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutSize", NutSize, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                NutSize = 0.0;
            }

            if (headSideNut != null)
            {
                HeadSideNut = headSideNut.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("HeadSideNut", HeadSideNut));
            }


            if (boltAssemblySequentialOrder != null)
            {
                BoltAssemblySequentialOrder = boltAssemblySequentialOrder.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutSequentialOrder", BoltAssemblySequentialOrder, typeof(IfcInteger)));
            }
        }
Пример #39
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string washerStandard, string washerType,

            double?washerSize, int?washerSequentialOrder, bool?headSideWasher)
        {
            if (BbPropertySet == null)
            {
                BbPropertySet = bbPropertySet;
            }
            if (!string.IsNullOrWhiteSpace(washerStandard))
            {
                WasherStandard = washerStandard;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WasherStandard", WasherStandard, true));
            }



            if (!string.IsNullOrWhiteSpace(washerType))
            {
                WasherType = washerType;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WasherType", WasherType, true));
            }


            if (washerSize != null)
            {
                WasherSize = washerSize.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WasherSize", WasherSize, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WasherSize = 0.0;
            }

            if (headSideWasher != null)
            {
                HeadSideWasher = headSideWasher.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("HeadSideNut", HeadSideWasher));
            }


            if (washerSequentialOrder != null)
            {
                WasherSequentialOrder = washerSequentialOrder.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WasherSequentialOrder", WasherSequentialOrder, typeof(IfcInteger)));
            }
        }
Пример #40
0
        public static BbDrillHoleProperty Create(
            BbPropertySet bbPropertySet,
            string featureSubType,
            double boltHoleDiameter,
            bool partialHoleIndicator,
            double partialHoleDepth)
        {
            var dh = new BbDrillHoleProperty(
                bbPropertySet,
                featureSubType,
                boltHoleDiameter,
                partialHoleIndicator,
                partialHoleDepth);

            return(dh);
        }
Пример #41
0
        public static BbRectangleOpening Create(BbElement hostElement,
                                                BbCoordinate2D position,
                                                double width,
                                                double height,
                                                SemHoleLocation location,
                                                bool through,
                                                BbPropertySet bbPropertySet,
                                                string featureSubType,
                                                double rectangleOpeningRoundRadius)
        {
            var hole = new BbRectangleOpening(hostElement, position, width, height, location, through);

            hole.AddRectangleOpeningProperty(bbPropertySet, featureSubType, width, height, rectangleOpeningRoundRadius);
            BbInstanceDB.AddToExport(hole);
            return(hole);
        }
Пример #42
0
 protected BbDrillHoleProperty(
     BbPropertySet bbPropertySet,
     string featureSubType,
     double boltHoleDiameter,
     bool partialHoleIndicator,
     double partialHoleDepth
     )
 {
     BoltHoleDiameter     = boltHoleDiameter;
     PartialHoleIndicator = partialHoleIndicator;
     PartialHoleDepth     = partialHoleDepth;
     BbPropertySet        = bbPropertySet;
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("BoltHoleDiameter", boltHoleDiameter, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("PartialHoleIndicator", partialHoleIndicator));
     bbPropertySet.AddProperty(BbSingleProperty.Create("PartialHoleDepth", partialHoleDepth, typeof(IfcPositiveLengthMeasure)));
 }
Пример #43
0
 protected BbDrillHoleProperty(
     BbPropertySet bbPropertySet,
     string featureSubType,
     double boltHoleDiameter,
     bool partialHoleIndicator,
     double partialHoleDepth
     )
 {
     BoltHoleDiameter = boltHoleDiameter;
     PartialHoleIndicator = partialHoleIndicator;
     PartialHoleDepth = partialHoleDepth;
     BbPropertySet = bbPropertySet;
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("BoltHoleDiameter", boltHoleDiameter, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("PartialHoleIndicator", partialHoleIndicator));
     bbPropertySet.AddProperty(BbSingleProperty.Create("PartialHoleDepth", partialHoleDepth, typeof(IfcPositiveLengthMeasure)));
 }
Пример #44
0
 public static BbSlottedHole Create(
     BbElement hostElement,
     BbCoordinate2D position,
     double centerToCenter,
     double radius,
     BbDirection2D refDirection,
     SemHoleLocation location,
     bool through,
     BbPropertySet bbPropertySet,
     string featureSubType
     )
 {
     var sl = new BbSlottedHole(hostElement, position, centerToCenter, radius, refDirection, location, through);
     sl.AddSlottedHoleProperty(bbPropertySet, featureSubType, centerToCenter, centerToCenter + (radius * 2), radius);
     BbInstanceDB.AddToExport(sl);
     return sl;
 }
Пример #45
0
        public static BbSlottedHole Create(
            BbElement hostElement,
            BbCoordinate2D position,
            double centerToCenter,
            double radius,
            BbDirection2D refDirection,
            SemHoleLocation location,
            bool through,
            BbPropertySet bbPropertySet,
            string featureSubType
            )
        {
            var sl = new BbSlottedHole(hostElement, position, centerToCenter, radius, refDirection, location, through);

            sl.AddSlottedHoleProperty(bbPropertySet, featureSubType, centerToCenter, centerToCenter + (radius * 2), radius);
            BbInstanceDB.AddToExport(sl);
            return(sl);
        }
Пример #46
0
        public static BbBoltHoleProperties Create(
            BbPropertySet bbPropertySet,
            string fabricationMethod,
            string criticalFace,
            string designConstraint,
            string featureSubTypes,
            double boltHoleDiameter,
            bool?partialHoleIndicator,
            double partialHoleDepth)
        {
            var ai = new BbBoltHoleProperties(
                bbPropertySet,
                fabricationMethod,
                criticalFace,
                designConstraint,
                featureSubTypes,
                boltHoleDiameter,
                partialHoleIndicator,
                partialHoleDepth);

            return(ai);
        }
Пример #47
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bbPropertySet"></param>
        /// <param name="status">One of "Default", "ReadyForProcurement", "ReadyForMill", "IssuedForFabrication"</param>
        /// <param name="changeStatus">One of "Default", "Changed", "Deleted"</param>
        /// <param name="approved"></param>
        /// <returns></returns>
        public static BbCastellation Create(
            BbPropertySet bbPropertySet,
            string castellationType,
            double castellationEndPostWidth1,
            double castellationEndPostWidth2,
            double castellationSpacing,
            double castellationHeight,
            double castellationWidth,
            double castellationDepth)
        {
            var ai = new BbCastellation(
                bbPropertySet,
                castellationType,
                castellationEndPostWidth1,
                castellationEndPostWidth2,
                castellationSpacing,
                castellationHeight,
                castellationWidth,
                castellationDepth);

            return(ai);
        }
Пример #48
0
        protected BbSchedule(
            BbPropertySet bbPropertySet,
            string phaseSequence,
            string sequenceLevel,
            DateTime onSiteBy
            )
        {
            BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(phaseSequence))
            {
                PhaseSequence = phaseSequence;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("PhaseSequence", PhaseSequence, true));
            }

            if (!string.IsNullOrWhiteSpace(sequenceLevel))
            {
                SequenceLevel = sequenceLevel;
                bbPropertySet.AddProperty(BbPropertyEnumerated.Create("SequenceLevel", SequenceLevel, true));
            }

                OnSiteBy = onSiteBy;
                bbPropertySet.AddProperty(BbSingleProperty.Create("OnSiteBy", OnSiteBy));
        }
Пример #49
0
 public void AddSlottedHoleProperty(BbPropertySet bbPropertySet, string featureSubType,
                                     double slotHoleCenterToCenter,
                                     double slotHoleLength,
                                     double slotHoleWidth)
 {
     bbPropertySet.AddProperty(BbPropertyEnumerated.Create("FeatureSubtype", featureSubType, true));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleCenterToCenter", slotHoleCenterToCenter, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleLength", slotHoleLength, typeof(IfcPositiveLengthMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SlotHoleWidth", slotHoleWidth, typeof(IfcPositiveLengthMeasure)));
 }
Пример #50
0
 public static BbSkewedEnd Create(BbElement hostElement,
                        BbPosition3D position3D,
                        BbPropertySet bbPropertySet, double skewedAngleX, double skewedAngleY)
 {
     var cutSkewedEnd = new BbSkewedEnd(hostElement, position3D);
     cutSkewedEnd.AddSkewedEndProperty(bbPropertySet, skewedAngleX, skewedAngleY);
     BbInstanceDB.AddToExport(cutSkewedEnd);
     return cutSkewedEnd;
 }
Пример #51
0
 public static BbBoltHoleProperties Create(
    BbPropertySet bbPropertySet,
     string fabricationMethod,
     string criticalFace,
     string designConstraint,
     string featureSubTypes,
     double boltHoleDiameter,
     bool? partialHoleIndicator,
     double partialHoleDepth)
 {
     var ai = new BbBoltHoleProperties(
         bbPropertySet,
         fabricationMethod,
         criticalFace,
         designConstraint,
         featureSubTypes,
         boltHoleDiameter,
         partialHoleIndicator,
         partialHoleDepth);
     return ai;
 }
Пример #52
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="bbPropertySet"></param>
 /// <param name="status">One of "Default", "ReadyForProcurement", "ReadyForMill", "IssuedForFabrication"</param>
 /// <param name="changeStatus">One of "Default", "Changed", "Deleted"</param>
 /// <param name="approved"></param>
 /// <returns></returns>
 public static BbCastellation Create(
    BbPropertySet bbPropertySet,
     string castellationType,
     double castellationEndPostWidth1,
     double castellationEndPostWidth2,
     double castellationSpacing,
     double castellationHeight,
     double castellationWidth,
     double castellationDepth)
 {
     var ai = new BbCastellation(
         bbPropertySet,
         castellationType,
         castellationEndPostWidth1,
         castellationEndPostWidth2,
         castellationSpacing,
         castellationHeight,
         castellationWidth,
         castellationDepth);
     return ai;
 }
Пример #53
0
 public void AddSkewedEndProperty(BbPropertySet bbPropertySet, double skewedAngleX, double skewedAngleY)
 {
     bbPropertySet.AddProperty(BbSingleProperty.Create("SkewedAngleX", skewedAngleX, typeof(IfcPositivePlaneAngleMeasure)));
     bbPropertySet.AddProperty(BbSingleProperty.Create("SkewedAngleY", skewedAngleY, typeof(IfcPositivePlaneAngleMeasure)));
 }
Пример #54
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string boltStandard, string boltType, string boltGrade,

            double? boltDiameter, double? boltLength, bool? boltFiledAssembled)
        {
            if (BbPropertySet == null)
                BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(boltStandard))
            {
                BoltStandard = boltStandard;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltStandard", BoltStandard, true));
            }

            if (!string.IsNullOrEmpty(boltGrade))
            {
                BoltGrade.Add(boltGrade);
                bbPropertySet.AddProperty(BbListProperty.Create("BoltGrade", boltGrade, typeof(IfcLabel)));
            }

            if (!string.IsNullOrWhiteSpace(boltType))
            {
                BoltType = boltType;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltType", BoltType, true));
            }

            if (boltDiameter != null)
            {
                BoltDiameter = boltDiameter.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltDiameter", BoltDiameter, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                BoltDiameter = 0.0;
            }

            if (boltFiledAssembled != null)
            {
                BoltFiledAssembled = boltFiledAssembled.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltFiledAssembled", BoltFiledAssembled));
            }
            else
            {
                BoltDiameter = 0.0;
            }

            if (boltLength != null)
            {
                BoltLength = boltLength.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("BoltLength", BoltLength, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                BoltLength = 0.0;
            }
        }
Пример #55
0
        public void AddMaterialProperty(
            BbPropertySet bbPropertySet,
            string materialID,
                                        string materialCert,
                                        string materialGrade,
                                        string materialType)
        {
            BbPropertySet = bbPropertySet;
            MaterialID = materialID;
            MaterialCert = materialCert;
            MaterialGrade = materialGrade;
            MaterialType = materialType;

            if (!string.IsNullOrWhiteSpace(materialID))
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material ID", materialID, true));
            if (!string.IsNullOrWhiteSpace(materialCert))
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Certification", materialCert, true));
            if (!string.IsNullOrWhiteSpace(materialGrade))
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Grade", materialGrade, true));
            if (!string.IsNullOrWhiteSpace(materialType))
                BbPropertySet.AddProperty(BbSingleProperty.Create("Material Type", materialType, true));
        }
Пример #56
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string weldId, string weldDescription,
            string wpsCode, string weldCategory,
            string weldGrade,
            double? weldLength, bool? fieldWeld)
        {
            if (BbPropertySet == null)
                BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(weldId))
            {
                WeldID = weldId;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldID", WeldID, true));
            }

            if (!string.IsNullOrWhiteSpace(weldDescription))
            {
                WeldDescription = weldDescription;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldDescription", WeldDescription, true));
            }

            if (!string.IsNullOrWhiteSpace(wpsCode))
            {
                WPSCode = wpsCode;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WPSCode", WPSCode, true));
            }

            if (!string.IsNullOrWhiteSpace(weldCategory))
            {
                WeldCategory = weldCategory;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldCategory", WeldCategory, true));
            }

            if (!string.IsNullOrEmpty(weldGrade))
            {
                WeldGrade.Add(weldGrade);
                bbPropertySet.AddProperty(BbListProperty.Create("WeldGrade", weldGrade, typeof(IfcLabel)));
            }

            if (weldLength != null)
            {
                WeldLength = weldLength.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldLength", WeldLength, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldLength = 0.0;
            }

            if (fieldWeld != null)
            {
                FieldWeld = fieldWeld.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("FieldWeld", FieldWeld));
            }
            else
            {
                WeldLength = 0.0;
            }
        }
Пример #57
0
        public static BbMaterial Create(string name,
            BbPropertySet bbPropertySet,
                                        string materialID,
                                        string materialCert,
                                        string materialGrade,
                                        string materialType)
        {
            var material = new BbMaterial(name);
            material.AddMaterialProperty(bbPropertySet, materialID, materialCert, materialGrade, materialType);

            BbInstanceDB.AddToExport(material);

            return material;
        }
Пример #58
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string nutStandard, string nutType,

            double? nutSize, int? boltAssemblySequentialOrder, bool? headSideNut)
        {
            if (BbPropertySet == null)
                BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(nutStandard))
            {
                NutStandard = nutStandard;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutStandard", NutStandard, true));
            }

            if (!string.IsNullOrWhiteSpace(nutType))
            {
                NutType = nutType;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutType", NutType, true));
            }

            if (nutSize != null)
            {
                NutSize = nutSize.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutSize", NutSize, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                NutSize = 0.0;
            }

            if (headSideNut != null)
            {
                HeadSideNut = headSideNut.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("HeadSideNut", HeadSideNut));
            }

            if (boltAssemblySequentialOrder != null)
            {
                BoltAssemblySequentialOrder = boltAssemblySequentialOrder.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("NutSequentialOrder", BoltAssemblySequentialOrder, typeof(IfcInteger)));
            }
        }
Пример #59
0
        public void AddProperties(
            BbPropertySet bbPropertySet,
            string weldType1, string weldType2,
            string weldSurface1, string weldSurface2,
            int? weldProcess, string weldProcessName,
            double? weldA, double? weldC, double? weldD,
            double? weldE, double? weldL, double? weldN,
            double? weldS, double? weldZ,
            bool? weldIntermittent, bool? weldStaggered)
        {
            if (BbPropertySet == null)
                BbPropertySet = bbPropertySet;
            if (!string.IsNullOrWhiteSpace(weldType1))
            {
                WeldType1 = weldType1;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldType1", WeldType1, true));
            }

            if (!string.IsNullOrWhiteSpace(weldType2))
            {
                WeldType2 = weldType2;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldType2", WeldType2, true));
            }

            if (!string.IsNullOrWhiteSpace(weldSurface1))
            {
                WeldSurface1 = weldSurface1;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldSurface1", WeldSurface1, true));
            }

            if (!string.IsNullOrWhiteSpace(weldSurface2))
            {
                WeldSurface2 = weldSurface2;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldSurface2", WeldSurface2, true));
            }

            if (weldProcess != null)
            {
                WeldProcess = weldProcess.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldProcess", WeldProcess, typeof(IfcInteger)));
            }
            else
            {
                WeldProcess = 0;
            }

            if (!string.IsNullOrWhiteSpace(weldProcessName))
            {
                WeldProcessName = weldProcessName;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldProcessName", WeldProcessName, true));
            }

            if (weldA != null)
            {
                WeldA = weldA.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldA", WeldA, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldA = 0.0;
            }

            if (weldC != null)
            {
                WeldC = weldC.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldC", WeldC, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldC = 0.0;
            }

            if (weldD != null)
            {
                WeldD = weldD.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldD", WeldD, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldD = 0.0;
            }

            if (weldE != null)
            {
                WeldE = weldE.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldE", WeldE, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldE = 0.0;
            }

            if (weldL != null)
            {
                WeldL = weldL.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldL", WeldL, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldL = 0.0;
            }

            if (weldN != null)
            {
                WeldN = weldN.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldN", WeldN, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldN = 0.0;
            }

            if (weldS != null)
            {
                WeldS = weldS.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldS", WeldN, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldS = 0.0;
            }

            if (weldZ != null)
            {
                WeldZ = weldZ.Value;
                bbPropertySet.AddProperty(BbSingleProperty.Create("WeldZ", WeldZ, typeof(IfcPositiveLengthMeasure)));
            }
            else
            {
                WeldZ = 0.0;
            }
        }
Пример #60
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="bbPropertySet"></param>
 /// <param name="status">One of "Default", "ReadyForProcurement", "ReadyForMill", "IssuedForFabrication"</param>
 /// <param name="changeStatus">One of "Default", "Changed", "Deleted"</param>
 /// <param name="approved"></param>
 /// <returns></returns>
 public static BbStatus Create(
    BbPropertySet bbPropertySet,
     string status,
     string changeStatus,
     bool? approved)
 {
     var ai = new BbStatus(
         bbPropertySet,
      status,
      changeStatus,
      approved);
     return ai;
 }