Code Library
Complete, working sample code from the manufacturing–software seam: SolidWorks macros, FOCAS loggers, G-code generators, Rhino scripts, shop-data automation. Every sample is MIT-licensed, explained line by line, and free to copy or download — no sign-up, no tracking who you are.
Starter kits
Themed bundles — one click gets every file in the set.
Machine-Monitoring Starter Kit
Everything to get live numbers off a FANUC control: feed/spindle logger, alarm reader, part counter, and the OEE math to turn them into a shift report.
- · FANUC FOCAS: read program number and run status (Python)
- · FANUC FOCAS: read active alarms (Python)
- · FANUC FOCAS: log feedrate & spindle speed to CSV (Python)
PDM-less Data Kit
The three macros a shop without a vault reaches for: batch PDF, batch STEP, and a properties↔CSV round-trip that replaces an afternoon of clicking Save As.
- · Round-trip SolidWorks custom properties through a CSV (no PDM)
- · Batch-export every configuration of a part to STEP (AP214)
- · Batch-export every SolidWorks drawing in a folder to PDF
Polyglot Shop Kit
Four brands, four protocols, one afternoon: a Haas Q-command poller, an MTConnect poller, an OPC UA subscription logger, and a pyads TwinCAT symbol watcher.
- · Read and watch a TwinCAT PLC symbol for changes (pyads)
- · Subscribe to OPC UA data changes and log them to CSV (Python)
- · Poll a Haas control for status over Ethernet (Q-commands)
- · Poll an MTConnect agent's /current for execution state (Python)
Need a sample that isn't here — or the production version of one that is?
These are starting points. Turning them into deployed shop tools is what I do.