Import a DXF drawing
import_2dImport a DXF as a new project, extruded into solid geometry. Unlike a mesh import this stays PARAMETRIC — every closed outline becomes an extrude node whose profile and height you can then edit, so a drawing someone sent you becomes a model you can change. The response reports what the file declared its units to be, and names any entity types it contains that were not read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An https address we fetch server-side. For a file already on the web. | |
| name | No | Project name. | |
| base64 | No | The .dxf file bytes, base64-encoded. Max 6 MB decoded. Only usable if your own CODE fills this in — if the file is on disk, call create_upload and send `ticketId` instead. | |
| height | No | Extrusion depth in mm (default 5, minimum 0.1). | |
| ticketId | No | A create_upload ticket, minted for `dxf`, whose file has been PUT. | |
| unitFactor | No | Millimetres per file unit, overriding what the file declared. Set this only after reading the reported unit and finding it wrong — most DXFs declare one correctly. |