// Token: 0x06000004 RID: 4 RVA: 0x00002228 File Offset: 0x00000428 private static string ExportReinforcementToPXML(AssemblyInstance assembly, ICollection <ExportReinfData> exportedElements, Func <Element, bool> filter) { ICamExportIntOptions options = new CamExporter.CamExportOptionsOnlyFileFormat(FileFormat.PXML13); ItMachineDataBase cncdocCreator = ItCNCDataFactory.getCNCDocCreator(assembly, options); cncdocCreator.InitializeFromAssembly(assembly); ItGeMatrix3d matWcsToPalette = cncdocCreator.MatWcsToPalette; ILookup <SteelGroup, SteelGroupElement> steelGroups; using (ItTransaction itTransaction = ItTransactionManager.Instance.start(assembly.Document, "RevitPrecast Internal Transaction", null)) { ReinfSorter reinfSorter = new ReinfSorter(assembly, new ItMachineDataBase.CNCElementData(), matWcsToPalette, filter); reinfSorter.SortElements(); steelGroups = reinfSorter.GetSteelGroups(); itTransaction.rollback("Planned rollback."); } IEnumerable <ItSteel> collection = from steelGroup in steelGroups select steelGroup.Key.ToPXML(exportedElements); ItSlab itSlab = new ItSlab(); itSlab.steelList.AddRange(collection); XmlRootAttribute root = new XmlRootAttribute("Slab") { Namespace = "http://progress-m.com/ProgressXML/Version1" }; XmlSerializer xmlSerializer = new XmlSerializer(typeof(ItSlab), root); StringWriter stringWriter = new StringWriter(); XmlWriter xmlWriter = XmlWriter.Create(stringWriter, new XmlWriterSettings { Indent = false, OmitXmlDeclaration = true, NewLineHandling = NewLineHandling.None }); xmlSerializer.Serialize(xmlWriter, itSlab, ItDocument.StaticNamespaces); string text = stringWriter.ToString(); text = text.Replace("</Slab>", string.Empty); int startIndex = text.IndexOf("<Steel ", StringComparison.Ordinal); return(text.Substring(startIndex)); }
// Token: 0x060000E2 RID: 226 RVA: 0x000090D4 File Offset: 0x000072D4 protected override void WriteAdditionalSlabFields(ItSlab slab, AssemblyInstance instance) { string strandsTypeName = this.GetStrandsTypeName(instance); slab.GenericInfo01 = strandsTypeName; }