// Token: 0x060001C9 RID: 457 RVA: 0x0000C14C File Offset: 0x0000A34C
        internal override void WriteToPXML(ItSteel steelBlock, ICollection <ExportReinfData> exportedElements)
        {
            ItBracedGirderData itBracedGirderData = new ItBracedGirderData(this.Girder, base.MatWcsToPalette, 0.0);

            ItBracedGirderData.DataInFeet cncdata = itBracedGirderData.GetCNCData(1, base.MinZ);
            ItGirder itGirder = new ItGirder();

            itGirder.PieceCount   = 1;
            itGirder.X            = steelBlock.OffsetX(cncdata.X);
            itGirder.Y            = steelBlock.OffsetY(cncdata.Y);
            itGirder.Z            = steelBlock.OffsetZ(cncdata.InstallationHeight);
            itGirder.GirderName   = this.Girder.Element.Name;
            itGirder.Length       = cncdata.Length;
            itGirder.AngleToX     = Math.Round(ItAngle.toDegree(cncdata.Angle), 10);
            itGirder.Height       = cncdata.Height;
            itGirder.Weight       = cncdata.Weight;
            itGirder.GirderType   = 0;
            itGirder.MountingType = 0;
            itGirder.Width        = 0.0;
            steelBlock.girderList.Add(itGirder);
            exportedElements.Add(new ExportReinfData
            {
                Id         = this.Girder.Id,
                ExportedAs = ExportReinfData.ExportType.AsGirder
            });
        }
Esempio n. 2
0
 // Token: 0x06000045 RID: 69 RVA: 0x00003EB4 File Offset: 0x000020B4
 internal ItBracedGirderData.DataInFeet GetCNCData(int count, double offset)
 {
     ItBracedGirderData.DataInFeet dataInFeet = new ItBracedGirderData.DataInFeet();
     dataInFeet.Count              = count;
     dataInFeet.Offset             = offset;
     dataInFeet.X                  = this.midline.startPoint.x;
     dataInFeet.Y                  = this.midline.startPoint.y;
     dataInFeet.Length             = this.midline.startPoint.distanceTo(this.midline.endPoint);
     dataInFeet.Angle              = this.midline.direction().angleTo(ItGeVector3d.kXAxis);
     dataInFeet.Height             = this.height;
     dataInFeet.Diameter           = this.upperChordDiameter;
     dataInFeet.Weight             = dataInFeet.Length * this.linealWeight;
     dataInFeet.InstallationHeight = this.installationHeight;
     return(dataInFeet);
 }
Esempio n. 3
0
        // Token: 0x06000044 RID: 68 RVA: 0x00003DE8 File Offset: 0x00001FE8
        public void setParametersForUnitechnik(int[] iParameters, int count, double offset, double x, double y)
        {
            bool flag = iParameters.isNull() || iParameters.Length != 10;

            if (flag)
            {
                ItDebug.assert(false, "Input parameter ");
            }
            else
            {
                ItBracedGirderData.DataInFeet cncdata = this.GetCNCData(count, offset);
                iParameters[0] = cncdata.Count;
                iParameters[1] = CNCDataBase.convertToMM(cncdata.Length);
                iParameters[2] = CNCDataBase.convertToMM(x);
                iParameters[3] = CNCDataBase.convertToMM(y);
                iParameters[4] = CNCDataBase.convertToMM(cncdata.Offset);
                iParameters[5] = (int)ItAngle.toDegree(cncdata.Angle);
                iParameters[6] = CNCDataBase.convertToMM(cncdata.Height);
                iParameters[7] = CNCDataBase.convertToMM(cncdata.Diameter);
                iParameters[8] = (int)(cncdata.Weight * 1000.0);
                iParameters[9] = CNCDataBase.convertToMM(cncdata.InstallationHeight);
            }
        }