What FeatureScript is#
FeatureScript is Onshape's built-in programming language for creating custom features. Onshape's own built-in features (Extrude, Fillet, Helix) are themselves written in FeatureScript. The community uses it to package repetitive modeling tasks into reusable features that show up in your toolbar just like native ones. You don't have to write FeatureScript to benefit — you just add other people's scripts. The official docs live at cad.onshape.com/FsDoc.
The FRC FeatureScripts worth knowing#
The FRCDesign.org FeatureScript list curates the most useful ones. Highlights:
- Tube Converter (Julia's FeatureScripts) — converts a plain extrusion into a real punched FRC tube, with presets for standard hole patterns. This is the everyday tool for making drivetrain and superstructure tubes.
- Extrude Individual (Julia's FeatureScripts) — extrudes multiple sketch regions as separate parts in one feature, perfect for making several tubes (a whole drivetrain) at once.
- Belt & Chain Gen — generates parametric belts and chains routed around your pulleys/sprockets, with correct lengths.
- Robot Shaft (Alex's FeatureScripts) — generates shafts with options for hex, rounded hex (13.75 mm OD), MAXSpline, and end-retention features.
- Robot Spacer (Alex's FeatureScripts) — generates round, hex, or MAXSpline spacers.
- Part Lighten (2471 FeatureScripts) — adds lightening pockets/ribs with weight-savings estimates, so you can cut mass intelligently.
- Origin Cube — places a clean origin reference for assembly mating and can carry design constants.
Why FeatureScripts matter#
Modeling an FRC tube by hand (cross-section, hole pattern, linear pattern, repeat for every tube) is slow and tedious. Tube Converter turns that into a few clicks with a guaranteed-standard hole pattern. Belt & Chain Gen removes the painful geometry of routing chain. These scripts let small teams produce professional, manufacturable designs quickly and consistently — which is the whole point during a six-week season.
How to add and use them#
- Open the public FeatureScript Document (linked from the FRCDesign.org FeatureScript list).
- Right-click the custom-feature tab and choose to add it to your toolbar.
- The feature now appears in your Part Studio toolbar for all your Documents.
Good practice#
- Standardize a small set of FeatureScripts across your team so everyone's models look and behave the same.
- Pin a known version where possible; if a script updates and changes behavior mid-season, it can disrupt existing models.
- Understand what the script does before relying on it for a manufactured part — for example, confirm Tube Converter's hole pattern matches the tube stock you are buying.
FeatureScripts plus a good parts library are the two superpowers that make Onshape so effective for FRC. The current community-standard parts library is FRCDesignLib (accessed via the FRCDesignApp Onshape plugin), which has superseded the older MKCad library.
the part worth keeping
Key takeaways
- FeatureScript is Onshape's language for custom features; you can use community scripts without writing any code
- Key FRC FeatureScripts include Tube Converter and Extrude Individual (Julia's), Robot Shaft and Robot Spacer (Alex's), Part Lighten (2471), Belt & Chain Gen, and Origin Cube
- These scripts automate slow, repetitive FRC tasks (punched tubes, chain routing, lightening) so small teams design quickly and consistently
- Standardize a shared set of scripts, pin versions when possible, and confirm a script's output (e.g., hole pattern) matches your actual stock
CAD & DesignVendor Libraries (FRCDesignLib) and FeatureScriptslesson 3 of 3
Keep going
Take the quiz+10 XP with an accountMore in Vendor Libraries (FRCDesignLib) and FeatureScripts
where this came from
Sources and corrections
This lesson is AI-assisted: drafted from primary sources, then reviewed and edited by hand. Errors still get through. When one is reported we fix it and write down what changed, in public, in the corrections log.
sources and further reading
- frcdesign.orgFRCDesign.org FeatureScript List
- cad.onshape.comOnshape FeatureScript Documentation
clipped to this lesson
Articles that go further on this
The lesson gets you through the topic. These go wider on it, and they read in one sitting.
- 8 min readFRC Onshape Tutorial: How to CAD Your First Robot PartA beginner Onshape tutorial for FRC: sign up free, learn Part Studios and Assemblies, sketch and extrude your first part, and pull in COTS parts./blogread it
- 18 min readFRC Power Transmission: Chain vs Belt, Sprockets, Pulleys, and TensioningA practical FRC guide to moving power from motor to mechanism: #25 vs #35 chain, HTD/GT2 belts, sprocket ratios, center distance, tensioning, and failure modes./blogread it
- 4 min readThe Best CAD Software for FRC (and How to Choose)Onshape vs SolidWorks vs Fusion 360 for FRC: all three are free for teams. Here is how to pick the right CAD software for your robot./blogread it
answer sheet
Lesson quiz
All 4 right completes the lesson. Miss one and only that question comes back, anything you already answered correctly stays banked.
0 of 4 answered
01What is FeatureScript in Onshape?
02Which FeatureScript converts a plain extrusion into a real punched FRC tube with standard hole-pattern presets?
03How do you start using a community FeatureScript in Onshape?
04What is good practice when relying on FeatureScripts across a team?
Answer every question to submit.
All 31 lessons in CAD & Designopenclose
01 / prerequisites
02 / getting-started-cad-and-the-design-process
03 / onshape-fundamentals
04 / vendor-libraries-mkcad-featurescripts
05 / manufacturability-drawings-bom-design-reviews
06 / worked-examples-mini-projects
07 / common-mistakes-troubleshooting
- Not read yet:Mate & Assembly Failures: Why Parts Float, Spin, or Won't Move
- Not read yet:Broken In-Context & Derived References
- Not read yet:Slow Regeneration in Big Drivebase Assemblies
- Not read yet:Manufacturability Mistakes That Become Scrap
- Not read yet:Version Control & Team Collaboration Disasters
08 / advanced-techniques-case-studies
- Not read yet:Configurations vs. Parametric Variables: Designing One Model, Many Robots
- Not read yet:FeatureScript Automation for FRC
- Not read yet:Browser-Based FEA: Weight-Optimizing Real Structures
- Not read yet:Swerve System Geometry & Motion Math
- Not read yet:Case Study: FRC 6328's Modular Gusset-and-Tube Methodology