Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

IfcConvert: Remove IfcSpace entities from list of exluded entity types

Wieland Lindenthalef8fbe3ca52e
diff --git a/modules/bim/app/services/bim/ifc_models/view_converter_service.rb b/modules/bim/app/services/bim/ifc_models/view_converter_service.rb
index 321634581d5..1c11c6cfdc2 100644
--- a/modules/bim/app/services/bim/ifc_models/view_converter_service.rb
+++ b/modules/bim/app/services/bim/ifc_models/view_converter_service.rb
@@ -94,7 +94,20 @@ module Bim
Rails.logger.debug { "Converting #{ifc_model.inspect} to DAE" }
convert!(ifc_filepath, target_dir, 'dae') do |target_file|
- Open3.capture2e('IfcConvert', '--use-element-guids', '--no-progress', '--verbose', ifc_filepath, target_file)
+ # To include IfcSpace entities, which by default are excluded by
+ # IfcConvert, together with IfcOpeningElement, we need ot over-
+ # write the default exclude parameter to only exclude
+ # IfcOpeningElements.
+ # https://github.com/IfcOpenShell/IfcOpenShell/wiki#ifconvert
+ Open3.capture2e('IfcConvert',
+ '--use-element-guids',
+ '--no-progress',
+ '--verbose',
+ ifc_filepath,
+ target_file,
+ '--exclude',
+ 'entities',
+ 'IfcOpeningElement')
end
end