Error   : OpenCASCADE wire or line loop with tag 2 already exists
Error   : 'test_OCC.geo', line 390 : Could not add line loop

In the geo file there are several sections:

Points
Lines and Circles
Line Loops and Surfaces
Surface Loops and Volumes

The numbering starts at 1 at the beginning of each of those sections.
There is a Circle(2) and a Line Loop(2).
Does the numbering have to be unique across all types of entities in 
OpenCASCADE?

Von: Christophe Geuzaine [mailto:[email protected]]
Gesendet: Dienstag, 19. Juni 2018 15:06
An: Zenker, Dr. Matthias
Betreff: Re: [Gmsh] Export .geo as .step - "No OpenCASCADE model found"




On 19 Jun 2018, at 14:23, Zenker, Dr. Matthias 
<[email protected]<mailto:[email protected]>> wrote:

Hi Christophe,

with the latest snapshot, the export of the simple geometry is correct. 
However, the crash for the more complicated one remains…
Can I start gmsh with a parameter so that it writes error messages somewhere? I 
briefly that there are messages, but before I can open the message window, the 
application crashes.

I forgot to say that I use Windows 7.

Sure: just run on the command line : ./gmsh.exe file.geo -





Matthias


Von: Christophe Geuzaine [mailto:[email protected]]
Gesendet: Dienstag, 19. Juni 2018 14:14
An: Zenker, Dr. Matthias
Cc: [email protected]<mailto:[email protected]>
Betreff: Re: [Gmsh] Export .geo as .step - "No OpenCASCADE model found"





On 19 Jun 2018, at 13:36, Zenker, Dr. Matthias 
<[email protected]<mailto:[email protected]>> wrote:

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.

With the latest snapshot the exported brep seems correct:




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.


Can you try this more complex example with the latest snapshot?




Matthias


Von: Christophe Geuzaine [mailto:[email protected]]
Gesendet: Dienstag, 19. Juni 2018 12:12
An: Zenker, Dr. Matthias
Cc: [email protected]<mailto:[email protected]>
Betreff: Re: [Gmsh] Export .geo as .step - "No OpenCASCADE model found"



On 19 Jun 2018, at 11:47, Zenker, Dr. Matthias 
<[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__gmsh.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=aJmkHHh4JlFopOdtchxMMR8WpfirwyObbfe5dZvm5jI&s=oOo9BCxd6ik2Y3LilzXO3siUJrWG2SMlCcaucGfVl3E&e=>
 | 
http://getdp.info<https://urldefense.proofpoint.com/v2/url?u=http-3A__getdp.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=aJmkHHh4JlFopOdtchxMMR8WpfirwyObbfe5dZvm5jI&s=p-I_CGlCNx_5GYlXIrSv8_ZyxI1BTd4HwEn-j4EHSxk&e=>
 | 
http://onelab.info<https://urldefense.proofpoint.com/v2/url?u=http-3A__onelab.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=aJmkHHh4JlFopOdtchxMMR8WpfirwyObbfe5dZvm5jI&s=_F2VXzO362gGKOOaerIusnqH7IdvSWLxpCyOHF_HNSs&e=>

________________________________

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: 
Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137
<layers_OCC.step><layers_OCC.geo>_______________________________________________
gmsh mailing list
[email protected]<mailto:[email protected]>
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=aJmkHHh4JlFopOdtchxMMR8WpfirwyObbfe5dZvm5jI&s=5VLxLZ2dkvc8Th2p9MyHxWaluTUkJaujM0-dP-CJZ3c&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=aJmkHHh4JlFopOdtchxMMR8WpfirwyObbfe5dZvm5jI&s=nI_ecJZUv0jPv59S7imRcA4xwMN4SR0DkNqOlK4QJLg&e=>

Free software: 
http://gmsh.info<https://urldefense.proofpoint.com/v2/url?u=http-3A__gmsh.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=tRVJbJV6oZOMxNd5HJcYXJg2_pHprJ3fQnQEATod5BY&s=6f5TH0DIcoruM67fBCSfMLvhXQ4lV1UcbnR_DmGhMKY&e=>
 | 
http://getdp.info<https://urldefense.proofpoint.com/v2/url?u=http-3A__getdp.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=tRVJbJV6oZOMxNd5HJcYXJg2_pHprJ3fQnQEATod5BY&s=md1MJuHcUmQnf_hdIjq_MtTHk10eLiGaBkMkYpDrYCo&e=>
 | 
http://onelab.info<https://urldefense.proofpoint.com/v2/url?u=http-3A__onelab.info_&d=DwMFaQ&c=7vND7vRFB1FzfxRXc-X80O-MJSZd5Q-IVyyYW-Ff2gY&r=3enlI3TuQDmO9BnMCnxq2Mfm4tAO6Z3_Ae1Yc57DMr4&m=tRVJbJV6oZOMxNd5HJcYXJg2_pHprJ3fQnQEATod5BY&s=lLiYaY_pi0edf_zRsBxin6My5BJOcpn1sLpv5PY1QAA&e=>

________________________________

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: 
Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137
_______________________________________________
gmsh mailing list
[email protected]<mailto:[email protected]>
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=tRVJbJV6oZOMxNd5HJcYXJg2_pHprJ3fQnQEATod5BY&s=cZKaT61RcLY1NWErv1Z9wAfdf2K7ZE-cGGRV8s-chd8&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=tRVJbJV6oZOMxNd5HJcYXJg2_pHprJ3fQnQEATod5BY&s=Wqy7d9XNZPZzsK4W6wBukJQH01BnoKR9vxnj399gL2U&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

_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to