Dmytro Vakulenko
← All products

DWH — DWG API & Rendering

An independent, Rust-native DWG core with C, C#, and JavaScript APIs for reading, editing, writing, and rendering.

Demo

SDK overview

One Rust core, four languages.
Reads
R13–R2018
8 format versions
Writes
R2018
lossless round-trip
Languages
4
Rust · C/C++ · .NET · WASM
Typed families
43
16 entities · 18 objects · 9 symbol tables

Code example

Pick record families below. The example rewrites itself.

Graphical entities 16

Non-graphical objects 18

Symbol tables always

Drawing structure

const doc = new DwgDoc(bytes);
const model = Document.getRootAsDocument(doc.compile());

model.layers(0).name();                    // "0"  - a LAYER record
for (const e of entities(model))           // every entity, in draw order
  if (e.bodyType() === EntityBody.MText)
    console.log(e.bodyAsMText().text());   // the MTEXT's content
Nothing selected

Testing

Tested against thousands of drawings, with round-trip checks and AutoCAD validation.

API reference

Brief reference per language.

Ship it yourself

Three files on your own hosting. No runtime dependency on us — if our servers are down, your product still works.
dwg_wasm.js JavaScript bindings for the engine.
dwg_wasm_bg.wasm The engine. Requires a valid signed lease.
LICENSE.txt The licence terms. Serve alongside the engine.
Download v0.12.0 ↗
base=https://stdwhsdkdist.blob.core.windows.net/sdk/v0.12.0
curl -O $base/SHA256SUMS
while read -r _ f; do curl -sO $base/$f; done < SHA256SUMS
sha256sum -c SHA256SUMS

SHA-256, v0.12.0

Also published beside the files. These sit on a different host. Compare the two.

LICENSE.txt
5bc88c319ba5d4f0576e32891b92ff74f4c6cd3aa71b96362e0506d537de5b81
dwg_wasm.d.ts
5fde6e9704ec54b8bd52024da92546183de0fa3764d293e16eacf62d0c864f88
dwg_wasm.js
2d3a6f27e2e800324f5e581b2d7ed102a41ab89102f25c2b05c987d19a1a9156
dwg_wasm_bg.wasm
8a5e039e3869a27b487af2ce7f8dda32005d604e6ad4879e1da8d0f8f5ddf4f2
dwg_wasm_bg.wasm.d.ts
a5f64e48c45936efafd6eeb354a64a202a6a201e4944e1e63a1f8ad16264e7d4

Keys and domains

The SDK requires a publishable key, included in your frontend code. Register the domains where you use it.

site.com and www.site.com count as two. So do staging and production. localhost is free.

PlanRegistered origins
Free2
Basic4
ProUnlimited

Use is subject to the SDK licence. Read the licence ↗

Integration guide ↗
Ask about the product ↗