Create ASTM/AAMA compliant DXF #789
Replies: 6 comments 9 replies
-
Ezdxf can create every valid DXF structure, it's up to you where to place the expected entities. I need more information to help. EDIT:
UPDATE: This is just not true, the ASTM/AAMA standard explicit requires DXF compatibility. The problem is that Gerber Technology simply has a very bad DXF parser. Here is a solution for AutoCAD and can maybe adapted for I found this PDF online: This document presents readers with an overview of the technical aspects related to the contents and structure of digital patterns according to ASTM standard D6673 / D6963. As many official standards the ASTM D6673-10 standard is not free for download. The way I see it, organizations that don't release their standards for free don't want support from the open source community. |
Beta Was this translation helpful? Give feedback.
-
I am not sure what you want. The example file contains a block definition and a block reference to that block:
|
Beta Was this translation helpful? Give feedback.
-
Okay, I understand what you need, but this is not possible by import ezdxf
doc = ezdxf.readfile("square.dxf")
# this is a hack, don't try this at home! 😄
# delete the modelspace and all paperspace layouts
doc.layouts._layouts.clear()
doc.saveas("raises_an_exeption.dxf") |
Beta Was this translation helpful? Give feedback.
-
I hacked an "epattern" add-on in the https://github.com/mozman/ezdxf/blob/astm_d6673/src/ezdxf/addons/epattern.py from ezdxf.addons import epattern
doc = epattern.readfile("square.dxf")
# doc = epattern.new() to create a new document
doc.saveas("test.dxf")
Let me hear if this works for you, also if "epattern" is a suitable name. ASTM is a standard organization, what does AAMA mean? |
Beta Was this translation helpful? Give feedback.
-
SUMMARY
Gerber Technology applications just have an low-quality DXF parser and this add-on can help to feed them the expected data. |
Beta Was this translation helpful? Give feedback.
-
Hi! Thank you for all of this. We are waiting to hear back from our factory that uses Gerber to ensure that everything is running well now. I will update you here |
Beta Was this translation helpful? Give feedback.
-
I'm currently running into an issue importing DXFs created by ezdxf into Gerber Accumark (an apparel patterning software). The ASTM standard expects every block in the DXF to be a pattern piece. The layout blocks from ezdxf are causing import to fail.
Is there a way to save DXF blocks outside of a model space layout
Beta Was this translation helpful? Give feedback.
All reactions