These two tools solve different problems. A CAD viewer is built for humans — it renders a drawing so an engineer can pan, zoom, and inspect it. A CAD parser is built for software — it reads the file and returns structured data your code can process. Understanding the distinction helps you pick the right approach for your product.
A CAD viewer is a rendering engine. It reads a DWG or DXF file, interprets the geometry, and draws it on screen. The output is pixels — a visual representation for a person to look at. Examples range from desktop applications like AutoCAD and DraftSight to browser-based viewers like Autodesk Viewer.
A CAD parser is a data extraction engine. It reads the same file and produces structured output — JSON objects describing each entity, its coordinates, its layer membership, and its properties. The output is machine-readable data for software to process. CADLens is a hosted REST API that does exactly this, and optionally adds a rendered PNG so you also have a visual.
| Capability | CAD Viewer | CAD Parser (CADLens) |
|---|---|---|
| Primary output | Rendered pixels on screen | Structured JSON + optional PNG |
| Machine-readable | No | Yes — vectorJson, layersJson, metadata |
| Measurements | Manual, via UI interaction | Native drawing units in every entity |
| Layer data | Visible in UI only | layersJson: name, colorHex, entityCount |
| Automation | Not applicable | Full — call the API from any language |
| Preview image | Yes (interactive) | Yes — imageUrl (signed PNG URL) |
| Built for | Human inspection | Programmatic processing |
A common pattern in early-stage products is: open the DWG in a viewer, take a screenshot, display the PNG. This works for basic display, but it breaks the moment you need more:
If your product needs to measure, classify, filter, or transform CAD content, you need a parser — not a screenshot.
Use a CAD viewer when:
Use a CAD parser like CADLens when:
Use both when your product offers engineers an interactive view (via a viewer) and also runs automated processing in the background (via CADLens).
CADLens is a parser, but it also renders a PNG preview from the same parse run. A single call to POST /v1/parse returns a job_id. When the job completes, the result includes:
vectorJson — every entity with coordinates, layer, color, and bounding box.layersJson — layer names, colorHex, and entityCount per layer.metadata — drawing units and bounding box ({ width, height }).imageUrl — a signed URL to a rendered PNG preview, available immediately alongside the JSON.You display the PNG in your UI and process the JSON in your backend — from one API call, with no additional rendering infrastructure required.
Free tier includes 50 parse requests per month. No credit card required.