Hi,
I am strugling converting textile patterns formats. I would like to write a script that can convert my file to the ASTM (new AAMA) format for textile cutters.
I need to know first how to properly set elements. Export is basicaly just DXF file format, but following some specific rules.
Within dxf file I need to be able to modify so called “dxf group codes” (Help), specificaly code 39 (Entity’s thickness) and 50 (Angle).
Any ideas how can I set this attributes to elements (point) inside Rhino?
A working sample and some nice graphics will help us a lot to understand what problem do you want to solve.
Understand.
I am trying to work on two elements “slit” (just a line of certain length and direction) and “notch” (usualy V-shape cut out in outter contour).
For dxf in AAMA or ASTM format those two elements have to be only a point on certain layer (Layer 4).
This is the definition from standard:
Aslit notch is defined by a base point with angle and depth information. It has no width.
DXF example of a slit notch, with angle 0 and length 5mm:
0
POINT
8
4 layer 4–notch
10
266.600000 X coordinate
20
176.800000 Y coordinate
30
5.000000 depth
50
0.000000 angle
A V-notch is defined by the base point along with depth, angle and width information. The width
is defined to be at the boundary, with the notch base point in the middle.
DXF example of a V-notch 4x4mm:
0
POINT
8
4 layer 4–notch
10
71.700000 X coordinate
20
-5.700000 Y coordinate
30
4.000000 depth
39
4.000000 width
50
270.000000 angle
When I create manualy point in Rhino I am modifying only codes 10, 20 and 30 (x,y,z coordinates). My question is how to change/create also 39 and 50?
I see two options here:
- there is some attribute I can define for point that can influence to write these additional codes with standard Rhino dxf export.
- have to write my own function to save dxf under certain rule (any help also on that?)
Can you share a BEFORE (initial state) and AFTER (final state) file DXF? I’m trying to understand what points do you want to change?
Do you create this files in Rhino or you import them?
Rhino and Grasshopper are extremely flexible, I do created my entire custom workflow with a custom DXF exporter for my CNC machine but you need to be more specific about what you want.