Really interesting that $PTC 's FeatureScript language can be repurposed for generating CAD models (was originally intended for user-made features in Onshape). Apparently much cheaper than LLM text-to-CAD (fewer tokens) and better suited for complex models.
Claude/Codex používám často, myslel jsem že už ho znám celkem dobře.
Že s ním ale budu moct vibekódovat i takovou okrajovou záležitost jako je FeatureScript v Onshape, a že bude stačit posílat screenshoty s tím jak to vypadá (místo popisku), to teda WOW!
Codex fixing a bug I couldn’t find in a FeatureScript parametric 3D model, then using computer-use to open Onshape, regenerate the model, rotate it, test it, and fix the remaining issues… while I sip coffee.
Crazy times 🤯
I think OnShape's FeatureScript approach is interesting. The interface is simply a bunch of hooks that call the same FS code available to end users/devs. These in turn then use a well defined API to call down into Parasolid.
From Trek Bike’s instant cable routing to “file-less” advanced simulation integrations, Onshape is proving that the future of CAD is also about smarter automation.
Dive into FeatureScript and Onshape API here: onshp.co/zv
onshape’s featurescript is basically openscad inside your cad
you could probably do splines if you wanted but i think those are more meant for aesthetics
This is the same for most MCAD software, and the sequence of steps is usually to filter and remove small bodies, and then simplify geometry.
Jake Rosenfeld made a nice Onshape FeatureScript for this (with a control panel), called Fix PCB: cad.onshape.com/documents/9a…
also based on my not rigorous testing, gork was absolutely the best at unfamiliar programming languages
it was the only model able to write FeatureScript that even compiled on the first try. other models might take 3 attempts
look at this beautiful tulip thing it made
so many good businesses will unlock when a lab cracks programming languages not in training data
I've done this loop so many times:
- thing I want to do can actually be done in code
- try to fewshot the bot into writing it
- I'm back in 2022. early gh copilot iq flashbacks
Junction box for the LED driver. I'm gonna JB weld it to the end of the driver module, and put the Shelly 0-10v dimmer and tee wago connectors in there. Shout-out to the Fill Pattern featurescript! And to my trusty mk3s which I don't need to babysit for overnight prints.
Alternative Engineering, a custom equipment manufacturer, credits Onshape with saving an estimated 10,000 engineering hours—the equivalent of $1.25 million!
Find out how AEInc is utilizing Onshape's FeatureScript, Render Studio and more 👉 onshp.co/rR
Here's a cube built in Zoo's GUI and OnShape's GUI, then viewing the generated KCL/generated FeatureScript.
I think KCL prioritizes capturing the engineer's intention as they're designing.