Inspect, audit, edit and generate ASCII DXF drawings completely offline
Ring-0 managed DXF automation. Inspect layers, blocks, attributes and bounding boxes, audit open contours, zero-length entities and exact duplicates, update title-block attributes or layers by persistent hex Handle, and generate clean AC1027 DXF drawings even on machines without AutoCAD.
10 of the 91 verbs · Windows x64 · Offline DXF + accoreconsole.exe + Late-bound COM
cad dxf-info --file FILE- Inspects an ASCII DXF offline (Ring 0): version, units, handle seed, layer/block/entity/attribute counts, counts by entity type, and overall bounding box
cad dxf-layers --file FILE [--limit N] [--digest]- Lists DXF layer definitions from TABLES/LAYER (color, linetype, on/frozen/locked, entityCount) plus any entity-referenced layers missing from the table (Ring 0)
cad dxf-blocks --file FILE [--include-system] [--limit N] [--digest]- Lists DXF block definitions (name, handle, basePoint, entityCount, attdefTags, insertCount) offline (Ring 0)
cad dxf-entities --file FILE [--layer L] [--type T] [--handle H] [--limit N] [--digest]- Lists DXF entities with persistent hex Handle (group 5), type, layer, space, geometry summary, and bbox offline (Ring 0)
cad dxf-attrs --file FILE [--block NAME] [--tag TAG] [--handle H] [--limit N] [--digest]- Extracts block INSERT attributes (insertHandle, attribHandle, block, layer, tag, value, position) for deterministic BOM and title-block reads offline (Ring 0)
cad dxf-audit --file FILE [--required-attrs TAGS] [--allowed-layers LAYERS] [--require-closed] [--tolerance N] [--limit N] [--digest]- Audits an ASCII DXF offline (Ring 0) for zero-length entities, open contours, exact geometric duplicates, undefined layers, disallowed layers, and empty required attributes
cad dxf-set-attr --file FILE [--handle ATTRIB_OR_INSERT_H] [--block NAME] [--tag TAG] --value VAL [--out FILE] [--apply] [--confirm]- Updates block ATTRIB value(s) in an ASCII DXF by persistent
attribHandleorinsertHandle(with--tag), or--block+--tag, with lossless round-trip preservation (Ring 0) cad dxf-set-layer --file FILE [--handle H] [--from-layer L] [--type T] --layer TARGET [--create-layer] [--color N] [--out FILE] [--apply] [--confirm]- Reassigns DXF entity layer(s) by persistent Handle (
--handle H1,H2),--from-layer, or--typeoffline (Ring 0) cad dxf-create --out FILE [--units mm|m|in] [--layers L1,L2] [--spec-json JSON] [--entities-file FILE] [--apply] [--confirm]- Creates a standards-compliant ASCII DXF (AC1027) from scratch with sequential hex handles offline (Ring 0)
cad dxf-diff --file FILE --with FILE [--tolerance T] [--limit N]- Same report as dwg-diff for two ASCII DXF files, offline (Ring 0), AutoCAD not needed
Common questions
Can I inspect, audit and edit DXF files without AutoCAD installed or open?
Yes. All dxf-* verbs (cad dxf-info, cad dxf-layers, cad dxf-blocks, cad dxf-entities, cad dxf-attrs, cad dxf-audit, cad dxf-set-attr, cad dxf-set-layer, cad dxf-create) run in Ring 0 using a managed ASCII DXF parser/writer with zero AutoCAD dependency.
What defects does `cad dxf-audit` detect?
cad dxf-audit checks for zero-length entities, open contours (promoted to error with --require-closed), exact geometric duplicates, entities on undefined or disallowed layers, and empty required block attributes.
Run these verbs on your own DWG and DXF drawings
Every verb above returns structured JSON and takes plain command-line flags. AutoCAD-CLI is local and on-premise: zero UAC elevation, zero Autodesk DLLs
redistributed, and every write is a dry run until you pass --apply. Fourteen-day free trial
with corporate e-mail, no card.
Other verb families
- Convert DWG/DXF, purge, audit, plot PDF and run batches headlessly via accoreconsole.exe6 verbs
- Attach to live AutoCAD sessions via ROT and manage open drawings safely7 verbs
- Query live AutoCAD layers, blocks, entities, attributes, XREFs, layouts and sysvars8 verbs
- Draw 2D geometry, insert blocks and update attributes or layers by persistent Handle4 verbs
- Create drawings and run 2D CAD edits (move, copy, rotate, offset, fillet, trim, array) by Handle17 verbs
- Add dimensions, hatch, MTEXT, leaders, tables, viewports, XREFs and multi-page vector PDFs9 verbs
- Create and combine 3D solids (extrude, revolve, sweep, loft, boolean, slice, section)8 verbs
- Measure quantities, extract BOMs, run 3D clash checks, diff DWGs and render PNG previews6 verbs
- Compile declarative 2D/3D scenes, buildings, rule checks and ABNT/electrical drawing specs9 verbs
- Check AutoCAD installations, ROT sessions, plugin status, drawing paths and sealed knowledge base7 verbs