Featurescripts
Onshape has its own scripting language to create custom features to automate aspects of design called Featurescript. There are a lot of featurescripts (what we call the custom features) that make designing for FRC much easier.
How To Install Featurescripts
- Open any Onshape document and go inside of a part studio
- Click the rightmost button on the toolbar that looks like this:

- Note: If you have previously added any Featurescripts one of those may show up as the right most icon. In that case click the dropdown to show the add button.
-
Paste the link of the document with the featurescript(s) in it into the search bar
- Note: Some of the below featurescripts exist in the same document, so you can add multiple from the same link.
-
Select the featurescript(s) you want to add to your profile, then exit the box. They will be accessible in all documents from then on in the same drop-down in the toolbar where you added the feature.
!!! Note "Adding Featurescripts while in an Onshape Document" When viewing a tab in a document that uses custom features, you can click a button near the top left that says 'custom features'. From here you can add custom features used in the document to your profile.
Required Featurescripts
These featurescripts are required for all Team 401 design students to install and are extensively used as we design robots.
To install each featurescript:
- Click the coresponding 'Copy to Clipboard' button
- Click 'Add Custom Feature' in your Onshape window
- Paste the copied URL
- Select the custom feature you need - not all of the features in the Document
| Featurescript | Description | Copy to Clipboard | Onshape Link |
|---|---|---|---|
| Design Constants | Belt, gear, bolt distances | Copy to Clipboard | Onshape |
| Extrude Individual | Use one sketch to make multiple tubes | Copy to Clipboard | Onshape |
| Tube Converter | Convert Extrudes to Tubes | Copy to Clipboard | Onshape |
| Spacer | Generate spacers to connect plates | Copy to Clipboard | Onshape |
| Shaft | Generate shafts for power transmission | Copy to Clipboard | Onshape |
| Gusset | Generate plates to connect tubes | Copy to Clipboard | Onshape |
| Fillet All Edges | Fillets all edges on a part | Copy to Clipboard | Onshape |
| Part Lighten | Lighten parts with ribs and perimeters | Copy to Clipboard | Onshape |
| CheeseIt | Lighten parts with patterns | Copy to Clipboard | Onshape |
| Threads | Create threads in / on 3DP parts | Copy to Clipboard | Onshape |
| 3D Printing | Set accurate masses for 3DP parts | Copy to Clipboard | Onshape |
| Motor Mounting | Mounting holes for FRC motors | Copy to Clipboard | Onshape |
| Robot Belt | Generate Belts and Pulleys | Copy to Clipboard | Onshape |
| Belt and Chain Gen | Generate Double Sided Belts | Copy to Clipboard | Onshape |
Optional Featurescripts
These featurescripts are not mandatory but make things quicker and are useful to have.
| Featurescript | Description | Copy to Clipboard | Onshape Link |
|---|---|---|---|
| Corner Overcut | Corners for tab and slot construction | Copy to Clipboard | Onshape |
| Auto Layout | Layout Parts for Laser or Waterjet | Copy to Clipboard | Onshape |
| T Slot Joint | Create T Slots for Laser or Waterjet | Copy to Clipboard | Onshape |
| Laser Joint | Finger joint for Laser Cutter | Copy to Clipboard | Onshape |
| Plate | Creating detailed FRC plates quickly | Copy to Clipboard | Onshape |
Troubleshooting and Updating Featurescripts
If a featurescript is not working as expected, the current version might be broken. You might have to update the featurescript. If it needs updating, the feature will show a blue icon to the right of it that, when hovered over, will say "change version of linked document."
- The first way to update it is by individually by right clicking the feature you want updated in the feature list and clicking "Update linked document..."
- The second, and slightly more permanent way (until the maintainer of the custom feature creates a new version), is by right clicking any of the featurescript icons in your toolbar or in the custom features dropdown and clicking "Update..." or "Update all..." From there, you can see the current versions of the custom features you have added to your profile and update selected ones to use the current latest version when you use a featurescript.