[Gmsh] Export .geo as .step - "No OpenCASCADE model found"

Zenker, Dr. Matthias Matthias.Zenker at erbe-med.com
Tue Jun 19 13:36:32 CEST 2018


Thank you for the quick answer!
Unfortunately, it seems not to be that easy. It exports a step file now, but the geometry is not complete. I try it on a very simple geometry consisting of a three stacked boxes (see attachment). The upper one is missing in the step file.
In my “real” geometry (which I cannot share), there were many Ruled Surfaces, causing gmsh to issue warnings since Ruled Surfaces seem to be deprecated. If I replace them by just Surfaces, gmsh crashes immediately when I open the geometry with the OpenCASCADE statement at the beginning.

Matthias


Von: Christophe Geuzaine [mailto:cgeuzaine at uliege.be]
Gesendet: Dienstag, 19. Juni 2018 12:12
An: Zenker, Dr. Matthias
Cc: gmsh at onelab.info
Betreff: Re: [Gmsh] Export .geo as .step - "No OpenCASCADE model found"




On 19 Jun 2018, at 11:47, Zenker, Dr. Matthias <Matthias.Zenker at erbe-med.com<mailto:Matthias.Zenker at erbe-med.com>> wrote:

Hi,

I have a geometry built as .geo quite some time ago (with gmsh 2.x). Now I want to export it as .step for a colleague to view it in his CAD software. But gmsh complains “No OpenCASCADE model found” and refuses to write the step file. What can I do to fix that?


Gmsh never translates between CAD kernels: so if you build your model with the built-in kernel, you won't be able to "export" it as as an OpenCASCADE model.

What you could do is to add "SetFactory("OpenCASCADE")" at the beginning of your old script, and see if your geometry can get generated directly as an OpenCASCADE model. (You might have to change a few things.) Then you could export as .brep or .step.



Thanks,

Matthias


________________________________

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137
_______________________________________________
gmsh mailing list
gmsh at onelab.info<mailto:gmsh at onelab.info>
http://onelab.info/mailman/listinfo/gmsh<https://urldefense.proofpoint.com/v2/url?u=http-3A__onelab.info_mailman_listinfo_gmsh&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=FnwHLHxrRyCLSSUXVHaE4r_g4iY3iMqhXzMiHF5akRg&s=qsXrjgW8m6K4juQtzCTL1AP_WYnX3DbV8PUwiyUdYEc&e=>

—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.montefiore.ulg.ac.be_-7Egeuzaine&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=FnwHLHxrRyCLSSUXVHaE4r_g4iY3iMqhXzMiHF5akRg&s=wIxQLP_lXx2OLXcdBgZAfUoUQuqhCOXSAf3eRS1OxSo&e=>

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

________________________________

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180619/8e559b3d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: layers_OCC.step
Type: application/octet-stream
Size: 94136 bytes
Desc: layers_OCC.step
URL: <http://onelab.info/pipermail/gmsh/attachments/20180619/8e559b3d/attachment-0001.step>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: layers_OCC.geo
Type: application/octet-stream
Size: 3142 bytes
Desc: layers_OCC.geo
URL: <http://onelab.info/pipermail/gmsh/attachments/20180619/8e559b3d/attachment-0001.geo>


More information about the gmsh mailing list