// 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 }); }
// Token: 0x06000222 RID: 546 RVA: 0x0000F0FC File Offset: 0x0000D2FC internal override void WriteToPXML(ItSteel steelBlock, ICollection <ExportReinfData> exportedElements) { bool flag = this.IronSetsRealistic.none <List <ItGeCurve3d> >(); if (flag) { ItFailures.PostFailure(ItFailures.CAMInvalidRebarShape, this.RebarElementId); exportedElements.Add(new ExportReinfData { Id = this.RebarElementId, ExportedAs = ExportReinfData.ExportType.AsFailure }); } else { bool ironSetsRealisticAreInvalid = this.IronSetsRealisticAreInvalid; if (ironSetsRealisticAreInvalid) { ItFailures.PostFailure(ItFailures.CAMUnsupportedRebarShapeExportedAsStraightBar, this.RebarElementId); } List <ItBar> collection = this.ToBarList(steelBlock, this.IronSetsRealistic); steelBlock.barList.AddRange(collection); exportedElements.Add(new ExportReinfData { Id = this.RebarElementId, ExportedAs = ExportReinfData.ExportType.AsRodstock }); } }
// Token: 0x06000163 RID: 355 RVA: 0x0000A844 File Offset: 0x00008A44 private void SetSteelBlockOffset(ItSteel steelBlock) { List <ItGePoint3d> points = this.GetPoints(false); bool flag = points.none <ItGePoint3d>(); if (!flag) { steelBlock.X = points.Min((ItGePoint3d p) => p.x); steelBlock.Y = points.Min((ItGePoint3d p) => p.y); steelBlock.Z = points.Min((ItGePoint3d p) => p.z); } }
// Token: 0x060001A0 RID: 416 RVA: 0x0000B76C File Offset: 0x0000996C internal override void WriteToPXML(ItSteel steelBlock, ICollection <ExportReinfData> exportedElements) { IEnumerable <WireItem> enumerable = base.WireItemsMajor.Union(base.WireItemsMinor); foreach (WireItem wire in enumerable) { SteelGroupElementMeshBase.AddWireToSteelBlock(steelBlock, wire); } exportedElements.Add(new ExportReinfData { Id = base.FabricSheet.Id, ExportedAs = ExportReinfData.ExportType.AsCFS }); }
// Token: 0x06000238 RID: 568 RVA: 0x0000F724 File Offset: 0x0000D924 internal override void WriteToPXML(ItSteel steelBlock, ICollection <ExportReinfData> exportedElements) { ItSteelExt itSteelExt = new ItSteelExt(); itSteelExt.type = "01"; itSteelExt.Info = CNCDataBase.paddedInt5(this.Count) + " " + this.Weight.ToString("000.000", CultureInfo.InvariantCulture); FabricSheetType sheetType = SteelGroupElementMeshBase.GetSheetType(base.FabricSheet.Element); itSteelExt.SheetType = (((sheetType != null) ? sheetType.Name : null) ?? string.Empty); itSteelExt.Count = this.Count; itSteelExt.Weight = Math.Round(this.Weight, 3); steelBlock.steelExtList.Add(itSteelExt); exportedElements.Add(new ExportReinfData { Id = base.FabricSheet.Id, ExportedAs = ExportReinfData.ExportType.AsExtIron }); }
// Token: 0x06000162 RID: 354 RVA: 0x0000A7A4 File Offset: 0x000089A4 internal ItSteel ToPXML(ICollection <ExportReinfData> exportedElements) { ItSteel steelBlock = new ItSteel(); steelBlock.SteelType = this.GetSteelType(); this.SetSteelBlockOffset(steelBlock); bool flag = steelBlock.SteelType == "mesh"; if (flag) { steelBlock.MeshType = "0"; } steelBlock.BorderStrength = 0; this.Elements.ForEach(delegate(SteelGroupElement elem) { elem.WriteToPXML(steelBlock, exportedElements); }); return(steelBlock); }
// Token: 0x060001BC RID: 444 RVA: 0x0000BE18 File Offset: 0x0000A018 protected static void AddWireToSteelBlock(ItSteel steelBlock, WireItem wire) { ItGePoint3d startPoint = wire.StartPoint; ItGePoint3d point = startPoint + wire.ParentMesh.PosPalette.asVector(); ItGePoint3d itGePoint3d = steelBlock.Offset(point); ItBar itBar = new ItBar(); itBar.ShapeMode = ShapeMode.realistic; itBar.ReinforcementType = wire.ReinforcementType; itBar.SteelQuality = wire.SteelQuality; itBar.PieceCount = 1; itBar.Diameter = wire.WireDiameter; itBar.X = itGePoint3d.x; itBar.Y = itGePoint3d.y; itBar.Z = itGePoint3d.z; itBar.RotZ = SteelGroupElementMeshBase.GetRotZ(wire); itBar.ArticleNo = wire.ArticleNumber; itBar.NoAutoProd = false; SteelGroupElementMeshBase.AddSegmentsToBar(itBar, wire); steelBlock.barList.Add(itBar); }
// Token: 0x06000201 RID: 513 RVA: 0x0000DD94 File Offset: 0x0000BF94 public List <ItBar> ToBarList(ItSteel steelBlock, List <List <ItGeCurve3d> > ironSet) { List <ItBar> list = new List <ItBar>(); bool flag = ironSet.none <List <ItGeCurve3d> >(); List <ItBar> result; if (flag) { result = list; } else { bool flag2 = this.RebarBarType == null; if (flag2) { result = list; } else { foreach (List <ItGeCurve3d> list2 in ironSet) { bool flag3 = list2.none <ItGeCurve3d>(); if (!flag3) { double rotZ = 0.0; ItGeCurve3d firstSeg = list2.FirstOrDefault <ItGeCurve3d>(); ItGePoint3d rebarStartPoint = SteelGroupElementRebarBase.GetRebarStartPoint(firstSeg); ItGePoint3d startPoint = steelBlock.Offset(rebarStartPoint); ItBar itBar = this.CreateBarElement(startPoint, rotZ); this.FillSegments(itBar, list2); list.Add(itBar); } } result = list; } } return(result); }
// Token: 0x0600017E RID: 382 internal abstract void WriteToPXML(ItSteel steelBlock, ICollection <ExportReinfData> exportedElements);