# DXF Import feature?

**URL:** <https://prepomax.discourse.group/t/dxf-import-feature/560>\
**Category:** Feature Requests\
**Created:** [November 18, 2022, 8:13pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560 "2022-11-18T20:13:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MES\_fan](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MES\_fan](https://prepomax.discourse.group/u/MES_fan)\
**Post date:** [November 18, 2022, 8:13pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/1 "2022-11-18T20:13:32Z")

</div>

Hi,  
Is there a possibility of add a DXF import feature for 2D simulations?

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [November 18, 2022, 9:40pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/2 "2022-11-18T21:40:39Z")

</div>

DXF format would be good for beams but for 2D (plane stress/strain, axisymmetric) simulations one would also have to convert the wires to faces.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 19, 2022, 10:13am UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/3 "2022-11-19T10:13:15Z")

</div>

point, line, surface and solid element could be possible to be imported to another readable format.

using available opensource DXF library may it make less complicate in the task.

---

<div class="post-metadata">

**Author:** ![i\_rokach](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@i\_rokach](https://prepomax.discourse.group/u/i_rokach)\
**Post date:** [November 19, 2022, 11:23am UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/4 "2022-11-19T11:23:51Z")

</div>

> Is there a possibility of add a DXF import feature for 2D simulations

What for?

1. Practically any CAD can convert a DXF file to one of the formats acceptable by PrePoMax.
2. There a lot free online CAD format converters for the same purpose.

Due to these reasons even some proprietary FEM pre- and postprocessors do not accept DXF. IMHO PrePoMax is not and should not be a CAD substitution program.

---

<div class="post-metadata">

**Author:** ![MES\_fan](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MES\_fan](https://prepomax.discourse.group/u/MES_fan)\
**Post date:** [November 19, 2022, 4:43pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/5 "2022-11-19T16:43:49Z")

</div>

> [@i\_rokach](#):
>
> What for?

Just for opening DXF file as a model for 2D analysys- not for using PrePomaX as CAD,

didn’t known that:

> [@FEAnalyst](#):
>
> would also have to convert the wires to faces

But this gave me an idea, to how to make a model in my 3D cad software, for that kind of analyses- extraction of one of surface from solid model, and exporting this in IGES format works.

Thanks!

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 19, 2022, 4:59pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/6 "2022-11-19T16:59:26Z")

</div>

DXF is an old format, many CAD programs supported and it less complex than IGS/STP. To my understanding not all CAD supported these format i.e AutoCAD LT and IntelliCAD standard versions.

many pre-processor FE also supported a DXF files, mostly in line and surface object for example: Nastran, SAP2000, GiD, Midas etc.

but for me it’s only good alternative file format for completeness, not a must have feature.

---

<div class="post-metadata">

**Author:** ![i\_rokach](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@i\_rokach](https://prepomax.discourse.group/u/i_rokach)\
**Post date:** [November 19, 2022, 6:58pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/7 "2022-11-19T18:58:09Z")

</div>

Look at this problem a bit realistically. Just now we have only one PrePoMax developer. His free time is quite limited and very valuable for all us. In my opinion, it is not a good idea to waste this time in order to implement the simplest operation that can be done easily using either free tools like FreeCAD or on-line converters.

PrePoMax is an excellent pre- and postprocessor for CalculiX first of all. Unfortunately, not all CalculiX cards are implemented in PrePoMax. Again, only in my opinion, improving CalculiX support in PrePoMax is more important for most users at the moment then addition of one more CAD format.

BTW, much more mature CGX also does not support DXF, although a free DXF2FBD converter is available at Github for those who need it. Similarly, GMSH also does not support DXF directly.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [November 19, 2022, 7:04pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/8 "2022-11-19T19:04:45Z")

</div>

> [@MES\_fan](#):
>
> But this gave me an idea, to how to make a model in my 3D cad software, for that kind of analyses- extraction of one of surface from solid model, and exporting this in IGES format works.

Yeah, to prepare 2D models for PrePoMax I often use Downgrade in FreeCAD which breaks a solid model into separate faces. Then I can delete the unnecessary faces and export the needed ones.

---

<div class="post-metadata">

**Author:** ![MES\_fan](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MES\_fan](https://prepomax.discourse.group/u/MES_fan)\
**Post date:** [November 19, 2022, 8:38pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/9 "2022-11-19T20:38:32Z")

</div>

> [@i\_rokach](#):
>
> DXF2FBD converter is available at Github for those who need it

Thanks!  
It will solve my problem.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 20, 2022, 4:47pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/10 "2022-11-20T16:47:11Z")

</div>

dxf2fbd is my first time to understand dxf file formats, i learn much from original codes of GMSH developer. the code has been try to porting to python codes, to parse point, line and surface object, text, layer,etc but not finished yet.

actually these small codes can read point, line and arch/circle in 3d coordinate inputs not only 2d. but it’s not working well for arch/circle objects since difficulty in defining it’s normal plane in 3d.

i did not continue to make some improvement since there’s another interesting ways using an available opensource dxf libraries. it have many advantages including the capabilities to writing, not only reading or parsing.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [November 20, 2022, 8:11pm UTC](https://prepomax.discourse.group/t/dxf-import-feature/560/11 "2022-11-20T20:11:36Z")

</div>

> [@i\_rokach](#):
>
> In my opinion, it is not a good idea to waste this time in order to implement the simplest operation that can be done easily using either free tools like FreeCAD or on-line converters.

At the moment, I agree with @i_rokach. There simply are too many other things I have to implement. And I primarily try to add features that are helpful to as many people as possible and are not possible to perform using other tools out there.
