Dataset
Onshape document and version history datasets for AI training
An Onshape dataset is an extract of a company's Onshape documents: Part Studios with their ordered feature lists, assemblies with instances and mates, drawings, FeatureScript custom features, and the workspaces, versions, branches, release packages and revisions that record how each design changed. Onshape stores no files, so the records are read from its cloud database through the API. SourceX sources it to a buyer's spec from established hardware companies that run Onshape. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Onshape documents read through the API: feature lists, assemblies, drawings and the edit history with versions and branches
- Typical systems
- Onshape company accounts, with release management where the plan includes it; Part Studios, Assemblies, Drawings and Feature Studios
- Typical history
- Specified by the buyer; history starts when a document was created or copied, and imported geometry arrives without features
- Modality
- Feature lists and assembly definitions as JSON; FeatureScript source; translated geometry and drawings
- Delivery formats
- API JSON per document, tab and microversion as JSONL; FeatureScript as text; optional STEP, Parasolid and drawing PDF keyed to the same state
- Preparation
- User IDs and names re-keyed; document, part and customer names and part numbers handled as agreed; public and shared-in documents screened
- Licensing
- Scoped per document; ownership of shared-in and linked documents and of third-party custom features reviewed; Onshape's terms checked by owner and buyer
- Availability
- Sourced to your spec by product type, modeling depth and history length; supply is 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 |
|---|---|---|
| document_ref | object | The Document: pseudonymous key, owner type, and whether it was created in the account, copied or shared in. |
| read_state | object | Where the record was read: the Workspace, Version or microversion ID, so the same state can be requested again. |
| version_graph | array | The Document's Versions and Branches: name, parent, creating user key, time and merge points. |
| history_entries | array | Document history rows in order: microversion, user key, time and the action described, such as inserting or editing a Feature. |
| tab | object | The tab, which the API calls an element: Part Studio, Assembly, Drawing, Feature Studio or imported file. |
| features | array | A Part Studio's Feature list in order: feature type, name, parameters with their typed expressions, suppression and regeneration status. |
| sketches | array | Sketch Features expanded to their entities and constraints, with the plane each sketch sits on. |
| custom_features | array | FeatureScript custom feature source from Feature Studios, with the Document and Version each one is defined in. |
| parts | array | Parts the Part Studio produces: name, material, part number, Revision and release state from their metadata. |
| configuration | object | Configuration inputs of the tab and the values the read used, since a read returns one configuration at a time. |
| assembly | object | An Assembly tab of the Document: its instances with the Document Version each references, and its Mates with mate type and limits. |
| release | object | The Release package: items, Revision labels, workflow state and approver roles with dates. |
| translations | array | Exports made from the same state, such as STEP or a Drawing as PDF, with the version or microversion each was made from. |
Field names from the table above; values are masked placeholders.
Example record
{
"document_ref": {"document_key": "doc_4b9e", "origin": "created_in_account", "owner_type": "company"},
"read_state": {"kind": "microversion", "id": "mv_0c7d31", "workspace": "Main"},
"version_graph": [
{"version": "V2 proto build", "parent": "V1", "by": "u_17"},
{"branch": "B1 lighter bracket", "from_version": "V2 proto build", "merged_into": "Main"}
],
"history_entries": [
{"microversion": "mv_0c7c88", "by": "u_17", "at": "2024-02-06T15:44:52Z", "description": "Insert feature : Extrude 2"},
{"microversion": "mv_0c7d31", "by": "u_04", "at": "2024-02-07T09:12:30Z", "description": "Edit : Fillet 1"}
],
"tab": {"element_key": "el_a2", "type": "PARTSTUDIO", "name": "Bracket"},
"features": [
{"index": 0, "feature_type": "assignVariable", "name": "#plate_thk", "parameters": {"value": "6 mm"}},
{"index": 1, "feature_type": "newSketch", "name": "Sketch 1", "parameters": {"sketchPlane": "query -> Top plane"}},
{"index": 2, "feature_type": "extrude", "name": "Extrude 1", "parameters": {"operationType": "NEW", "endBound": "BLIND", "depth": "#plate_thk"}},
{"index": 3, "feature_type": "fillet", "name": "Fillet 1", "status": "OK", "parameters": {"radius": "3 mm", "entities": "query -> 4 edges"}},
{"index": 4, "feature_type": "gussetRib", "name": "Gusset 1", "status": "ERROR", "custom": true}
],
"sketches": [
{"feature": "Sketch 1", "entities": [{"id": "e1", "type": "line"}, {"id": "e2", "type": "arc"}], "constraints": [{"type": "COINCIDENT", "on": ["e1.end", "e2.start"]}]}
],
"custom_features": [
{"feature_type": "gussetRib", "defined_in": {"document_key": "doc_4b9e", "tab": "el_f9", "version": "V2 proto build"}, "source": "fs_el_f9.fs"}
],
"parts": [
{"part_key": "p_JHD", "name": "Bracket", "material": "Aluminum 6061", "part_number": "[PN]", "revision": "B", "state": "RELEASED"}
],
"configuration": {"inputs": [{"name": "Hole_count", "options": ["2", "4"]}], "read_with": "Hole_count=4"},
"assembly": {"element_key": "el_b7", "type": "ASSEMBLY", "name": "Hinge", "instances": [{"instance": "Bracket <1>", "from": {"document_key": "doc_4b9e", "version": "V2 proto build"}}], "mates": [{"name": "Revolute 1", "mate_type": "REVOLUTE", "limits_deg": [0, 95]}]},
"release": {"package_key": "rp_31", "state": "RELEASED", "approver_role": "lead_engineer", "released_at": "2024-02-12"},
"translations": [
{"format": "STEP", "source_microversion": "mv_0c7d31"}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train text-to-CAD on construction programs
Feature lists with typed expressions and variables read as ordered programs a model can learn to write.
Learn design edits, not only designs
History rows and the states between them show what an engineer changed next.
Teach agents FeatureScript
Custom features with the Part Studios that call them pair source code with its geometric result.
Extract mechanisms for robotics
Mates with their type and limits map assemblies onto joints and kinematic structure.
Build evaluations from branches and releases
Hold back a merged branch or a released revision and score a model against what the team shipped.
Use-case guides: Coding agents, Robotics and embodied AI, Private evaluation sets
What makes this data valuable
Native features, not imports
Part Studios are built from sketches and features, with few bodies arriving through an import.
Features regenerate
Few features sit in a warning or error state at the read state.
History from creation
Documents were created in the account, so their history runs from the first edit.
Variables and configurations used
Expressions reference variables and configuration inputs, which shows parametric intent.
Versions and branches named
Versions carry meaningful names and branches were merged, marking decision points.
Releases recorded
Parts carry part numbers and revisions through release packages with approvals.
Record timeline
Onshape dataset
Onshape keeps every edit, not only the saves
An Onshape document is a container of tabs: Part Studios, assemblies, drawings, Feature Studios and imported files. Nobody saves by hand. Each modeling action writes a new immutable state of the document, which the API calls a microversion, and the document history lists these states in order with the user, the time and a short description of the action. A version is a named, frozen point in that history. A branch is a new workspace started from a version, edited in parallel and often merged back. Release packages and revisions sit on versions.
File-based CAD keeps the states someone chose to check in. Here the default record is the whole sequence, including the sketch redrawn three times and the feature added and then deleted. The API takes a microversion ID on many read calls, though not on all, so the edit made at each step can usually be derived by comparing consecutive feature lists. A Part Studio also models several parts in one feature list, so parts designed together share sketches and features. References between documents always point to a version, which keeps old assemblies reproducible.
The history has edges. A document made by copying a workspace is a new document, so ask whether any were copied and where the earlier history sits. Geometry imported from another CAD system arrives as bodies with no features behind them. And a history row describes an action in a phrase, so old and new values have to be derived from the states on either side.
The feature list is a program, and a STEP file is only its output
There is no native file to hand over. What the REST API returns for a Part Studio is its feature list as JSON: each feature with its type, its name, whether it is suppressed, and its parameters. Dimensions come back as the expressions the engineer typed, so a depth can be a number with units or a formula over variables. Sketches come back as entities with their constraints. Every built-in feature is itself written in FeatureScript in Onshape's standard library, and a company's custom features are FeatureScript in its own Feature Studios, so the list reads as calls into source code that can be delivered too.
Translations go the other way. Exporting to STEP or Parasolid gives the final solids with no features, sketches, variables or history, one configuration at a time. Drawings mostly leave as PDF, DWG or DXF, and the API can also export a drawing's content as JSON. Translations are useful as the program's geometric result, keyed to the version or microversion they were made from, and not as a substitute for it.
The JSON has gaps a sample will show. A feature that picks geometry stores a query, often a short opaque ID for a face or edge, which means nothing without the model evaluated at that state. Ask that picked faces and edges are resolved to geometry in the delivery. A configured Part Studio is read one configuration at a time, so ask which configurations the pull requested. Custom features defined in another document appear as references whose source the supplier may not own. Onshape limits API use, by a short-term rate and by a yearly call allowance that depends on the plan, so ask whether the pull read every microversion or only named versions. Then try to rebuild a few parts from their feature lists and compare the result with the translated solids.
What to check before licensing
- Have the data owner and your counsel read Onshape's terms on API use and bulk export before a pull is made and a permitted use is agreed.
- Ask which plan each document was created under. Onshape's free plan makes documents publicly accessible, so have the owner and counsel check what rights others hold in them and decide whether to exclude them.
- Check ownership of documents shared into the account by customers or suppliers, of linked documents, and of custom features defined elsewhere.
- Ask whether the pull read every microversion in the document history, only named versions, or only the current workspace.
- Measure the share of Part Studios built from native features versus imported bodies, and the share of features in a warning or error state.
- Confirm that queries were resolved to geometry, which configurations were requested, and that translated STEP or Parasolid files name the version or microversion they came from.
- Check that user IDs and names in history rows, version and release records, comments and document names are re-keyed.
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 get native Onshape files?
No, because none exist. Onshape keeps documents in its cloud database, and the closest thing to a native format is the JSON its API returns: feature lists, sketch entities and constraints, assembly definitions and metadata. Files can only be made by translation, such as STEP and Parasolid for solids and PDF or DWG for drawings, and those carry geometry without the feature history.
Does the dataset include every edit or only saved versions?
That depends on how the pull was made. Onshape records every modeling action in the document history, and the API can read past states by microversion ID, but reading every state takes many API calls and Onshape caps API use by plan. A pull of named versions only is far cheaper. Specify whether you need the full edit sequence, versions and branch points, or just the latest workspace.
Is the feature list enough to rebuild a part?
Not by itself. Geometry picks are stored as queries that must be resolved against the evaluated model. Custom features need their FeatureScript source, which may be defined in another document. And the read must name the configuration. With those in place, test it on a sample: rebuild a few parts from their feature lists and check them against the translated solids.
How does Onshape data differ from a file-based CAD archive?
In what is kept by default. A file vault holds the revisions someone checked in, and each file depends on the software release that wrote it. Onshape keeps every action with user and time, lets designs branch and merge, and returns features as readable JSON instead of a binary file. Everything depends on what the API pull captured.
Are assemblies and mates included?
Yes, as the assembly definition. It lists instances, their positions, and mates. An Onshape mate joins two mate connectors and has one type, such as fastened, revolute, slider, cylindrical, planar or ball, so one mate usually stands for one joint. Parts inserted from other documents point to a specific version of that document, so check that linked documents are in scope.
Is SourceX affiliated with PTC?
Onshape is named to identify the system the records come from. That does not imply a partnership with or endorsement by PTC. The records belong to the business that runs Onshape, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Parametric CAD files with feature histories
Native parametric models with sketches, constraints, ordered features, parameters, equations and configurations intact
- CAD models with matching drawings
Released design packages: part and assembly STEP files, each paired with the drawing issued at the same revision
- SOLIDWORKS part, assembly and drawing files
SOLIDWORKS parts, assemblies and drawings with feature trees, sketches, mates, configurations, design tables, custom properties and BOMs
- Autodesk Fusion design, CAM and electronics files
Fusion designs with timeline, components and joints, their CAM setups and operations, hub versions, and electronics schematics and boards
- Arena PLM item, BOM and change records
Arena workspace records: items and revisions, BOMs, sourcing, requests, changes with approvals, files and quality processes
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 26 November 2026.