Hi,
is any way 'turn on' skipping invalid objects on import ifc files? When import attached files got acces error, and FreeCAD hangs. Have to import lot of files and manually checking is lot of trouble
ifcopenshell from: ifcopenshell-python-38-v0.6.0-0d93633-win64
OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21329 (Git)
Build type: Release
Branch: master
Hash: 2330eef823b32ac412d839031cc174353a76b013
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Polish/Poland (pl_PL)
Freecad crash (acces error)
Freecad crash (acces error)
- Attachments
-
- 160802.ifc
- (31.53 KiB) Downloaded 102 times
-
- 155879.ifc
- (34.53 KiB) Downloaded 81 times
-
- 106195.ifc
- (34.93 KiB) Downloaded 87 times
Re: Freecad crash (acces error)
Hi,
I'm not sure I understand exactly what you want, but maybe looking at Preferences -> Import/Export -> IFC import helps?
Harald
I'm not sure I understand exactly what you want, but maybe looking at Preferences -> Import/Export -> IFC import helps?
Harald
Re: Freecad crash (acces error)
So, when I'm trying import lot of ifc files into one new file, few files making problem. FreeCAD dont import these files and hangs. Is any way to skip these files automatically? Something like 'on error: go next'?
--
jureko
Re: Freecad crash (acces error)
How do you go about this "import lots of ifc files into one new file"? Are you scripting this in python? Can you share the error you are getting?
Re: Freecad crash (acces error)
starting FreeCAD, next 'File/new file', next file/Import, selecting files to import (expml. 100 files, without python script). After importing few files got error (acces error) end FreeCAD freeze. Any way to skip wrong files?
- Attachments
-
- screen.jpg (85.55 KiB) Viewed 1683 times
Re: Freecad crash (acces error)
Access violation errors often come from grphics card/driver. Try with 0.19, look at the Known OS specific issues and add your FreeCAD infos if the problem persists.
It is called a crash if FreeCAD terminates all of a sudden by itself.
It is called a crash if FreeCAD terminates all of a sudden by itself.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Freecad crash (acces error)
Interesting I have not been aware this this possible.
Well the only idea I have is to script the import in python:
Something like this might get you started:
Code: Select all
import importIFC
for file in files:
importIFC.insert(file, FreeCAD.ActiveDocument.Name)
Also in my experience many of these crashes come from ifcopenshell, not FreeCAD. To make a list of bad files, you might just try processing them with ifcopenshell directly. (Also updateing ifcopenshell might help, as some such crashes have been fixed recently.)
To make FreeCAD resistant to ifcopenshell crashes, we would need to run ifcopenshell in a separate thread. I'd like to see that, but I guess it isn't possible in the moment.
HTH,
Harald