This article describes the export tuning file syntax for
DDES are packaging
CAD formats for diemaking.
DWG are AutoCAD formats for general
DXF is a text file used as an exchange between different
CAD systems and
DWG is a native AutoCAD binary format.
EPSF is postscript for creating vector-based graphics files. ArtiosCAD can output its native format to these common file formats. The export tuning is used to convert ArtiosCAD line types to line styles of the appropriate format.
Export tuning files are installed in
DDES3 does not need an export tuning file as its internally mapped.
A user will run an export from ArtiosCAD and select one of the previously configured formats.
That export will have properties and one of those properties will be a tuning file. ArtiosCAD already supplies a number of export tuning files and configures them with the export.
The supplied tuning files should be sufficient in most cases. However, there may be cases where a user will want to change properties or linestyles for the export format. This has to be done manually in a text editor as ArtiosCAD currently does not have a GUI option for export tuning. This article describes how to configure tuning properties.
Tuning File Format
Each tuning file for the
EPSF and outputs consists of a header followed by a list of pairs of lines. The header consists of two lines as follows:
|Option||V2.0||Export tuning version to allow for future changes. If the first line is not exactly |
|1||placesinch||Number of decimals when units inch, ignored for |
|2||placesmm||Number of decimals when units mm, ignored for |
|3||icorner||=1 output corner as triangle consisting of three lines (suitable for die), =0 output arc (suitable for rule bender).|
|4||rotnegtrans||=1 means combine the rotation and negation parts of the transformation for includes the wrong way round (some applications misinterpret the |
|5||round64ths||=1 means round numbers to 1/64ths when close, e.g. 3.062498 -> 3.0625. Stop diemakers from complaining that ArtiosCAD is "inaccurate". Ignored for |
|6||centerorigin||=0 use design origin, =1 origin is center of design bounding box. Ignored for |
|7||offsetedgetypes||=0 output edge types as is, =1 convert edge types to pointage 2 and apply 1 point offset.|
|8||nolayers||=0 or absent with layers, =1 |
=1 export splines converted to arcs back to spline if single segment, non-modified (no added nicks, bridges) and number of control points = degree+1, 0= convert as arcs
|9||heighttable||(Not applicable to any of the formats listed here; for |
|9||widthtable||(Not applicable to any of the formats listed here; for |
The line type tuning consists of pairs of lines where the first line defines input attributes from ArtiosCAD, and the second of each pair defines the output attributes to the commonf file format.. The character "*" serves as a wild card. The format of the first of each pair of lines is:
layerclass linetype subtype minslotwidth maxslotwidth iwarning
The format of the second of each pair of lines is:
|(For ||type auxtype slotwidth. See cff2 spec|
|(For ||colornumber layername linestyle|
|(For ||strokewidth linestyle layername colorname cyan magenta yellow black|
|layerclass||(Future, placeholder) class of design layer, not yet supported|
|linetype||ArtiosCAD generic line type, or special rule name, with spaces replaced with underline characters, * or -1 = any, -2 = do not output. For a list of ArtiosCAD linetypes, see the ArtiosCAD 'List of line types' appendix in the user guide at http://help.esko.com . Special rules which can be mapped to a file format line type will be mapped to the line type (example perf, cut/crease). Other special rule (example zipper, wave, zigzag) will be expanded to lines and arcs|
|subtype||ArtiosCAD subtype, or * = any|
|minslotwidth,maxslotwidth||Range of slot widths in mm (see slot widths below), * = any.|
|iwarning||(Future, placeholder) =1 means warn if this type present, not supported in ArtiosCAD 3.0 outputs|
|auxtype||Auxiliary type for |
|slotwidth||Output slot width = pointage * 0.3556, * = same as ArtiosCAD slot width.|
|ruleheight||Optional, rule height to use in mm if the line type in ArtiosCAD has no rule height or zero rule height|
|layername||Output layer name, with underlines for spaces|
|strokewidth||Stroke width of the stroke in the |
|colorname||Name of the color of the stroke in |
|cyan,magenta,yellow,black||Color of the stroke in |
For the current project, the layerclass and iwarning parameters are placeholders that are included for completeness because they are mentioned in the Export Tuning spec. It is intended that they should be implemented as part of the future Export Tuning project.
Example tuning file for
Example tuning file for
Example tuning file for
Slot widths are equivalent to rule pointage.
For generic rules, the slot width =
pointage * 0.3556 (
For special rules, the slot width may be part of the special rule definition for example, wave or zigzag special rule, or uses pointage.
If the wildcard '*' is used, the pointage of the special rule will be used, else the slot width will be mapped according to the user-specified value and entered in the resulting formatted file.
Line style Output for
The line style can be specified as "continuous", "dashed", "dashdot", "dotted", or a specific pattern such as "5_2_1_2_1_2" can be specified. The pattern can have 2,4 or 6 numbers, and the numbers specify the length of on,off,on,off.
Block Output for
CFF2, outputs support subroutines, but not when the output is tiled. DXF supports blocks (almost the same thing). If "Use subroutines" is checked on, each subroutine will be output as a block in
Selection of Text and Graphics
Text and dimensions should be selected in the tuning file as text type 20. Graphics should be selected as print image type 14.
DXFformats which don't support graphics, vector graphics are output as print image lines. Bitmaps are omitted.
- Bitmaps are omitted in
3output (but included in
- Bitmaps in
EPSFoutput are represented in hex, uncompressed and are rather large.
ArtiosCAD all versions