View Issue Details

IDProjectCategoryView StatusLast Update
0002762ArchBugpublic2016-12-29 18:06
Reporterjpmbk Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.16 
Summary0002762: IFC import takes too much times when processing styled items
DescriptionProcessing code for "IfcStyledItem" is something such as :

loop on all IfcStyledItem
   if ..... :
       loop on all IFCProducts
   else:
       loop on all IFCMaterialDefinitionRepresentation

This code is way too much polynomial for my ifc model :)
Steps To ReproduceTry to import a medium sized ifc model : the styleditem processing will block FreeCAD for a long time ....





Additional InformationPartial solution is to split processing in two phases :
first create a dictianry mapping IfcStyledItem to colors and then loop
over the products.

However I'm not sure how to integrate "IFCMaterialDefinitionRepresentation" in ths scheme.


Please see my attempt to correct importIFC.py as attachment
TagsNo tags attached.
FreeCAD Information

Activities

jpmbk

2016-11-09 00:35

reporter  

importIFC.py (Attachment missing)

yorik

2016-12-29 18:06

administrator   ~0007556

I ended up implementing this in a different way...

Related Changesets

FreeCAD: master 02492358

2016-12-29 19:05:52

yorik

Details Diff
Arch: Faster material handling in IFC import - fixes 0002762 Affected Issues
0002762
mod - src/Mod/Arch/ArchComponent.py Diff File
mod - src/Mod/Arch/importIFC.py Diff File
mod - src/Mod/Draft/Draft.py Diff File

Issue History

Date Modified Username Field Change
2016-11-09 00:35 jpmbk New Issue
2016-11-09 00:35 jpmbk File Added: importIFC.py
2016-12-29 18:06 yorik Changeset attached => FreeCAD Master master 02492358
2016-12-29 18:06 yorik Assigned To => yorik
2016-12-29 18:06 yorik Status new => closed
2016-12-29 18:06 yorik Resolution open => fixed
2016-12-29 18:06 yorik Note Added: 0007556