Export DXF with fill for ShapeString

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Lerche
Posts: 4
Joined: Fri Jul 22, 2022 6:16 am

Export DXF with fill for ShapeString

Post by Lerche »

Hi!

I've been googling my head of and looking thorugh this forum for an answer.

I've designed a 2D drawing, with text(ShapeString), and several other paths, created from sketches, but also from drafts.
The draft is no issue, everything work as expected.

When I export as DXF using legacy exporter (using the new exporter, the exported file is not recognized by the online lasercutting/engraving service, as well as other services[online DXF file viewers]), I only get the lines from shapestring, no fillcolor, so no possibility to raster-engrave this area.
Anyone has a workaround?

I have tried upgrading the shapestring through draft without luck.

Am I misunderstanding the DXF format, so the DXF is not possible to create "flat colored areas"?

Thanks in advance.

DATA:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Danish/Denmark (da_DK)
Attachments
Green part is not exported in DXF
Green part is not exported in DXF
2022-07-22_09h24_06.png (18.72 KiB) Viewed 1202 times
Shapestrings
Shapestrings
2022-07-22_09h23_51.png (18.82 KiB) Viewed 1202 times
User avatar
Roy_043
Veteran
Posts: 8550
Joined: Thu Dec 27, 2018 12:28 pm

Re: Export DXF with fill for ShapeString

Post by Roy_043 »

The DXF format supports solid hatch patterns, but the FreeCAD DXF exporter does not create them.

As a workaround you might try using Draft_Hatch. Note that this results in linework when exported to DXF, and I do not know how a lasercutter would distinguish the hatch pattern from the outline that needs to be cut.

If your lasercutting service accepts SVG then that would be an option.
Lerche
Posts: 4
Joined: Fri Jul 22, 2022 6:16 am

Re: Export DXF with fill for ShapeString

Post by Lerche »

I tried the Hatch, but only after updating to 0.20.

Now the Draft Layer is breaking the DXF export. File not recognized by cutter service (or other online DXF file viewers).
I removed the layes and export the whole thing by clicked each draft, text, everything. Works (still with no fill color for the shapestring).
Afterwards I setup layers again, now the DXF is not recognized.

Data:
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Danish/Denmark (da_DK)
Installed mods:
* 3D_Printing_Tools
* Assembly4
* dxf-library
* fcgear
* kicadStepUpMod 10.11.9
* Manipulator
User avatar
thomas-neemann
Veteran
Posts: 11915
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Export DXF with fill for ShapeString

Post by thomas-neemann »

Lerche wrote: Fri Aug 19, 2022 9:58 am ...
can you upload the fcstd and dxf file somewhere?
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Lerche
Posts: 4
Joined: Fri Jul 22, 2022 6:16 am

Re: Export DXF with fill for ShapeString

Post by Lerche »

Sure thing - I just created and checked these: https://we.tl/t-KvRuJFH8mL

Simple files, but they perform just the others I work with.
User avatar
thomas-neemann
Veteran
Posts: 11915
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Export DXF with fill for ShapeString

Post by thomas-neemann »

Lerche wrote: Fri Aug 19, 2022 10:44 am ...
when i open the file without layers in librecad, layers are shown.
Bildschirmfoto_2022-08-19_13-14-37.png
Bildschirmfoto_2022-08-19_13-14-37.png (46.46 KiB) Viewed 957 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Lerche
Posts: 4
Joined: Fri Jul 22, 2022 6:16 am

Re: Export DXF with fill for ShapeString

Post by Lerche »

They are placed within the layers structure, and I just tried exporting by having both cut and raster highlighted, this works.

So highlighing only the "Layers" structure will not export correctly, as it does in ver 0.19.

So far so good - Do you have any idea of hos to infill the text in the DXF? I have tried all advises here, nothing works.

Thanks!
User avatar
thomas-neemann
Veteran
Posts: 11915
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Export DXF with fill for ShapeString

Post by thomas-neemann »

Lerche wrote: Fri Aug 19, 2022 11:43 am ... Do you have any idea of hos to infill the text in the DXF? I have tried all advises here, nothing works.

...
as far as i know dxf only contains lines, arcs, splines and points. the iges format can transfer faces
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8550
Joined: Thu Dec 27, 2018 12:28 pm

Re: Export DXF with fill for ShapeString

Post by Roy_043 »

Lerche wrote: Fri Aug 19, 2022 11:43 am I have tried all advises here, nothing works.
As already explained, using a hatch works fine. See attached files.
Attachments
Shapestring_Test_export_settings.png
Shapestring_Test_export_settings.png (58.43 KiB) Viewed 895 times
Shapestring_Test.FCStd
(36.51 KiB) Downloaded 16 times
Shapestring_Test.dxf
(64.32 KiB) Downloaded 22 times
catman
Posts: 412
Joined: Fri Jan 11, 2019 10:42 pm

Re: Export DXF with fill for ShapeString

Post by catman »

Lerche wrote: Fri Jul 22, 2022 7:26 am When I export as DXF using legacy exporter (using the new exporter, the exported file is not recognized by the online lasercutting/engraving service, as well as other services[online DXF file viewers]), I only get the lines from shapestring, no fillcolor, so no possibility to raster-engrave this area.
Anyone has a workaround?
Some years I had a similar problem with a machine that would not accept the exported FreeCAD DXF. My workaround was to import it into Corel Draw and export it from there again as DFX 2007. This file could be read by the software. Maybe exporing SVG and then convert it to DXF is also a workaround. In find that Inkscape can be used very well to inspect the file and clean up any errors, e.g. multiple generated lines.
Post Reply