When export a layer, you need to define the fileFormat parameter, e.g.
- GET api/projects/{projectId}/layers/{layerId}/file?fileFormat=fileFormat
fileFormat should be assigned one of the names OR values listed below:
For 2D Layers
| Name | Number | Description |
|---|---|---|
| AdobeIllustrator | 11 | An Adobe Illustrator file. |
| AdobePDF | 12 | A Portable Document Format file. |
| AdobePostscript | 13 | A Postscript file. |
| CFF2 | 3 | A Common File Format drawing. |
| DDES | 4 | A Digital Data Exchange Specification v2 file. |
| DDES3 | 25 | A Digital Data Exchange Specification v3 file. |
| DWG | 2 | An AutoCAD drawing file. |
| DXF | 5 | An AutoCAD Drawing Exchange Format file. |
| EasyBender | 24 | An EasyBender file. |
| Elcede | 9 | An Elcede drawing file. |
| HPGL | 8 | A Hewlett Packard Graphics Language file. |
| ImageSetter | 10 | An Image Setter file. |
| Impact | 0 | An Impact CAD drawing file. |
| Sumo | 7 | A Sumo rule bending file. |
| ViewerExchange | 28 | An Arden Software proprietary format, intended for Arden use only. |
Note. For Adobe PDF, both of the following are acceptable:
- GET api/projects/{projectId}/layers/{layerId}/file?fileFormat=12
- GET api/projects/{projectId}/layers/{layerId}/file?fileFormat=AdobePDF
For 3D Layers
| Name | Number | Description |
|---|---|---|
| Studio3DASCII | 17 | A 3D Studio ASCII file. |
| Studio3DBinary | 16 | A 3D Studio binary file. |
| COLLADA | 30 | A Collada interchange file. |
| GLB | 36 | A Graphics Library Transmission Format (binary) file. |
| GLTF | 35 | A Graphics Library Transmission Format file. |
| Impact3DInterchange | 14 | An Impact 3D interchange file. |
| OBJ | 32 | A Wavefront 3D object format file. |
| PackagedCollada | 31 | A Collada package file. |
| PLY | 33 | A Stanford Polygon 3D format file. |
| STL | 34 | A Stereolithography 3D format file. |
| U3D | 27 | A Universal 3D file. |
| VRML10 | 18 | A VRML version 1.0 file. |
| VRML20 | 19 | A VRML version 2.0 file. |
Image Preview
To generate a preview image of a layer, you can use:
- GET api/projects/{projectId}/layers/{layerId}/preview?fileFormat=fileFormat
Where the fileFormat is one of the names or values listed below:
| Name | Number | Description |
|---|---|---|
| Bitmap | 1 | A bitmap image. |
| JPG | 23 | A JPEG File Interchange Format image file. |
| Metafile | 2 | A Windows metafile format file. |
| PNG | 22 | A Portable Network Graphics image file. |
| TIFF | 26 | An Tagged Image File format file. |