Print Page | Close Window

Calculate the area of many DXF-file in batch

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13114
Printed Date: 03.Jul.2026 at 01:54


Topic: Calculate the area of many DXF-file in batch
Posted By: GVR207
Subject: Calculate the area of many DXF-file in batch
Date Posted: 22.Feb.2019 at 11:16
Hi All,

I need to calculate the area / surface of a couple of thousands of laser-dxf files. So the files only contains the part and no other data like text or dimensions.
Is there any tool I can use to open all the dxf files automatically and to create an export file (CSV, TXT, .....) with all the area's in it?

Hope someone can help. It's too much work to do it manually.

Thanks in advance.



Replies:
Posted By: ketxu
Date Posted: 22.Feb.2019 at 15:55
Can you post some of drawing to test ?


Posted By: GVR207
Date Posted: 22.Feb.2019 at 16:17
Here are 4 DXF files.
Thank you that you will test something.

uploads/157496/DXF-Files.zip" rel="nofollow - uploads/157496/DXF-Files.zip


Posted By: GVR207
Date Posted: 26.Feb.2019 at 14:21
Thank you for your offer ketxu.
I directly uploaded 4 dxf files last week, but that post is still waiting for approval. Unhappy
I hope you can see those files on short term.

BR,
Tjeerd


Posted By: Vladimir Michl
Date Posted: 05.Mar.2019 at 16:11
Sorry for the late approval. Have you found a way? The geometry is rather complicated (disconnected lines, isles) so it is rather difficult to automate the area calculations.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Vladimir Michl
Date Posted: 05.Mar.2019 at 16:29
Without the isles I can imagine a batch with would take all files one by one and always performs a REGION All and then writes the area of the resulting region to a table or a log file.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: GVR207
Date Posted: 05.Mar.2019 at 16:29
Thank you Vladimir for approval.
Sadly I can't change those files. That's how Siemens NX and Teamcenter is exporting the laser-DXF files.
But gladly this problem can probably be solved by someone of Siemens, but not with the use of the DXF files. But that's not really clear yet.




Print Page | Close Window