/// <summary> /// Exports a connector instance. Almost verbatim exmaple from Revit 2012 API for Connector Class /// Works only for HVAC and Piping for now /// </summary> /// <param name="exporterIFC">The ExporterIFC object.</param> public static void Export(ExporterIFC exporterIFC) { foreach (ConnectorSet connectorSet in ExporterCacheManager.MEPCache.MEPConnectors) { Export(exporterIFC, connectorSet); } // clear local cache ConnectorExporter.ClearConnections(); }
/// <summary> /// Exports a connector instance. Almost verbatim exmaple from Revit 2012 API for Connector Class /// Works only for HVAC and Piping for now /// </summary> /// <param name="exporterIFC">The ExporterIFC object.</param> public static void Export(ExporterIFC exporterIFC) { foreach (ConnectorSet connectorSet in ExporterCacheManager.MEPCache.MEPConnectors) { Export(exporterIFC, connectorSet); } // Create all the IfcRelNests relationships from the Dictionary for Port connection in IFC4 CreateRelNestsFromCache(exporterIFC.GetFile()); // clear local cache ConnectorExporter.ClearConnections(); }
/// <summary> /// Exports a connector instance. Almost verbatim exmaple from Revit 2012 API for Connector Class /// Works only for HVAC and Piping for now /// </summary> /// <param name="exporterIFC">The ExporterIFC object.</param> public static void Export(ExporterIFC exporterIFC) { foreach (ConnectorSet connectorSet in ExporterCacheManager.MEPCache.MEPConnectors) { Export(exporterIFC, connectorSet); } foreach (KeyValuePair <Connector, IFCAnyHandle> connector in ExporterCacheManager.MEPCache.ConnectorCache) { ExportConnectorProperties(exporterIFC, connector.Key, connector.Value); } // Create all the IfcRelNests relationships from the Dictionary for Port connection in IFC4 CreateRelNestsFromCache(exporterIFC.GetFile()); // clear local cache ConnectorExporter.ClearConnections(); }