Dataset
Mastercam toolpath file datasets for AI training
A Mastercam dataset is a set of a machine shop's Mastercam part files (.mcam), each holding part geometry with its machine groups, toolpath groups, operations, tools, stock setups and planes, together with the NC programs and setup sheets posted from them. SourceX sources it to a buyer's spec from established businesses that run Mastercam, such as job shops and in-house manufacturing engineering groups. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Mastercam part files with their operations, tools, stock and planes, plus posted NC programs, setup sheets and post processors
- Typical systems
- Mastercam Mill, Lathe, Router, Wire and Mill-Turn part files; tool libraries, operation defaults and post processors where their owner clears them
- Typical history
- Specified by the buyer; revisions exist as saved file copies, not as history inside the file
- Modality
- Binary part files with geometry and operations; plain-text NC programs and post processors; operation parameters extracted to records
- Delivery formats
- Agreed per order; .mcam as saved, geometry as STEP or Parasolid, operations as JSON, toolpaths as NCI text and NC files as text
- Preparation
- Customer names, part numbers and drawing references removed from file names, comments, level names and NC headers; programmer names replaced
- Licensing
- Rights reviewed per shop; ownership of the part geometry, export-control status, the post processor's own license and the vendor's terms are checks for the owner and buyer; permitted use set in the license
- Availability
- Sourced to your spec by machine type, operation family and material; 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 |
|---|---|---|
| part_file_id | string | Re-keyed ID for one Part file (.mcam), with the release that last saved it. |
| machine_group | object | One Machine group from the Toolpaths Manager: Mill, Lathe or Router, and the machine definition and control definition copied into it. |
| stock_setup | object | The Machine group's Stock setup: shape and dimensions, with the material named in the Machine group's properties where one was entered. |
| toolpath_group | string | The Toolpath group the Operation sits in, which shops use to separate setups. |
| operation | object | One Operation in posting order: its toolpath type, such as Contour, Pocket, Dynamic Mill or Drill, and its comment. |
| cut_parameters | object | The Operation's parameter pages: stepover, depth cuts, stock to leave, compensation type and the heights on its linking parameters. |
| tool | object | The Tool as stored in the part file, not the Tool library: number, type, diameter, flutes, holder, and length and diameter offsets. |
| feeds_speeds | object | Spindle speed, feed rate, plunge rate and coolant set on the Operation. |
| planes | object | The WCS, tool plane and construction plane the Operation uses, and the work offset number on the Plane. |
| chains | array | The Chains the Operation cuts: wireframe or solid edges and faces, direction and the level the geometry sits on. |
| regen_state | object | Whether the Operation was dirty, locked or switched off for posting when the file was saved. |
| nci_toolpath | object | The Operation's stored toolpath written out as NCI, the neutral motion record the post processor reads. |
| post_processor | object | The Post processor (.pst) the control definition points to, a hash of its text, and whether it is delivered. |
| nc_file | object | The NC file kept for the Toolpath group, with a diff against a fresh post of the same Operations. |
Field names from the table above; values are masked placeholders.
Example record
{
"part_file_id": "mc_4be09a",
"saved_in_release": "[RELEASE]",
"machine_group": {
"product": "Mill",
"machine_definition": "VMC_3AX_A",
"control_definition": "CTRL_A"
},
"stock_setup": {
"shape": "rectangular",
"x": 152.4,
"y": 101.6,
"z": 25.4,
"material": "ALUMINUM 6061"
},
"toolpath_group": "OP10 TOP SIDE",
"operation": {
"number": 3,
"type": "2D Dynamic Mill",
"comment": "ROUGH POCKET"
},
"cut_parameters": {
"stepover_pct": 18,
"stock_to_leave_walls": 0.25,
"stock_to_leave_floors": 0.1,
"compensation_type": "computer"
},
"tool": {
"number": 4,
"type": "flat endmill",
"diameter": 10.0,
"flutes": 3,
"length_offset": 4,
"diameter_offset": 4,
"holder": "holder_er32_a"
},
"feeds_speeds": {
"spindle_rpm": 9500,
"feed_rate": 2400,
"plunge_rate": 800,
"coolant": "flood"
},
"planes": {
"wcs": "Top",
"tool_plane": "Top",
"construction_plane": "Top",
"work_offset": 0
},
"chains": [
{
"kind": "solid_face",
"level": 12
},
{
"kind": "wireframe_closed",
"direction": "cw",
"level": 3
}
],
"regen_state": {
"dirty": false,
"locked": true,
"posting": "on"
},
"nci_toolpath": {
"file": "mc_4be09a/op_003.nci"
},
"post_processor": {
"file": "VMC_3AX_A.pst",
"text_hash": "a41c09e2",
"delivered": true
},
"nc_file": {
"file": "mc_4be09a/prog_0417.nc",
"repost_diff_lines": 9,
"diff_note": "feed lowered on two passes and an optional stop added after T4"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train toolpath strategy selection
Chained geometry beside the Operation type and parameters a programmer chose shows which strategy was used on which feature.
Predict feeds, speeds and step sizes
Tool, stock material and cut parameters per Operation are examples of cutting data chosen for a real machine.
Learn post processor behavior
NCI beside the NC file posted from it is a paired corpus for turning neutral motion into one control's dialect.
Model shop-floor program edits
The difference between a fresh post and the NC file kept at the machine shows what was changed during prove-out.
Evaluate CAM programming agents
Held-out parts test whether an agent can order Operations, pick Tools and produce a program close to the proven one.
Use-case guides: Robotics and embodied AI, Private evaluation sets, Coding agents
What makes this data valuable
Clean operations
Few or no dirty Operations at save, so stored toolpaths match their geometry and parameters.
Post processor present
The .pst that produced each NC file is delivered, with any companion file accounted for.
Explained post differences
Each NC file either matches a fresh post or its edits are attributed to the machine.
Real tool definitions
Tools carry holders, flute lengths and offsets, not untouched library defaults.
Solid model kept
The solid the Chains refer to is in the file, not only leftover wireframe.
Stock and material entered
Stock setup has real dimensions, and the Machine group names a material.
Document stack
Mastercam dataset
An operation stays tied to its geometry, and the file shows when it fell behind
A Mastercam part file holds the geometry and the Toolpaths Manager tree together. Under each Machine group sit its properties, including the Stock setup, and one or more Toolpath groups, and under those the Operations in the order they will post. Every Operation has four parts: its parameters, its Tool, its geometry and the calculated toolpath. The geometry is not a copy. It is a set of Chains over wireframe entities or the edges and faces of a solid in the same file, each with a direction and a start point. The Tool is a copy held in the part file, so later edits to the shop's tool library do not rewrite old jobs.
Because of that tie, when someone moves a line, edits the solid or changes a parameter, Mastercam marks the affected Operation dirty, and its stored toolpath stays stale until the programmer regenerates it. Files are saved in every state, so a delivered part file says, Operation by Operation, whether the stored motion still matches the geometry and parameters beside it. A clean Operation is a consistent example. A dirty one is a mismatch to flag or drop. A locked one was frozen on purpose.
The part file holds one state and no edit history. An earlier state exists only where the shop kept a copy or a backup. The tie also breaks on import. When a customer sends a revised model, the import arrives as new geometry. Until the programmer moves the Operations across, they still point at the old part, so working files often carry both revisions on different levels. Ask for every saved copy of a job.
The posted G-code comes from a post processor the part file does not contain
An Operation's toolpath is stored as NCI, Mastercam's neutral record of tool motions and cycles. Posting runs the NCI through a post processor, a .pst text file written in Mastercam's own post language and chosen by the control definition, which with the machine definition describes the axes and the control. The Machine group keeps a copy of those two definitions but only points to the post. Resellers and shops edit posts heavily: tool change sequences, retracts, probing calls, custom M-codes and program headers. Some posts keep part of their logic in an encrypted .psb companion file.
The .mcam format is proprietary. It opens in Mastercam, in the release that saved it or a later one, so ask which release saved each file. Geometry exports to STEP or Parasolid and loses every Operation. Operation parameters have no neutral exchange format. They can be read by an add-in running inside Mastercam through its NET-Hook or C-Hook interfaces, or approximated from a setup sheet, which lists tools and operations but not every parameter. NCI can be written out as text and is the closest thing to a machine-independent toolpath. Mastercam's Zip2Go utility packs a part file with supporting files such as its machine and control definitions and post, a practical way to request a complete job. Check what each archive holds, since the user picks what goes in.
To test a sample, open the files in a matching release and count dirty Operations. Then post one Toolpath group again with the delivered post and compare it with the NC file the shop kept. Differences are either post edits made since or hand edits at the control, such as lowered feeds, added optional stops and extra finish passes, and those edits are the proven version. Without the post, the NC file cannot be reproduced.
What to check before licensing
- Confirm who owns the part geometry in each file. A job shop usually machines its customers' designs, so ask for evidence that the design owner cleared release, or scope to the shop's own products.
- Ask whether any parts are defense or aerospace work under export controls, have those jobs excluded, and take counsel's advice on which rules apply.
- Open sample part files and count dirty, locked and non-posting Operations per file before agreeing scope.
- Check that the post processor behind each NC file is delivered, and whether its own license or an encrypted companion file limits sharing.
- Post a sample of Toolpath groups again and diff the output against the delivered NC files, and ask what explains each difference.
- Have the buyer and the data owner each check CNC Software's terms on exported data and on using its add-in interfaces to extract Operations.
- Search file names, Operation comments, level names, Plane names and NC headers for customer names, part numbers and drawing revisions.
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
Do I need Mastercam to use the data?
Yes for the part files, no for what is extracted from them. A .mcam file is a proprietary binary, and its Operations can be read only in Mastercam. NC programs, post processors and NCI toolpaths are plain text, and geometry can be delivered as STEP. Ask the supplier to extract Operation parameters to JSON.
Why can the NC file not be rebuilt from the .mcam file alone?
Because posting needs a post processor that lives outside the part file. The part file holds the Operations and a copy of the machine and control definitions, but the .pst file that turns toolpaths into G-code is separate and usually customized by the shop or its reseller. Without that exact post, the stored program cannot be reproduced.
What does a dirty operation mean in a delivered file?
It means the stored toolpath is out of date. Mastercam marks an Operation dirty when its geometry, Tool or parameters change after the toolpath was calculated, and it stays that way until someone regenerates it. For training, treat a dirty Operation as a mismatched example, and ask the supplier to report the flag instead of regenerating everything before delivery.
Are tool libraries and operation defaults included?
They can be, as a separate item in the scope. The Tools an Operation uses are stored inside the part file, so each job is complete without the library. The shop's Tool library and operation defaults file show its standard practice across jobs, and some shops treat them as know-how they will not release.
Can a shop license programs it wrote for customers' parts?
That depends on its agreements with those customers, and it is the first thing to check. A shop generally writes its own toolpaths, but the part geometry inside each file is usually the customer's design, and purchase terms or confidentiality agreements often restrict sharing it. Ask which jobs are the shop's own products.
Is SourceX affiliated with CNC Software (Sandvik)?
Mastercam is named to identify the system the records come from. That does not imply a partnership with or endorsement by CNC Software or Sandvik. The records belong to the business that runs Mastercam, 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
- CAM toolpaths and CNC programs
CAM projects, the NC program posted for a named machine and control, and the setup sheet
- PowerMill toolpath projects
PowerMill project folders with the imported model, tools, boundaries, workplanes, calculated toolpaths, stock models and the NC programs posted from them
- 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
- Siemens NX design and manufacturing files
NX part files for models, assemblies, drawings and CAM setups, with a per-file extract of features, expressions, links and operations
- Sheet metal flat patterns and nesting files
Folded parts with the shop's flat patterns, bend tables, press brake programs and production nest layouts
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.