@benni:
could you test this:
IFC export doesn't work at all
Re: IFC export doesn't work at all
I think the culprit is this line, IIRC there are still some edge types that are not fully implemented in python, and that yield an error when you try to access their Curve property. I'll try to change it (I think I made a DraftGeomUtils function as a workaround to that problem some time ago)Benni wrote:File "C:\..........\Mod\Arch\importIFC.py", line 1309 in getRepresentation
if not isintance(e.Curve,Part.Line):"
Re: IFC export doesn't work at all
Yes it is. But the edges might be broken.? They do not show up at Part.show()yorik wrote:I think the culprit is this line, IIRC there are still some edge types that are not fully implemented in python, and that yield an error when you try to access their Curve property.Benni wrote:File "C:\..........\Mod\Arch\importIFC.py", line 1309 in getRepresentation
if not isintance(e.Curve,Part.Line):"
Attached some code lines to reproduce the error:
Code: Select all
obj = App.ActiveDocument.getObject("Part__Feature460")
for e in obj.Shape.Edges:
if not isinstance(e.Curve,Part.Line):
print e , ' ', e.Vertexes
Code: Select all
obj = App.ActiveDocument.getObject("Part__Feature460")
for e in obj.Shape.Edges:
try:
if not isinstance(e.Curve,Part.Line):
pass
except:
print 'Undefined Curve Type: ', e, ' ', e.Vertexes
Part.show(e)
If you are interested. Load the file you posted onto FreeCAD. Click on "select all" here in the forum above the code, copy and paste the code in the FreeCAD python console.
great. Could the error be because the edges are broken? They do not show up at Part.show?yorik wrote: I'll try to change it (I think I made a DraftGeomUtils function as a workaround to that problem some time ago)
Re: IFC export doesn't work at all
If this is imported back into FreeCAD the BOP check still has some problems, but this ifc could be imported into Nemetschek Allplan. Allplan seams to have some smart routines at import to get rid of precession problems. If it is exported from Allplan again the triangulation is changed from Allplan. Finaly resulting in a valid errorfree ifc for use in Allplan or FreeCADbernd wrote:@benni:
could you test this:
EDIT: damn it still has lots of BOP errors in FreeCAD, but it is fine in Allplan, IFCPP and other viewer ...
Re: IFC export doesn't work at all
I don't know, but it's strange that Part.show would silently skip wrong edges. Usually you would get an error... In any case I'll look into this a bit further when I have a moment, there might be some quick fixes possible...bernd wrote:Yes it is. But the edges might be broken?
Re: IFC export doesn't work at all
FreeCAD is getting better and better. step-import and ifc-export. Besides some minior issues (I'm gone make a separate thread about them) with colors it worked very well.
- Attachments
-
- screen.png (211.48 KiB) Viewed 1377 times