Example .dxf file with Solid Hatch using lines and circles (not polyline)

Example .dxf file with Solid Hatch using lines and circles (not polyline)

Anonymous
Not applicable
3,638 Views
8 Replies
Message 1 of 9

Example .dxf file with Solid Hatch using lines and circles (not polyline)

Anonymous
Not applicable

I am working on a .dxf writer program adn I have to create Hatch with Solid fill using lines and circles in boundary path.
I was reading the documentation and forums, but I am not able to create a valid .dxf file, what the Autocad can open. 
The generated .dxf is openable by LibreCAD and dwgSeePro.

Can somebody explain me how can create a valid .dxf / show a working example / explain the fails in my generated file?

Accepted solutions (2)
3,639 Views
8 Replies
Replies (8)
Message 2 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Can somebody explain me how can create a valid .dxf /

>> show a working example /

Start AutoCAD, draw what you want to test, run command _SAVEAS and change the filetype to DXF and give that file a filename ... that's your DXF-file you can analyze then.

 

>> explain the fails in my generated file?

We have no access to your generated file.

 

- alfred -

 

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 9

Anonymous
Not applicable

Dear Alfred,

Thanks for Your answer!

My biggest problem is with creating hatch, that the boundaries are polyline, when I create it with autocad. And I haven't find any example, where the boundary made with simple lines, arc's and cirlce.
So I attached my test file, what I can't open with Autocad, but I can open with LibreCAD.

Thanks for You answer and help!

Best regards, Adam

0 Likes
Message 4 of 9

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

>> And I haven't find any example, where the boundary

>> made with simple lines, arc's and cirlce.

Sorry to not understand ... why searching for a sample when you can create it by yourself?

 

>> So I attached my test file

Nothing attached here.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 9

Anonymous
Not applicable

Dear Alfred,

I have read the offical documentation and I understand the structure of dxf, and the basics of the hatch. 
I get the data as lines and arcs. I can use them in the boundary path, what my code is create. And I wasn't able to creaty a valid hatch in this way until now. 
SOrry, I did a fail. Now I attached it.

0 Likes
Message 6 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Now I attached it.

No attachment arrived. Please do not use your mail system to reply, use your Internet Browser to go to this thread and use the reply button, then you get the option to add attachments.

 

>> I wasn't able to creaty a valid hatch in this way until now

Find attached a test dxf with 3 lines (0,0 to 10,0 to 10,10 and close) and a hatch (ansi31, scale 0.1) based on ACADISO.DWT

 

20190310_005655.png

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 9

Anonymous
Not applicable

Dear Alfred,

I don't find any dxf in attachement. And Your example is ANSI31, but I am using SOLID in my work.

Thanks for Your reply,
Adam Pasztor

0 Likes
Message 8 of 9

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

>> I don't find any dxf in attachement

Sorry, please find attached now...

 

>> And Your example is ANSI31, but I am using SOLID in my work

That's just a difference of the hatch pattern name, nothing else.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 9 of 9

Anonymous
Not applicable

Dear Alfred,

Thanks for You help! I could solve my problem last night!

Thanks again!

Best regards, Adam

0 Likes