The developed plug-in is attached to this post. Just download the file (size 8 KB) and add the plug-in to CADEMIA via the menu bar "Misc > Add plugin". A menu choice "Export" will appear.
Now load an existing database containing curves or construct new ones. From the menu bar then chose "Export > Curves". All curves of type Line, Arc, Circle and Path will be exported to the selected text file. The export can be restricted to single components by selecting them.
In case you need the source code of this plug-in please feel free to send us an email.
Description of the export format:
- Code: Select all
COMP name type
MOVETO p_x p_y
LINETO ep_x ep_y
ARCTO ap_x ap_y ep_x ep_y
QUADTO cp_x cp_y ep_x ep_y
CUBICTO cp1_x cp1_y cp2_x cp2_y ep_x ep_y
COMP: Indicates the start of a new curve
MOVETO: moves the actual position to point p
LINETO: line from actual positon to point ep
ARCTO: arc from actual position through point ap to point ep
QUADTO: quadratic Bezier curve with control point cp from actual position to point ep
CUBICTO: cubic Bezier curve with control points cp1 and cp2 from actual position to point ep
CLOSE: closes the sub curve to the last MOVETO location