From 11a8fee71457db542333271fbe7148fe71dc9108 Mon Sep 17 00:00:00 2001 From: Oleksandr Babii Date: Wed, 29 Sep 2021 04:39:16 -0700 Subject: [PATCH 1/5] Code updated code to be compatible with Revit 2022.1 and ODA Toolkit. --- .../IFCExporterUIWindow.xaml | 2 +- .../IFCExporterUIWindow.xaml.cs | 11 +- .../Revit.IFC.Common/Enums/IFC2xEntityType.cs | 86 +- .../Enums/IFC4x1EntityType.cs | 837 ++++ .../Enums/IFC4x2EntityType.cs | 852 ++++ .../Enums/IFC4x3EntityType.cs | 910 ++++ .../Revit.IFC.Common/Enums/IFCEntityType.cs | 179 +- .../Extension/IFCFileHeader.cs | 2 - .../Revit.IFC.Common/Revit.IFC.Common.csproj | 3 + .../Revit.IFC.Common/Utility/DirectoryUtil.cs | 2 +- .../Revit.IFC.Export/Exporter/BeamExporter.cs | 29 +- .../Revit.IFC.Export/Exporter/BodyExporter.cs | 249 +- .../Exporter/CeilingExporter.cs | 2 +- .../Exporter/ConnectorExporter.cs | 38 +- .../Exporter/CurtainSystemExporter.cs | 7 +- .../Exporter/DuctLiningExporter.cs | 2 +- Source/Revit.IFC.Export/Exporter/Exporter.cs | 90 +- .../Exporter/ExporterInitializer.cs | 189 +- .../Exporter/ExporterInitializer_PsetDef.cs | 1628 +++++-- .../Exporter/ExporterInitializer_QsetDef.cs | 4319 +++++++++++++++++ .../Exporter/ExtrusionExporter.cs | 14 +- .../Exporter/FamilyInstanceExporter.cs | 60 +- .../Exporter/FloorExporter.cs | 4 +- .../Exporter/FootingExporter.cs | 2 +- .../Exporter/GenericMEPExporter.cs | 12 +- .../Exporter/InsulationExporter.cs | 2 +- .../Revit.IFC.Export/Exporter/PileExporter.cs | 2 +- .../Exporter/PropertySet/AttributeEntry.cs | 2 +- .../NetCrossSectionAreaCalculator.cs | 102 + .../PropertySet/Calculators/SpanCalculator.cs | 2 + .../Exporter/PropertySet/Description.cs | 2 +- .../Exporter/PropertySet/Entry.cs | 98 +- .../Exporter/PropertySet/EntryMap.cs | 110 +- .../ExporterInitializer_PsetDefIFC2X2Enum.cs | 40 + ... ExporterInitializer_PsetDefIFC2X3Enum.cs} | 42 +- .../ExporterInitializer_PsetDefIFC4Enum.cs | 48 + .../Exporter/PropertySet/PropertySetEntry.cs | 158 +- .../PropertySet/PropertySetEntryMap.cs | 104 +- .../Exporter/PropertySet/PropertyUtil.cs | 191 +- .../Exporter/PropertySet/QuantityEntry.cs | 13 +- .../Exporter/PropertySet/QuantityEntryMap.cs | 55 +- .../Revit.IFC.Export/Exporter/RampExporter.cs | 23 +- .../Revit.IFC.Export/Exporter/SiteExporter.cs | 8 +- .../Exporter/SpatialElementExporter.cs | 126 +- .../Exporter/SurfaceExporter.cs | 6 +- .../Revit.IFC.Export/Exporter/WallExporter.cs | 8 +- .../Revit.IFC.Export/Revit.IFC.Export.csproj | 5 +- .../Revit.IFC.Export/Toolkit/IFCDataUtil.cs | 10 + .../Toolkit/IFCInstanceExporter.cs | 96 +- .../Utility/ElementFilteringUtil.cs | 2 + .../Utility/ExporterCacheManager.cs | 6 + .../Revit.IFC.Export/Utility/ExporterUtil.cs | 193 +- .../Revit.IFC.Export/Utility/GeometryUtil.cs | 693 ++- Source/Revit.IFC.Export/Utility/MEPCache.cs | 5 + .../Revit.IFC.Export/Utility/ParameterUtil.cs | 140 +- .../Utility/RepresentationUtil.cs | 4 +- .../Utility/TriangleMergeUtil.cs | 21 +- Source/Revit.IFC.Export/Utility/UnitUtil.cs | 10 + Source/Revit.IFC.Import/Data/IFCBuilding.cs | 9 + .../Data/IFCBuildingElementComponent.cs | 7 - .../Data/IFCBuildingElementPart.cs | 7 - .../Data/IFCBuildingStorey.cs | 10 +- .../Data/IFCComplexProperty.cs | 25 +- .../Data/IFCCompositeCurve.cs | 7 +- Source/Revit.IFC.Import/Data/IFCCurve.cs | 21 +- .../Data/IFCDistributionPort.cs | 29 +- .../Data/IFCElementQuantity.cs | 1 - Source/Revit.IFC.Import/Data/IFCFaceBound.cs | 2 +- Source/Revit.IFC.Import/Data/IFCGridAxis.cs | 8 +- Source/Revit.IFC.Import/Data/IFCGroup.cs | 16 +- Source/Revit.IFC.Import/Data/IFCImportFile.cs | 80 +- Source/Revit.IFC.Import/Data/IFCLocation.cs | 91 +- Source/Revit.IFC.Import/Data/IFCMappedItem.cs | 62 +- .../Data/IFCObjectDefinition.cs | 125 +- Source/Revit.IFC.Import/Data/IFCProduct.cs | 176 +- Source/Revit.IFC.Import/Data/IFCProject.cs | 18 +- .../Revit.IFC.Import/Data/IFCPropertySet.cs | 27 +- .../Data/IFCPropertySetDefinition.cs | 99 - .../Data/IFCRepresentationContext.cs | 2 +- .../Data/IFCRepresentationMap.cs | 9 +- Source/Revit.IFC.Import/Data/IFCSite.cs | 187 +- Source/Revit.IFC.Import/Data/IFCSpace.cs | 2 +- .../Data/IFCSpatialStructureElement.cs | 28 + .../Data/IFCSweptDiskSolid.cs | 12 +- .../Revit.IFC.Import/Data/IFCTrimmedCurve.cs | 4 +- Source/Revit.IFC.Import/Data/IFCTypeObject.cs | 1 + Source/Revit.IFC.Import/Data/IFCUnit.cs | 50 + .../Enums/IFCSchemaVersion.cs | 6 +- .../Geometry/IFCGeometryUtil.cs | 47 +- .../Processors/IFCDefaultProcessor.cs | 60 +- .../Processors/IFCNavisProcessor.cs | 171 +- .../Processors/IIFCFileProcessor.cs | 52 +- .../Revit.IFC.Import/Utility/IFCDataUtil.cs | 3 + .../Utility/IFCImportHandleUtil.cs | 26 - .../Utility/IFCImportOptions.cs | 6 - .../Utility/IFCImportShapeEditScope.cs | 4 +- .../Revit.IFC.Import/Utility/IFCUnitUtil.cs | 22 +- .../Utility/TessellatedShapeBuilderScope.cs | 2 +- 98 files changed, 11092 insertions(+), 2278 deletions(-) create mode 100644 Source/Revit.IFC.Common/Enums/IFC4x1EntityType.cs create mode 100644 Source/Revit.IFC.Common/Enums/IFC4x2EntityType.cs create mode 100644 Source/Revit.IFC.Common/Enums/IFC4x3EntityType.cs create mode 100644 Source/Revit.IFC.Export/Exporter/ExporterInitializer_QsetDef.cs create mode 100644 Source/Revit.IFC.Export/Exporter/PropertySet/Calculators/NetCrossSectionAreaCalculator.cs rename Source/Revit.IFC.Export/Exporter/PropertySet/{ExporterInitializer_PsetDefIFC2X3TC1Enum.cs => ExporterInitializer_PsetDefIFC2X3Enum.cs} (97%) diff --git a/Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml b/Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml index 4809a515..40a6084e 100644 --- a/Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml +++ b/Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml @@ -32,7 +32,7 @@