/// <summary> /// Exports a legacy curtain element to IFC curtain wall. /// </summary> /// <param name="exporterIFC">The exporter.</param> /// <param name="curtainElement">The curtain element.</param> /// <param name="productWrapper">The ProductWrapper.</param> public static void ExportLegacyCurtainElement(ExporterIFC exporterIFC, Element curtainElement, ProductWrapper productWrapper) { ICollection <ElementId> allSubElements = ExporterIFCUtils.GetLegacyCurtainSubElements(curtainElement); IFCFile file = exporterIFC.GetFile(); using (IFCTransaction transaction = new IFCTransaction(file)) { ExportBase(exporterIFC, allSubElements, curtainElement, productWrapper); transaction.Commit(); } }
/// <summary> /// Exports a legacy curtain element to IFC curtain wall. /// </summary> /// <param name="exporterIFC">The exporter.</param> /// <param name="curtainElement">The curtain element.</param> /// <param name="productWrapper">The ProductWrapper.</param> public static void ExportLegacyCurtainElement(ExporterIFC exporterIFC, Element curtainElement, ProductWrapper productWrapper) { // Check the intended IFC entity or type name is in the exclude list specified in the UI Common.Enums.IFCEntityType elementClassTypeEnum = Common.Enums.IFCEntityType.IfcCurtainWall; if (ExporterCacheManager.ExportOptionsCache.IsElementInExcludeList(elementClassTypeEnum)) { return; } ICollection <ElementId> allSubElements = ExporterIFCUtils.GetLegacyCurtainSubElements(curtainElement); IFCFile file = exporterIFC.GetFile(); using (IFCTransaction transaction = new IFCTransaction(file)) { ExportBase(exporterIFC, allSubElements, curtainElement, productWrapper); transaction.Commit(); } }