<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii"><!-- BEGIN WEBMAIL STATIONERY -->
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=238142109-06022009>There is a still a problem, however: In the case of
adjacent bodies, the procedure below does not work. The reason is that each body
is represented by a closed outer surface (which becomes a line in 2D), so
that there are two surfaces (lines) between the two bodies. It follows that
SolidWorks cannot produce 2D data. So I have to take the 3D STEP as before and
manually remove the 3rd dimension and the second lines between all adjacent
bodies. This is rather tedious and takes time. (First remove the 3rd dimension:
volumes, surfaces, lines, points. Then identify the problematic regionswhere
there is a double line between adjacent surfaces. Delete one of the adjacent
surfaces. Delete the corresponding line at the interface. Delete its points.
Redefine the surface which was deleted before.)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=238142109-06022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=238142109-06022009>Any hint how this can be done in a more elegant
way would be most welcome.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=238142109-06022009>Matthias</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> gmsh-bounces@geuz.org
[mailto:gmsh-bounces@geuz.org] <B>On Behalf Of </B>Zenker, Dr.
Matthias<BR><B>Sent:</B> Friday, February 06, 2009 8:54 AM<BR><B>To:</B>
gmsh@geuz.org<BR><B>Subject:</B> [Gmsh] cross section from Solidworks into
gmsh<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=420464807-06022009><FONT face=Arial
color=#0000ff size=2>Hi all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=420464807-06022009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=420464807-06022009><FONT face=Arial
color=#0000ff size=2>I had some problems to generate 2D data from a cross
section of a 3D geometry in SolidWorks. Thanks to a note from Rich Bayless, I
have solved this problem: If you know how to do it, it is possible
to export the cross section as a 2D STEP (or IGS) file which gmsh
can read. Since I may not be the only one for whom this is useful, I want to
share the information with the list. You can find it
below.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=420464807-06022009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=420464807-06022009><FONT face=Arial
color=#0000ff size=2>Matthias</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Rich Bayless
[mailto:richard.bayless@att.net] <BR><B>Sent:</B> Friday, January 30, 2009
7:10 PM<BR><B>To:</B> Zenker, Dr. Matthias<BR><B>Subject:</B> Re: cross
section from Solidworks into gmsh<BR></FONT><BR></DIV>
<DIV></DIV><!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV><!-- BEGIN WEBMAIL STATIONERY --><!-- WEBMAIL STATIONERY noneset --></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>Hello Matthias,</DIV>
<DIV> </DIV>
<DIV>your question about extracting a cross section from solidworks was
interesting. Seems that once you create a 2D drawing from a
solidworks section view, that DWGeditor only allows saving the 2D entities
as DXF, which is not currently supported in gmsh.</DIV>
<DIV> </DIV>
<DIV>I experimented a bit and was able to do what you want, from within
solidworks. Open the 2D drawing with your desired section view
using solidworks. Solidworks will show it as a drawing, not a
part. Open a second window with a new, blank,
part. Select all desired entities, and copy/paste the entities
to the new part. The new part will show a sketch with your
entities. Select the sketch and Insert, Surface, Planar, and it will
make a surface. You can then save the surface as either igs or step,
and it will open in gmsh.</DIV>
<DIV> </DIV>
<DIV>I suspect that the above tactics will be useful for anyone using a
commercial 3D cad program.</DIV>
<DIV> </DIV>
<DIV>Hope this helps,
Rich.</DIV><!-- END WEBMAIL STATIONERY --></BLOCKQUOTE></BLOCKQUOTE><!-- END WEBMAIL STATIONERY -->
<P><FONT face=Arial size=2><BR><BR>
<TABLE id=table1 style="BORDER-COLLAPSE: collapse" width="100%" border=0>
<TBODY>
<TR>
<TD style="BORDER-BOTTOM: 3px double" width=272> </TD>
<TD style="BORDER-BOTTOM: 3px double" width=45> </TD>
<TD style="BORDER-BOTTOM: 3px double"> </TD></TR></TBODY></TABLE>
<P align=justify><FONT face=Arial color=#808080 size=1>ERBE Elektromedizin
GmbH<BR>Firmensitz: 72072 Tuebingen<BR>Geschaeftsfuehrer: Christian O. Erbe,
Reiner Thede<BR>Registergericht: Stuttgart HRB
380137<BR></FONT></P><BR></BLOCKQUOTE></FONT><p><font size="2" face="Arial">
<br>
<br>
<table border="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
<td width="272" style="border-bottom-style: double; border-bottom-width: 3px"> </td>
<td width="45" style="border-bottom-style: double; border-bottom-width: 3px"> </td>
<td style="border-bottom-style: double; border-bottom-width: 3px"> </td>
</tr>
</table>
<p align="justify"><font size="1" face="Arial" color="#808080">
ERBE Elektromedizin GmbH<br>
Firmensitz: 72072 Tuebingen<br>
Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede<br>
Registergericht: Stuttgart HRB 380137<br>
</font></p><br></BODY></HTML>