DWG, DXF and SVG ingestion for AI applications avatar

DWG, DXF and SVG ingestion for AI applications

Pricing

from $7.00 / 1,000 drawing processed

Go to Apify Store
DWG, DXF and SVG ingestion for AI applications

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

Aleksei Kudriashov

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

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
ClientSetup
GeneralAdd the URL as a remote MCP server and complete Apify sign-in. Apify MCP setup
ChatGPTEnable developer mode if required, create a custom MCP app, and enter the URL with OAuth. ChatGPT guide
ClaudeIn Customize > Connectors, add a custom connector with the URL. Claude guide
Claude DesktopAdd the URL under Customize > Connectors as a remote connector. Claude Desktop guide
Claude CodeRun the command below, then use /mcp to connect and sign in. Claude Code guide
CodexRun the command below or add the URL as a remote MCP server in the app. Codex CLI guide and Codex app guide
CursorAdd a remote MCP server in Cursor settings and use the URL. Cursor guide
OpenCodeMerge the example below into opencode.json. OpenCode guide
VS CodeMerge 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

FieldTypeDefaultMeaning
urlslist of stringsrequiredhttp or https links to .dwg, .dxf or .svg files, up to 100 MB each, at most 1000 per run
sizeinteger3000Long edge of each page image in pixels, 512 to 12000
tilesbooleantrueAlso 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).

KeyContent
dNNN-pNN.pngPNG preview
dNNN-pNN.svgvector page
dNNN-pNN.labels.jsonevery label of the page: exact text, pixel position, layer, color
dNNN-pNN.tiles.jsontile grid with the labels inside each tile
dNNN-pNN-rRcC.pngone tile
dNNN.index.jsonlayers, blocks, layouts, entity counts, title-block attributes
OUTPUTtotals 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.

EventChargedPrice per drawingPrice per 1,000
drawing-parsedEach drawing that was parsed$0.007$7
drawing-cachedEach 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-apify
dwg-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