# 2D AutoCAD DXF to CalculiX GraphiX FBD converters

**URL:** <https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213>\
**Category:** Uncategorized\
**Created:** [September 28, 2020, 7:15am UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213 "2020-09-28T07:15:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [September 28, 2020, 7:15am UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/1 "2020-09-28T07:15:39Z")

</div>

hi,

i make a tool utilities, an converter of 2D AutoCAD **DXF** to CalculiX GraphiX **FBD** files called [dxf2fbd](https://www.4shared.com/archive/N-EKK07Riq/dxf2fbd.html) (password: calculix.discourse.group). this small code modification and adaptation are based on works of David Colignon from GMSH source codes.

current features:

- support lines, arch & circle objects
- a circle will be split automatically to four arch objects
- Z-offset to place at some elevation
- merge coincident nodes with a coordinate tolerances

Hopes it will be useful to create base of geometry to extrude or revolve in making of three dimensional models.

thank you for your interest,

 ![2020-09-28 14_35_35-Source](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/430911f6d872ef37e0d36824f1e39804b03bce8d.png) ![2020-09-28 14_34_56-Command Prompt](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/d4ad950d7127ea805cbed520885c5664b58031f8.png) ![2020-09-27 22_22_20-example1.dxf_](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/a7773c1f30f2cc80e86f554ab3a7f6f8cd57ce45.png) ![2020-09-27 22_03_59-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/ba04ec3824a00dee655c2ec09de76ee390129eea.png) ![2020-09-27 21_57_51-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/3105ac6b1a24eb0df582ba06ba817763285570f7.png)

---

<div class="post-metadata">

**Author:** ![imirzov](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/imirzov/32/1304_2.png) [@imirzov](https://calculix.discourse.group/u/imirzov)\
**Post date:** [September 28, 2020, 9:59am UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/2 "2020-09-28T09:59:29Z")

</div>

Please, register on the GitHub. It would be cool if you could publish your amazing converter on the [https://github.com/calculix](https://github.com/calculix) group. Let me know if you’d like to join the group.

---

<div class="post-metadata">

**Author:** ![klaus.wittig](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@klaus.wittig](https://calculix.discourse.group/u/klaus.wittig)\
**Post date:** [October 4, 2020, 6:08pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/3 "2020-10-04T18:08:56Z")

</div>

Hello xyont,  
thank you for making your converter available. Your converter runs probably only on windows. Would it be possible for you to make it available on linux? And I would say that Mr. Mirzov’s proposal of using his github location is a good idea since no login would be necessary to download from that location.

Klaus

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [October 5, 2020, 3:11am UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/4 "2020-10-05T03:11:55Z")

</div>

hi **imirzov** ,  
here’s my GitHub account [links](https://github.com/xyont).

hi **klaus.wittig** ,  
the converter not depends to any external libraries, it should be simply and straight forward to compile on Linux OS.

thank you,

---

<div class="post-metadata">

**Author:** ![imirzov](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/imirzov/32/1304_2.png) [@imirzov](https://calculix.discourse.group/u/imirzov)\
**Post date:** [October 6, 2020, 6:17pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/5 "2020-10-06T18:17:32Z")

</div>

Hi xyont,

Invitation sent, please, approve it. Then in your ‘dxf2fbd’ project go to Settings -\> Options -\> Danger Zone -\> Transfer ownership. Click on ‘Transfer’ button, then type ‘calculix’ as user. Project will move to Calculix organization. All your permissions will be kept, so do not afraid. Old URL will be kept also, new URL will be [github.com/calculix/dxf2fbd](http://github.com/calculix/dxf2fbd).

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [October 7, 2020, 5:36am UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/6 "2020-10-07T05:36:30Z")

</div>

hi **imirzov** ,

i’m new in GitHub, but seems it has been done as suggested.

thank you,

---

<div class="post-metadata">

**Author:** ![imirzov](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/imirzov/32/1304_2.png) [@imirzov](https://calculix.discourse.group/u/imirzov)\
**Post date:** [October 7, 2020, 4:15pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/7 "2020-10-07T16:15:00Z")

</div>

Yep! Welcome to CalculiX on GitHub!

---

<div class="post-metadata">

**Author:** ![klaus.wittig](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@klaus.wittig](https://calculix.discourse.group/u/klaus.wittig)\
**Post date:** [October 11, 2020, 3:49pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/8 "2020-10-11T15:49:51Z")

</div>

Dear xyont,  
I just downloaded it from GitHub and compiled it on linux. It worked well with your example!

Thanks,  
Klaus

---

<div class="post-metadata">

**Author:** ![klaus.wittig](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@klaus.wittig](https://calculix.discourse.group/u/klaus.wittig)\
**Post date:** [October 12, 2020, 7:11pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/9 "2020-10-12T19:11:31Z")

</div>

![hcpy_1](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/657310da681d78c9e0a6f716df412c1f66ae4bda.png)

Just a hint:  
You can mesh the geometry after you created a surface, optionally increased the divisions and assigned an element type.  
div all mult 10  
qsur  
a // ‘all’ mode  
r r // rectangle which covers all lines  
l // select all lines  
g // generate  
plus sa all  
elty all tr6u  
mesh all  
plus f all

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [October 13, 2020, 6:16pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/10 "2020-10-13T18:16:15Z")

</div>

hi, great to see CGX can auto detected inner holes boundary.

is above result (tr6u) generated auto by Tetgen mesher? i try to reproduce using another simpler models. for now i seek quad dominate by Netgen mesher, reading the documentation it has not implemented yet. since qu8 perform better (CCX docs) is it possible in CGX for the next future?

many thanks,

 ![Mesh_Algo_Auto_Tetgen_Netgen_2D](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/2c25593a5d46281bf213743067a9b51b2c9c64b9.png)

---

<div class="post-metadata">

**Author:** ![klaus.wittig](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@klaus.wittig](https://calculix.discourse.group/u/klaus.wittig)\
**Post date:** [October 13, 2020, 6:47pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/11 "2020-10-13T18:47:18Z")

</div>

No, you need the tetgen or netgen mesher only for generating tets. And so far it is not planned to implement a qu8 auto-mesher. You would have to subdivide the structure in four sided surfaces and use the regular mesher (qu8).

---

<div class="post-metadata">

**Author:** ![Dave\_0m](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@Dave\_0m](https://calculix.discourse.group/u/Dave_0m)\
**Post date:** [April 7, 2021, 11:32pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/12 "2021-04-07T23:32:50Z")

</div>

This is a great converter.  
I was wondering if there is any such for the reverse, I.e. from .fbd to other CAD format?

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [April 10, 2021, 12:49pm UTC](https://calculix.discourse.group/t/2d-autocad-dxf-to-calculix-graphix-fbd-converters/213/13 "2021-04-10T12:49:18Z")

</div>

thanks are due to David Colignon and previous implementations, here I’m only makes a small modification to adapt with CalculiX.

translate or convert back of fbd files to dxf seems not an easy task. may possible only with some external libraries cause of dxf complexity itself. these problem can be reduce with another methods using generate script files, to be honest not all CAD software supported these file types.
