DWG, DXF and SVG ingestion for AI applications
Pricing
from $7.00 / 1,000 drawing processed
DWG, DXF and SVG ingestion for AI applications
Parse DWG, DXF and SVG drawings from URLs into PNG previews, vector SVG pages, readable tiles, every text label with its pixel position (no OCR) and a metadata index, ready for RAG, search and vision models.
Pricing
from $7.00 / 1,000 drawing processed
Rating
0.0
(0)
Developer
Aleksei Kudriashov
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
dwg-apify
Apify Actor for DWG, DXF and SVG ingestion. Give it links to DWG, DXF or SVG drawings. Each result includes PNG previews, vector SVG pages, readable tiles, native text labels with pixel positions, and a metadata index for RAG, search and vision models.
Download, parsing and caching come from the dwg-mcp service; rendering from dwg2png. This repository is the Actor around them.
Use on Apify
Open the Actor in the Apify Store, enter drawing URLs, and start a run. For use from an AI client, connect through the Apify MCP server.
Client setup
Use this Actor-specific server URL. Select Streamable HTTP and OAuth in clients that ask for a transport and authentication method, then sign in to Apify.
https://mcp.apify.com/?tools=actors,docs,aileron-tech/dwg-apify
| Client | Setup |
|---|---|
| General | Add the URL as a remote MCP server and complete Apify sign-in. Apify MCP setup |
| ChatGPT | Enable developer mode if required, create a custom MCP app, and enter the URL with OAuth. ChatGPT guide |
| Claude | In Customize > Connectors, add a custom connector with the URL. Claude guide |
| Claude Desktop | Add the URL under Customize > Connectors as a remote connector. Claude Desktop guide |
| Claude Code | Run the command below, then use /mcp to connect and sign in. Claude Code guide |
| Codex | Run the command below or add the URL as a remote MCP server in the app. Codex CLI guide and Codex app guide |
| Cursor | Add a remote MCP server in Cursor settings and use the URL. Cursor guide |
| OpenCode | Merge the example below into opencode.json. OpenCode guide |
| VS Code | Merge the example below into .vscode/mcp.json, then start the server and sign in when prompted. VS Code guide |
Claude Code
claude mcp add --transport http dwg-apify 'https://mcp.apify.com/?tools=actors,docs,aileron-tech/dwg-apify'
Codex CLI
codex mcp add dwg-apify --url 'https://mcp.apify.com/?tools=actors,docs,aileron-tech/dwg-apify'codex mcp login dwg-apify
OpenCode
{"mcp": {"dwg-apify": {"type": "remote","url": "https://mcp.apify.com/?tools=actors,docs,aileron-tech/dwg-apify"}}}
If OpenCode prompts for authentication, run opencode mcp auth dwg-apify.
VS Code
{"servers": {"dwg-apify": {"type": "http","url": "https://mcp.apify.com/?tools=actors,docs,aileron-tech/dwg-apify"}}}
For more clients, use the Apify guide for Antigravity, DeepSeek Harness, GitHub Copilot, Grok Bot, Grok Build, Hermes Agent, Kimi Code CLI, Lovable, Manus, OpenClaw, or Qoder and Qwen. Use the Actor-specific URL in clients that accept a custom server URL. Apify's integration directory lists current options.
Try this prompt after connecting.
Use dwg-apify to parse https://download.autodesk.com/us/samplefiles/acad/blocks_and_tables_-_imperial.dwg and report the page count and the number of native text labels.
Input
| Field | Type | Default | Meaning |
|---|---|---|---|
urls | list of strings | required | http or https links to .dwg, .dxf or .svg files, up to 100 MB each, at most 1000 per run |
size | integer | 3000 | Long edge of each page image in pixels, 512 to 12000 |
tiles | boolean | true | Also cut every page larger than 1500 px into readable tiles |
{ "urls": ["https://download.autodesk.com/us/samplefiles/acad/blocks_and_tables_-_imperial.dwg"], "size": 3000, "tiles": true }
Output
Dataset: one item per input URL, in input order.
{"url": "https://example.com/drawings/site-plan.dwg","status": "completed","file_name": "site-plan.dwg","sha256": "a8dbe3a6...","cached": false,"event": "drawing-parsed","cost_units": 1.0,"summary": { "page_count": 2, "label_count": 8, "layers": ["0", "PIPES", "WALLS"], "...": "..." },"index_url": "https://api.apify.com/v2/key-value-stores/<store>/records/d000.index.json","pages": [{"index": 0, "name": "Model", "width": 3000, "height": 2250, "label_count": 6,"image_url": ".../records/d000-p00.png","svg_url": ".../records/d000-p00.svg","labels_url": ".../records/d000-p00.labels.json","tiles_url": ".../records/d000-p00.tiles.json","tiles": [{ "row": 0, "col": 0, "image_url": ".../records/d000-p00-r0c0.png" }]}]}
A drawing that cannot be fetched or parsed is an item with "status": "failed"
and an error (code, message); the run continues with the next URL. Codes:
download_failed, unsupported_file, too_large, parse_failed.
Key-value store: the files the items link to. dNNN is the position of the
drawing in the input, pNN the page (0 is Model space).
| Key | Content |
|---|---|
dNNN-pNN.png | PNG preview |
dNNN-pNN.svg | vector page |
dNNN-pNN.labels.json | every label of the page: exact text, pixel position, layer, color |
dNNN-pNN.tiles.json | tile grid with the labels inside each tile |
dNNN-pNN-rRcC.png | one tile |
dNNN.index.json | layers, blocks, layouts, entity counts, title-block attributes |
OUTPUT | totals of the run: drawings, parsed, cached, failed, cost units, refused charges |
Pricing events
The Actor charges per successfully processed drawing. The price depends on whether the drawing was parsed or served from the run's cache.
| Event | Charged | Price per drawing | Price per 1,000 |
|---|---|---|---|
drawing-parsed | Each drawing that was parsed | $0.007 | $7 |
drawing-cached | Each cache hit within the same run | $0.003 | $3 |
Failed drawings are free. Each drawing is charged after its files and dataset item are saved. Current Apify Store pricing
Run it
On Apify: push this repository as an Actor (apify push, or connect the Git
repository in Apify Console). The build needs to read the dwg-mcp and
dwg2png repositories.
Natively, as an Actor would be started (the environment is what Apify sets):
cargo install --git https://github.com/aileron-tech/dwg-apifydwg-apify --help
With dwg2png installed too,
dwg2png --apify starts the same program.
Limits of this version
- The cache lives inside one run: a URL or a drawing repeated in the input is a cache hit, but nothing is kept between runs.
- To bound the number of drawing charges, limit the URLs in a run.
Tests
cargo test --release
22 end-to-end tests run the built dwg-apify binary against a local stand-in
for the Apify API (input record, key-value store, dataset, charge endpoint) and
a local file server; 5 unit tests cover the pure rules. Each test carries a
REQ-APIFY-<id> requirement comment.
License
MPL-2.0