Export bolt to ifc
Export bolt to ifc
Nemetschek Allplan CAD we do drawings with lacks on bolts (it is optimized for concrete structures) and is not able to import step. Since in FreeCAD we do have lots of bolts I thought I export them to ifc and import them into Nemetschek Allplan CAD.
Something went wrong. Is it FreeCAD or IfcOpenShell?
bolt in FreeCAD bolt exported to ifc and reimport into FreeCAD freecad file ifc file
Something went wrong. Is it FreeCAD or IfcOpenShell?
bolt in FreeCAD bolt exported to ifc and reimport into FreeCAD freecad file ifc file
Re: Export bolt to ifc
I added some new code some time ago that did some simplification to the triangulation that occurs with that kind of shapes. Apparently it did some mess here I must rebuild my ifc++ now to test, but we might need to add some switch to disable the simplification when needed.
Re: Export bolt to ifc
Ahh thanks, Is it possible to disable by python or by a small code change already? In the regard of a workaround?yorik wrote:I added some new code some time ago that did some simplification to the triangulation that occurs with that kind of shapes. Apparently it did some mess here I must rebuild my ifc++ now to test, but we might need to add some switch to disable the simplification when needed.
Re: Export bolt to ifc
yes, just comment line 1193 in importIFC.py and uncomment all the commented lines above...
Re: Export bolt to ifc
Just tested again with up to date FreeCAD and up to date ifcopenshell.
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6064 (Git)
Build type: Release
Branch: master
Hash: 6d237ed63ba5b55fa6001c0a5ac6bd44938aeb9c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
the bolt is even worse with classic triangulation ... see file bolt_classictriang.ifc
attaced an branch_pipe (file branch_pipe.FCStd). This one works quit well with the classic triangulation (pipe_classictriang.ifc) The new triangulation has an error for me you may interested in?
To Summarize:
------------------------------------ classic triangulation works well new triangulation has error
------------------------------------
bolt.FCStd see first post
classic triangulation is worse new triangulation has only a few faces and only FreeCAD is able to view them (they do not show in neither IfcPlusPlus nor Solibri).
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6064 (Git)
Build type: Release
Branch: master
Hash: 6d237ed63ba5b55fa6001c0a5ac6bd44938aeb9c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
the bolt is even worse with classic triangulation ... see file bolt_classictriang.ifc
attaced an branch_pipe (file branch_pipe.FCStd). This one works quit well with the classic triangulation (pipe_classictriang.ifc) The new triangulation has an error for me you may interested in?
Code: Select all
Arch workbench activated
clones table: {}
[<Part::PartFeature>]
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "C:\Daten\FreeCAD_0.16.6064_x64_dev_bin\FreeCAD_0.16.6064_x64_dev_bin\Mod\Arch\importIFC.py", line 877, in export
representation,placement,shapetype = getRepresentation(ifcfile,context,obj,forcebrep=(brepflag or FORCEBREP))
File "C:\Daten\FreeCAD_0.16.6064_x64_dev_bin\FreeCAD_0.16.6064_x64_dev_bin\Mod\Arch\importIFC.py", line 1199, in getRepresentation
for fcface in fcsolid.Faces:
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Faces'
Stack Trace: Traceback (most recent call last):
File "<string>", line 4, in <module>
File "C:\Daten\FreeCAD_0.16.6064_x64_dev_bin\FreeCAD_0.16.6064_x64_dev_bin\Mod\Arch\importIFC.py", line 877, in export
representation,placement,shapetype = getRepresentation(ifcfile,context,obj,forcebrep=(brepflag or FORCEBREP))
File "C:\Daten\FreeCAD_0.16.6064_x64_dev_bin\FreeCAD_0.16.6064_x64_dev_bin\Mod\Arch\importIFC.py", line 1199, in getRepresentation
for fcface in fcsolid.Faces:
------------------------------------ classic triangulation works well new triangulation has error
------------------------------------
bolt.FCStd see first post
classic triangulation is worse new triangulation has only a few faces and only FreeCAD is able to view them (they do not show in neither IfcPlusPlus nor Solibri).
Re: Export bolt to ifc
Hmm I guess we need to extend the triangulaiton options to support the full Mesh options, like I did for Collada...
*Edit* but your object above exports and reimports correctly for me with classical triangulation (see attched). The new one however has a bug, I'm fixing that right now
*Edit* but your object above exports and reimports correctly for me with classical triangulation (see attched). The new one however has a bug, I'm fixing that right now
- Attachments
-
- t1.ifc
- (143.2 KiB) Downloaded 100 times
Re: Export bolt to ifc
would be cool.yorik wrote:Hmm I guess we need to extend the triangulaiton options to support the full Mesh options, like I did for Collada...
Same for me. I posted the file because of the error on the new triangulation.yorik wrote:*Edit* but your object above exports and reimports correctly for me with classical triangulation (see attched). The new one however has a bug, I'm fixing that right now
Re: Export bolt to ifc
the new options are in. Preferennces -> ifc-> use DAE options (then in the DAE tab, set somethings that works for you...)
Re: Export bolt to ifc
for reference from a privat conversation ...
But Triangulation is is what most product manufacturers do. See attached files.
Wow the nurbs stuff would be cool ...... triangulating shapes is anyway a bad solution. At some point, this is what we should go for:
http://www.buildingsmart-tech.org/ifc/I ... edbrep.htm
Since any surface in OCC can always be turned into a nurbs surface, this would give us 100% of fidelity.
But I'm a bit afraid of the headache it wil give to implement this
I'm also not sure many other app support it, I haven't found existing examples on the net so far...
But Triangulation is is what most product manufacturers do. See attached files.
- Attachments
-
- ancor.zip
- (195.01 KiB) Downloaded 79 times
-
- radiator.zip
- (303.54 KiB) Downloaded 79 times