Dataset
DWG datasets and DXF drawing archives for AI training
A DWG dataset is an archive of native AutoCAD drawing files, in DWG or DXF, kept with the structure drafters built into them: layers, block definitions and attributes, external references, paper space layouts and plot settings. SourceX sources these on request from established engineering firms, fabricators and facility owners that hold them on project drives, across mechanical, architectural, electrical and civil work, and reviews who owns each drawing, since much of it was made for clients. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Native DWG and DXF files with layers, blocks, attributes, xrefs, layouts and plot settings intact
- Typical systems
- AutoCAD and its toolsets, AutoCAD LT, BricsCAD, DraftSight; project folders on file servers
- Typical history
- Varies by holder; archives can reach back to early CAD work and may be the only record of it
- Modality
- Vector CAD files; structured layer, block and attribute tables; plotted PDFs where the holder kept them
- Delivery formats
- Agreed per order; DWG in a named release format or DXF, complete or bound xref sets, JSONL file manifest
- Preparation
- Title block attributes, logos, drawing properties and saved paths replaced; client and site identifiers removed
- Licensing
- Drawing ownership reviewed per project; confirm clients approved release of work made for them and that drawings of sensitive sites are left out
- Availability
- Sourced to your spec from holders that agree to license; not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| drawing_id | string | Pseudonymous, stable ID of the file, used by xref records and the manifest. |
| discipline | enum | Mechanical, architectural, structural, electrical, piping or civil, as the holder filed it. |
| file_format | object | DWG or DXF, the release format the file was saved in and the declared drawing units. |
| layers | array | Each layer's name, color, linetype, its on, frozen, locked and plot flags, and its entity count. |
| layer_standard | object | The standard the holder says applied and the measured share of entities on conforming layers. |
| blocks | array | Block definitions with name, insert count, nesting, and whether the block carries attributes. |
| attributes | array | Tag and value of each attribute on each block insert, such as equipment tags. |
| entity_counts | object | Counts by entity type: lines, polylines, arcs, text, dimensions, hatches and block inserts. |
| xrefs | array | Each external reference: attach or overlay, its saved path form, and whether it was found, missing or bound. |
| layouts | array | Paper space layouts with plot style table and each viewport's scale and frozen layers. |
| fonts | array | The font or shape file each text style names and whether that file was resolved. |
| custom_objects | object | Count of proxy objects in the file and in its references, with the application that created them. |
| open_check | object | Result of opening and auditing the file in the reader named in the order. |
| ownership_basis | object | The holder's role on the project, the basis for release and the sensitive-site check result. |
Field names from the table above; values are masked placeholders.
Example record
{
"drawing_id": "dwg_e201_5fa3",
"discipline": "electrical",
"file_format": {
"type": "DWG",
"release_format": "AutoCAD 2013 format (AC1027)",
"units": "inches"
},
"layers": [
{
"name": "E-LITE-CLNG",
"plot": true,
"entities": 412
},
{
"name": "E-LITE-CIRC",
"plot": true,
"entities": 198
},
{
"name": "0",
"plot": true,
"entities": 36
},
{
"name": "temp-jk",
"plot": false,
"entities": 12
}
],
"layer_standard": {
"stated": "National CAD Standard layer format",
"conforming_entity_share": 0.93
},
"blocks": [
{
"name": "LT-2X4-TROFFER",
"inserts": 96,
"has_attributes": true
}
],
"attributes": [
{
"block": "LT-2X4-TROFFER",
"tag": "TYPE",
"value": "A1"
},
{
"block": "LT-2X4-TROFFER",
"tag": "CIRCUIT",
"value": "LP2-14"
}
],
"entity_counts": {
"insert": 96,
"lwpolyline": 301,
"line": 148,
"mtext": 92,
"hatch": 21
},
"xrefs": [
{
"name": "X-A-FLOOR-02",
"type": "overlay",
"path_form": "relative",
"status": "found"
},
{
"name": "X-S-GRID",
"type": "attach",
"path_form": "absolute",
"status": "missing"
}
],
"layouts": [
{
"name": "E-201",
"plot_style_table": "office-std.ctb",
"viewports": [
{
"scale": "1:96",
"frozen_layers": [
"X-A-FLOOR-02|A-FURN"
]
}
]
}
],
"fonts": [
{
"file": "romans.shx",
"resolved": true
},
{
"file": "elecsym.shx",
"resolved": false
}
],
"custom_objects": {
"proxy_count": 0,
"proxies_in_xrefs": 64
},
"open_check": {
"errors": 0,
"warnings": [
"1 xref not found",
"1 font substituted"
]
},
"ownership_basis": {
"holder_role": "engineer_of_record",
"release": "client_consent_on_file",
"sensitive_site": false
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Recognize symbols in vector drawings
Layer names and block inserts label each object's class, position and rotation, which is ground truth for segmenting drawings.
Train raster-to-vector conversion
Plotting each layout to an image gives an exact pair of pixels and the entities that produced them.
Extract tags and schedules
Block attributes hold equipment tags, circuit numbers and title block fields, the targets for extraction from plotted sheets.
Build drafting assistants
Real files show how drafters layer, block and annotate work, for cleanup and layer translation tasks.
Test agents on real file handling
Missing xrefs, substituted fonts and proxy objects are test cases for agents that must open, repair and plot drawings.
Use-case guides: Document AI, enterprise search and RAG, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Layer standard named and followed
A stated standard with a measured conformity rate shows how far the labeling can be trusted.
Blocks left intact
Symbols that are still block inserts keep their class and their attribute values.
References resolve
Every xref is found or bound and listed in the manifest.
Layouts and plot styles present
Layouts and the plot style table let each sheet be reproduced as issued.
Fonts and shape files supplied
Text renders with its original widths when the font files travel with the drawings.
Clean open in a named reader
An audit result per file shows it opens without repair in your software.
Document stack
DWG dataset
Layers, blocks and attributes are the firm's own labels
A DWG is a database of drawing objects, and its drafters labeled those objects as they worked. Every entity sits on a named layer. A repeated symbol is an insert of a named block definition, placed with a rotation and a scale. A block can carry attributes, each a tag with a value: a door number, a valve tag, a title block field. DXF makes this plain to read, since each entity record carries its layer name and each insert names its block and is followed by its attribute values. An insert of a receptacle block is a located, oriented, classified symbol, with no annotator involved.
How much of that meaning can be recovered depends on the layer standard. The United States National CAD Standard, used for building work, builds a layer name from a required discipline designator and major group and optional minor group and status fields, separated by dashes. ISO 13567 sets out a different scheme of fixed-length fields, and facility owners impose their own on consultants. Mechanical drafting tends to use a few layers named for line types, so its meaning sits in blocks and dimension objects. Ask which standard applied.
Then measure how closely staff followed it. Objects are drawn on layer 0 or on whatever layer was current. Color and linetype are set per object to fix a plot, so they no longer follow the layer. Blocks are exploded into loose lines, and their attribute values are then discarded or left as loose text, depending on the tool. All of this can be counted on a sample: the share of entities on layers that parse against the standard, the share with ByLayer properties, and the number of symbols that are still block inserts.
A DWG is rarely self-contained
A sheet file can be nearly empty by design. The title block, the background plan and the structural grid are external references, each a separate DWG stored as a path. Copy the sheet without those files, or with absolute paths that no longer resolve, and it opens with the reference missing. An xref attached as an overlay is not carried along when its host is itself referenced. Binding folds a reference into the host, but depending on the bind option its layers are either renamed with the reference name as a prefix or merged into host layers of the same name. So choose: complete xref sets with relative paths, or bound files that stand alone.
Other dependencies sit outside the file too. Text styles name font files, among them SHX font and shape files, and a reader that cannot find one substitutes another font, which can shift text widths. Plot style tables, the CTB files that map colors and the STB files that map named styles to pens and lineweights, are separate files. Objects created by vertical products and add-ons, such as walls from an architectural toolset, generally appear as proxy objects in software that lacks the application or object enabler that defines them.
Model space and paper space are the last trap. Geometry is drawn full size in model space, and each sheet is a layout in paper space that looks at it through viewports, each with its own scale and frozen layers. Reading model space alone can return every option, phase and discipline overlaid at once. DWG is also a series of release formats, such as the 2010, 2013 and 2018 formats, and a reader has to support the one a file was saved in. The spec should name the DWG release format, the reader every file must open in without errors, the handling of xrefs, and the fonts and plot styles to be delivered, and should ask for drawing units to be declared, since a file can be saved as unitless.
What to check before licensing
- Ask on what basis the holder may license each project. Design firms, fabricators and facility owners hold drawings made for or by other parties, so check contract terms and look for other companies' names in title blocks.
- Confirm that drawings of sensitive sites, such as utilities, data centers, secure facilities and security system layouts, are left out before any file is prepared, and ask how they were identified.
- Open a sample in the reader you will use. Count unresolved xrefs, substituted fonts, proxy objects and files that needed recovery.
- Measure layer conformity yourself: parse layer names against the stated standard and count entities on layer 0 and on ad hoc layers.
- Ask which files were drawn natively and which were exported from a BIM or other CAD system, and whether blocks or dimensions were exploded.
- Review de-identification inside the files: title block attributes, drawing properties, saved xref paths holding server and user names, embedded images, and real-world coordinates that locate a site.
- Ask how duplicates were handled. Project drives hold backup files and superseded copies, so ask which copy is the issued one and which blocks came from manufacturers' libraries.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Can I license native DWG and DXF files for AI training?
Yes, where a firm, fabricator or facility owner with the right to release its drawings agrees. You describe the disciplines, drawing types, layer standard and file condition you need, and SourceX looks for holders with matching archives. Each project goes through rights review for who owns the drawings, and the dataset is not delivered before a signed agreement. Supply is not guaranteed.
Should I ask for DWG or DXF?
Ask for DWG as the record, and for DXF as well if your pipeline parses text. DWG is AutoCAD's native binary format, read through Autodesk software or a third-party library. DXF is the exchange format Autodesk publishes a reference for, and it lists layers, block definitions and entities as tagged values. That reference does not cover every object type, so a DXF export may not carry everything a custom object held.
What happens to external references on delivery?
That is a choice you make in the spec. Xrefs can be delivered as a complete set of files with relative paths, which keeps the firm's structure, or bound into each host file so that every drawing stands alone. Binding can change layer names, so pick one method and one bind option for the whole delivery. Ask for a manifest that lists each reference as found, missing or bound.
How consistent are layer names in a real drawing archive?
It varies by firm, by project and by year, which is why you measure it. Parse every layer name against the standard, count the entities on layers that do not conform, and count the symbols that are still block inserts. Set a minimum conformity in the request, or ask for the measured value per drawing so you can filter.
Who owns drawings a firm produced for its clients?
It depends on the contract for each project, so it has to be checked per project. Design firms, clients, fabricators and facility owners can each hold copies of the same drawing with different rights in it. Ask the holder for the basis on which it may license each project, and have counsel review the terms.
How is this different from an engineering drawing or plan set dataset?
A DWG dataset is defined by the native file and the structure inside it. An engineering drawing dataset is about what the sheet says, its dimensions and tolerances, and includes scans with no CAD file behind them. An architectural plan set dataset is organized by sheet set and issue stage. Civil site plans center on survey and design surfaces.
Related datasets
- Engineering drawings with GD&T
Dimensioned 2D manufacturing drawings with tolerances, GD&T, notes, title blocks and revision blocks
- Architectural plan sets, permit sets and as-builts
Whole sheet sets for building projects at each issue: design, permit, construction and as-built, with sheet index and correction letters
- CAD and PCB engineering files with revision history
Native CAD and ECAD design files with revisions, change orders and BOMs
- Civil engineering and site plans
Survey, existing and proposed surfaces, grading, drainage and utility design, and the plan sheets submitted for approval
- BIM models and architectural design files
Design-side building files: BIM models, drawing sets, specifications and the review comments and revisions behind them
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.