Solution · CAD quoting

The measurable half of a quoting engine, as an API.

If you are building quoting or estimating software, the hard dependency is reading the customer's drawing — reliably, for every DWG revision they send. CADLens parses it and hands your code geometry and measurements. What you charge for that geometry stays your business logic.

Start free · 50 parses/mo →View documentationSee example output
01THE PIPELINE

Drawing in, quotation out — with your rules in the middle.

CAD drawing        customer uploads DWG / DXF / DWF
     ↓
CADLens            parse → entities, layers, geometry, metrics
     ↓
dimensions         lengths, areas, perimeters, counts, extents
     ↓
your logic         material, process, machine time, margin
     ↓
quotation          the number you actually sell

The boundary sits deliberately after measurement and before pricing. Measurement is a solved, verifiable problem that benefits from being shared infrastructure; pricing is where your product differentiates, and it should not live inside somebody else's black box.

02WHAT DRIVES THE ESTIMATE

The fields an estimator actually reads.

  • Cut and path lengthmetrics.length per entity, already computed for lines, polylines and arcs, so you are not re-deriving arc lengths from angles.
  • Enclosed areametrics.area for closed profiles, and sheet-level area and boundingBox for blank size and nesting estimates.
  • Feature countssummary.statistics.byType gives counts per entity type across the drawing; circles usually stand in for holes, and their radius is in the geometry.
  • Process routingsheets[].layers with names and per-layer entity counts, mapped to operations by your own layer conventions.
  • Notes and tolerancesTEXT and MTEXT entities carry their string value and position, so callouts can be surfaced to a human reviewer rather than silently ignored.

Open a real result and click through the entity table to see these fields populated on an actual drawing.

03ALTERNATIVES

Where CADLens sits next to everything else.

There is more than one reasonable way to get geometry out of a CAD file. Which one fits depends on what you are willing to operate, not on which is "better":

  • An open-source DXF library (for example ezdxf). Excellent for DXF, in-process, no per-parse cost, and you keep full control. It does not read DWG, so you still need a conversion step in front of it, and layouts, block expansion, hatch boundaries and rendering remain your code.
  • A clean-room DWG library (for example LibreDWG). Removes the licensing question and reads DWG directly. Coverage across the long tail of DWG revisions varies, so expect to build fallbacks and a corpus of test drawings.
  • The ODA File Converter, self-hosted. This is the industry-standard conversion path — CADLens uses it internally. Running it yourself means a licence, a headless Linux environment for a GUI-era binary, process supervision, timeouts, and a queue in front of it, before you have written any parsing at all.
  • Autodesk Platform Services. Deep, first-party, and strong when you want viewing, model derivatives, or the wider Autodesk ecosystem. It is a platform rather than a single parsing call, so integration surface and output shape are correspondingly larger.
  • Convert to PNG or PDF. The right answer when a human needs to look at the drawing — and the wrong one when software needs to measure it, because a raster has no layers, no units and no entities.
  • Build the whole layer in-house. Sometimes correct, particularly if CAD parsing is your product. Budget for the parts that are not the first parse: format revisions, paper-space layouts, MTEXT formatting codes, extents and unit handling, very large drawings, conversion timeouts, and the on-call that comes with all of it.

CADLens is the hosted abstraction: one endpoint, a versioned output schema, and none of that operated by you. If the trade-offs point elsewhere for your team, they point elsewhere — that is a real engineering decision, not a marketing one.

04DEEPER DIVES

Two industries where this already runs.

The pipeline above is generic. Two narrower write-ups go into the specific fields and layer conventions each domain relies on:

  • Manufacturing quotation — hole counts, cut length, and part geometry from customer part drawings.
  • Laser cutting — profile extraction, closed-path detection, and per-process layer routing.
05 — FAQ

Questions, answered.

No. CADLens does not price anything and has no notion of materials, machines, labour rates, or margin. It returns measurable geometry — entity types, layers, coordinates, lengths, areas, perimeters, vertex counts, drawing extents — which your estimation logic turns into a number. The pricing model stays entirely yours.

Per entity: length, area, perimeter and vertexCount in the metrics object, plus a bounding box. Per sheet: bounding box, area and perimeter. Per drawing: total entity, layer and sheet counts, statistics grouped by entity type and category, and the overall extents. All in the drawing’s own units.

Two ways, usually combined. Every entity carries a category — Geometry, Annotation, BlockReference, Hatch or Other — so dimension text and notes are trivially excluded. Then filter by layer name, since most shops encode process in layers (CUT, BEND, ENGRAVE). Layer names come back verbatim with per-layer entity counts.

No. DWG, DXF and DWF are accepted directly, with no pre-conversion step on your side. File type is verified from magic bytes rather than the extension, so a mislabelled upload fails with a clear error instead of a confusing parse.

Pass mode=sync as a form field on POST /v1/parse and small drawings return the result in one round-trip. Uploads of 10 MB or more automatically continue asynchronously, as do drawings whose converted intermediate turns out very large — so build the async path regardless and treat sync as the fast case.

Nothing — for DXF from a known source it is a reasonable choice. The trade-off is operational: DWG needs a converter, format revisions keep arriving, and layouts, blocks, hatch boundaries and large-file handling are where the maintenance actually accumulates. CADLens is the hosted version of that work with a versioned output schema. See the comparison section above.

START FREE

Wire a drawing into your estimator.

The free plan includes 50 parse requests per month. No credit card, and keys are issued as soon as you sign in.

Start free · 50 parses/mo View documentationSee example output
— RELATED

Keep reading.