Beispiel #1
0
 // Token: 0x060002C5 RID: 709 RVA: 0x00010928 File Offset: 0x0000EB28
 public void convertUnits()
 {
     foreach (ItOrder itOrder in this.Orders)
     {
         bool orderAreaSpecified = itOrder.OrderAreaSpecified;
         if (orderAreaSpecified)
         {
             itOrder.OrderArea = ItDocument.convertToSquareMeter(itOrder.OrderArea);
         }
         foreach (ItProduct itProduct in itOrder.productList)
         {
             itProduct.ConvertUnits();
         }
     }
 }
Beispiel #2
0
        // Token: 0x06000427 RID: 1063 RVA: 0x00012CEC File Offset: 0x00010EEC
        public void ConvertUnits()
        {
            this.ProjectCoordinates.Origin = ItDocument.convertToMM(this.ProjectCoordinates.Origin);
            this.ProjectCoordinates.YPoint = ItDocument.convertToMM(this.ProjectCoordinates.YPoint);
            this.ProjectCoordinates.XPoint = ItDocument.convertToMM(this.ProjectCoordinates.XPoint);
            bool totalThicknessSpecified = this.TotalThicknessSpecified;

            if (totalThicknessSpecified)
            {
                this.TotalThickness = ItDocument.convertToMM(this.TotalThickness);
            }
            bool doubleWallsGapSpecified = this.DoubleWallsGapSpecified;

            if (doubleWallsGapSpecified)
            {
                this.DoubleWallsGap = ItDocument.convertToMM(this.DoubleWallsGap);
            }
            bool turnMoveXSpecified = this.TurnMoveXSpecified;

            if (turnMoveXSpecified)
            {
                this.TurnMoveX = ItDocument.convertToMM(this.TurnMoveX);
            }
            bool turnWidthSpecified = this.TurnWidthSpecified;

            if (turnWidthSpecified)
            {
                this.TurnWidth = ItDocument.convertToMM(this.TurnWidth);
            }
            foreach (ItSlab itSlab in this.slabList)
            {
                bool xspecified = itSlab.XSpecified;
                if (xspecified)
                {
                    itSlab.X = ItDocument.convertToMM(itSlab.X);
                }
                bool yspecified = itSlab.YSpecified;
                if (yspecified)
                {
                    itSlab.Y = ItDocument.convertToMM(itSlab.Y);
                }
                bool zspecified = itSlab.ZSpecified;
                if (zspecified)
                {
                    itSlab.Z = ItDocument.convertToMM(itSlab.Z);
                }
                bool maxLengthSpecified = itSlab.MaxLengthSpecified;
                if (maxLengthSpecified)
                {
                    itSlab.MaxLength = ItDocument.convertToMM(itSlab.MaxLength);
                }
                bool maxWidthSpecified = itSlab.MaxWidthSpecified;
                if (maxWidthSpecified)
                {
                    itSlab.MaxWidth = ItDocument.convertToMM(itSlab.MaxWidth);
                }
                bool ironProjectionBottomSpecified = itSlab.IronProjectionBottomSpecified;
                if (ironProjectionBottomSpecified)
                {
                    itSlab.IronProjectionBottom = ItDocument.convertToMM(itSlab.IronProjectionBottom);
                }
                bool ironProjectionLeftSpecified = itSlab.IronProjectionLeftSpecified;
                if (ironProjectionLeftSpecified)
                {
                    itSlab.IronProjectionLeft = ItDocument.convertToMM(itSlab.IronProjectionLeft);
                }
                bool ironProjectionRightSpecified = itSlab.IronProjectionRightSpecified;
                if (ironProjectionRightSpecified)
                {
                    itSlab.IronProjectionRight = ItDocument.convertToMM(itSlab.IronProjectionRight);
                }
                bool ironProjectionTopSpecified = itSlab.IronProjectionTopSpecified;
                if (ironProjectionTopSpecified)
                {
                    itSlab.IronProjectionTop = ItDocument.convertToMM(itSlab.IronProjectionTop);
                }
                bool slabAreaSpecified = itSlab.SlabAreaSpecified;
                if (slabAreaSpecified)
                {
                    itSlab.SlabArea = ItDocument.convertToSquareMeter(itSlab.SlabArea);
                }
                bool productionThicknessSpecified = itSlab.ProductionThicknessSpecified;
                if (productionThicknessSpecified)
                {
                    itSlab.ProductionThickness = ItDocument.convertToMM(itSlab.ProductionThickness);
                }
                foreach (ItOutline itOutline in itSlab.outlineList)
                {
                    bool xspecified2 = itOutline.XSpecified;
                    if (xspecified2)
                    {
                        itOutline.X = ItDocument.convertToMM(itOutline.X);
                    }
                    bool yspecified2 = itOutline.YSpecified;
                    if (yspecified2)
                    {
                        itOutline.Y = ItDocument.convertToMM(itOutline.Y);
                    }
                    bool zspecified2 = itOutline.ZSpecified;
                    if (zspecified2)
                    {
                        itOutline.Z = ItDocument.convertToMM(itOutline.Z);
                    }
                    bool mountPartLengthSpecified = itOutline.MountPartLengthSpecified;
                    if (mountPartLengthSpecified)
                    {
                        itOutline.MountPartLength = ItDocument.convertToMM(itOutline.MountPartLength);
                    }
                    bool mountPartWidthSpecified = itOutline.MountPartWidthSpecified;
                    if (mountPartWidthSpecified)
                    {
                        itOutline.MountPartWidth = ItDocument.convertToMM(itOutline.MountPartWidth);
                    }
                    bool unitWeightSpecified = itOutline.UnitWeightSpecified;
                    if (unitWeightSpecified)
                    {
                        itOutline.UnitWeight = ItDocument.convertToWeightPerCubeMeter(itOutline.UnitWeight);
                    }
                    bool volumeSpecified = itOutline.VolumeSpecified;
                    if (volumeSpecified)
                    {
                        itOutline.Volume = this.ConvertToCubeMeter(itOutline.Volume);
                    }
                    bool heightSpecified = itOutline.HeightSpecified;
                    if (heightSpecified)
                    {
                        itOutline.Height = ItDocument.convertToMM(itOutline.Height);
                    }
                    foreach (ItShape itShape in itOutline.shapeList)
                    {
                        bool refHeightSpecified = itShape.RefHeightSpecified;
                        if (refHeightSpecified)
                        {
                            itShape.RefHeight = ItDocument.convertToMM(itShape.RefHeight);
                        }
                        foreach (ItSVertex itSVertex in itShape.sVertexList)
                        {
                            bool bulgeSpecified = itSVertex.BulgeSpecified;
                            if (bulgeSpecified)
                            {
                                itSVertex.Bulge = ItDocument.convertToMM(itSVertex.Bulge);
                            }
                            bool xspecified3 = itSVertex.XSpecified;
                            if (xspecified3)
                            {
                                itSVertex.X = ItDocument.convertToMM(itSVertex.X);
                            }
                            bool yspecified3 = itSVertex.YSpecified;
                            if (yspecified3)
                            {
                                itSVertex.Y = ItDocument.convertToMM(itSVertex.Y);
                            }
                        }
                    }
                }
                foreach (ItSteel itSteel in itSlab.steelList)
                {
                    bool xspecified4 = itSteel.XSpecified;
                    if (xspecified4)
                    {
                        itSteel.X = ItDocument.convertToMM(itSteel.X);
                    }
                    bool yspecified4 = itSteel.YSpecified;
                    if (yspecified4)
                    {
                        itSteel.Y = ItDocument.convertToMM(itSteel.Y);
                    }
                    bool zspecified3 = itSteel.ZSpecified;
                    if (zspecified3)
                    {
                        itSteel.Z = ItDocument.convertToMM(itSteel.Z);
                    }
                    foreach (ItBar itBar in itSteel.barList)
                    {
                        bool xspecified5 = itBar.XSpecified;
                        if (xspecified5)
                        {
                            itBar.X = ItDocument.convertToMM(itBar.X);
                        }
                        bool yspecified5 = itBar.YSpecified;
                        if (yspecified5)
                        {
                            itBar.Y = ItDocument.convertToMM(itBar.Y);
                        }
                        bool zspecified4 = itBar.ZSpecified;
                        if (zspecified4)
                        {
                            itBar.Z = ItDocument.convertToMM(itBar.Z);
                        }
                        bool diameterSpecified = itBar.DiameterSpecified;
                        if (diameterSpecified)
                        {
                            itBar.Diameter = ItDocument.convertToMM(itBar.Diameter);
                        }
                        foreach (ItSegment itSegment in itBar.segmentList)
                        {
                            bool lspecified = itSegment.LSpecified;
                            if (lspecified)
                            {
                                itSegment.L = ItDocument.convertToMM(itSegment.L);
                            }
                            bool rspecified = itSegment.RSpecified;
                            if (rspecified)
                            {
                                itSegment.R = ItDocument.convertToMM(itSegment.R);
                            }
                        }
                        foreach (ItWeldingPoint itWeldingPoint in itBar.weldingPointList)
                        {
                            bool positionSpecified = itWeldingPoint.PositionSpecified;
                            if (positionSpecified)
                            {
                                itWeldingPoint.Position = ItDocument.convertToMM(itWeldingPoint.Position);
                            }
                        }
                        foreach (ItSpacer itSpacer in itBar.spacerList)
                        {
                            bool positionSpecified2 = itSpacer.PositionSpecified;
                            if (positionSpecified2)
                            {
                                itSpacer.Position = ItDocument.convertToMM(itSpacer.Position);
                            }
                        }
                    }
                    foreach (ItGirder itGirder in itSteel.girderList)
                    {
                        bool xspecified6 = itGirder.XSpecified;
                        if (xspecified6)
                        {
                            itGirder.X = ItDocument.convertToMM(itGirder.X);
                        }
                        bool yspecified6 = itGirder.YSpecified;
                        if (yspecified6)
                        {
                            itGirder.Y = ItDocument.convertToMM(itGirder.Y);
                        }
                        bool zspecified5 = itGirder.ZSpecified;
                        if (zspecified5)
                        {
                            itGirder.Z = ItDocument.convertToMM(itGirder.Z);
                        }
                        bool lengthSpecified = itGirder.LengthSpecified;
                        if (lengthSpecified)
                        {
                            itGirder.Length = ItDocument.convertToMM(itGirder.Length);
                        }
                        bool heightSpecified2 = itGirder.HeightSpecified;
                        if (heightSpecified2)
                        {
                            itGirder.Height = ItDocument.convertToMM(itGirder.Height);
                        }
                        bool topExcessSpecified = itGirder.TopExcessSpecified;
                        if (topExcessSpecified)
                        {
                            itGirder.TopExcess = ItDocument.convertToMM(itGirder.TopExcess);
                        }
                        bool bottomExcessSpecified = itGirder.BottomExcessSpecified;
                        if (bottomExcessSpecified)
                        {
                            itGirder.BottomExcess = ItDocument.convertToMM(itGirder.BottomExcess);
                        }
                        bool topFlangeDiameterSpecified = itGirder.TopFlangeDiameterSpecified;
                        if (topFlangeDiameterSpecified)
                        {
                            itGirder.TopFlangeDiameter = ItDocument.convertToMM(itGirder.TopFlangeDiameter);
                        }
                        bool bottomFlangeDiameterSpecified = itGirder.BottomFlangeDiameterSpecified;
                        if (bottomFlangeDiameterSpecified)
                        {
                            itGirder.BottomFlangeDiameter = ItDocument.convertToMM(itGirder.BottomFlangeDiameter);
                        }
                        bool widthSpecified = itGirder.WidthSpecified;
                        if (widthSpecified)
                        {
                            itGirder.Width = ItDocument.convertToMM(itGirder.Width);
                        }
                        bool periodSpecified = itGirder.PeriodSpecified;
                        if (periodSpecified)
                        {
                            itGirder.Period = ItDocument.convertToMM(itGirder.Period);
                        }
                        bool periodOffsetSpecified = itGirder.PeriodOffsetSpecified;
                        if (periodOffsetSpecified)
                        {
                            itGirder.PeriodOffset = ItDocument.convertToMM(itGirder.PeriodOffset);
                        }
                        foreach (ItAnchorBar itAnchorBar in itGirder.anchorBarList)
                        {
                            bool lengthSpecified2 = itAnchorBar.LengthSpecified;
                            if (lengthSpecified2)
                            {
                                itAnchorBar.Length = ItDocument.convertToMM(itAnchorBar.Length);
                            }
                            bool positionSpecified3 = itAnchorBar.PositionSpecified;
                            if (positionSpecified3)
                            {
                                itAnchorBar.Position = ItDocument.convertToMM(itAnchorBar.Position);
                            }
                        }
                        foreach (ItGirderExt itGirderExt in itGirder.girderExtList)
                        {
                            bool positionSpecified4 = itGirderExt.PositionSpecified;
                            if (positionSpecified4)
                            {
                                itGirderExt.Position = ItDocument.convertToMM(itGirderExt.Position);
                            }
                        }
                        foreach (ItSection itSection in itGirder.sectionList)
                        {
                            bool lspecified2 = itSection.LSpecified;
                            if (lspecified2)
                            {
                                itSection.L = ItDocument.convertToMM(itSection.L);
                            }
                            bool sspecified = itSection.SSpecified;
                            if (sspecified)
                            {
                                itSection.S = ItDocument.convertToMM(itSection.S);
                            }
                        }
                    }
                    foreach (ItAlloc itAlloc in itSteel.allocList)
                    {
                        foreach (ItRegion itRegion in itAlloc.regionList)
                        {
                            bool pitchSpecified = itRegion.PitchSpecified;
                            if (pitchSpecified)
                            {
                                itRegion.Pitch = ItDocument.convertToMM(itRegion.Pitch);
                            }
                        }
                    }
                }
            }
        }