Export DWG / DXF (2D)
export_dwgExport Archicad views, layouts, or stories to DXF/DWG for CAD interchange, writing lines, arcs, texts, and fills as drawn.
Instructions
Exports a 2D window — floor plan story, section, elevation, detail, worksheet, 3D document or a whole layout (with its drawings and master layout) — as DXF, or DWG. The file is written from the primitives Archicad draws for every visible element, so it matches the view: lines, arcs, circles, polylines (with arcs), texts and fill pattern lines; layers = Archicad layers, colors = pen numbers, units mm by default. Line types and solid fills are not transferred (fills: fillBoundaries). A section/elevation window holds only its own 2D drafting — to get the model cut, place it on a layout and export the layout. format 'dwg' converts with the ODA File Converter (must be installed); for Archicad's own DWG translator publish a Publisher Set configured for DWG. Returns {file: {path, sizeBytes}, entityCount, counts, layerCount}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute output path ending in .dxf or .dwg, e.g. /private/tmp/claude-connector-tests/plan.dxf | |
| view | No | Open this navigator view/viewpoint first (a View Map view applies its saved story, layer combination, scale, zoom), then export | |
| units | No | Drawing units of the file (default mm) | |
| format | No | Output format (default: from the path extension) | |
| layout | No | Export this layout (sheet) | |
| database | No | Export this database (section, elevation, detail, worksheet, 3D document, layout, 'FloorPlan') | |
| elements | No | Export only these elements (they must be in the exported window's database) | |
| overwrite | No | Replace an existing file (default false: existing files are an error) | |
| dwgVersion | No | DWG version for format 'dwg' (default ACAD2018) | |
| storyIndex | No | Export the floor plan of this story (index or localized name) | |
| maxEntities | No | Safety limit of written entities (default 3,000,000) | |
| fillPatterns | No | Include the pattern lines of fills (default true) | |
| createFolders | No | Create missing parent folders (default false) | |
| restoreWindow | No | Bring back the window that was in front before the export (default true) | |
| fillBoundaries | No | Also write fill areas as closed polylines, solid triangles as SOLIDs (default false) | |
| includeMasterLayout | No | Layouts: include the master layout content (title block) (default true) |