Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to reduce segments in DXF file

How to reduce segments in DXF file

How to reduce segments in DXF file

Hello! I am extracting points coordinates (X,Y) from DXF file. The problems is that there are tens of thousands of points extracted, but I need up to few hundreds points. How can I reduce the number of points and segments. The files are exported from Eagle (PCB design) and it is not too complex. I can't export new files with smaller amount of points and lines, but I can work with the DXF files using Draftsight. Thanks a lot!

RE: How to reduce segments in DXF file

I have no simple answer for your question, because I do not yet understand exactly what you need.

However, I have some (ancient) experience manipulating DXF files directly with a text editor.
That is possible because the DXF format is publicly documented.
It is not easy because DXF files tend to be quite large, and many text editors are not capable of dealing with large files.
The one I used most, back in the day, was a programming editor named PI, sold by an outfit in San Francisco. I have no idea if it's still available, but others existed. ISTR that PC-Write could do amazing stuff that no other editor could do, but I don't recall if it had a file size limit.

I am guessing that part of your problem is that curved edges were exported as polygons, and you are only interested in the centers. Perhaps you can induce Eagle to export features of interest in a different color, or on a different layer, or perhaps Eagle has a setting to export curves as curves.

You may also find the Unix/Linux tools like grep and sed and related stuff of use.

Mike Halloran
Pembroke Pines, FL, USA

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


White Paper - PLM and ERP: Their Respective Roles in Modern Manufacturing
Leading manufacturers are aligning their people, processes, and tools from initial product ideation through to field service. They do so by providing access to product and enterprise data in the context of each person’s domain expertise. However, it can be complicated and costly to unite engineering with the factory and supply chain. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close