# Featurescripts

FeatureScripts are user-created custom features designed to simplify and enhance the FTC design process.

#### How To Install Featurescripts <a href="#how-to-install-featurescripts" id="how-to-install-featurescripts"></a>

1. Open any Onshape document and go to a Part Studio.
2. Click the button on the toolbar labeled "Add custom features."
   1. If you've previously added any FeatureScripts, one of those may appear instead. In that case, click the dropdown and select the Add button.
3. Paste the link of the OnShape document with the featurescript in it into the search bar
4. Select the featurescripts you want to add to your profile, then exit the box. They will then be accessible in all documents from the same drop-down in the toolbar where you added the feature.

## List of Featurescripts <a href="#list-of-featurescripts" id="list-of-featurescripts"></a>

### <mark style="color:green;">Pulley Gen</mark>

This isn't a featurescript, but it is still very useful when creating pulleys.

{% embed url="<https://cad.onshape.com/documents/3c96e3175e1b60801a04ce99/w/2e2361486ee4acbadbb06e6b/e/d782062386e2f87953c76a68>" %}

To use this, you must first copy the document, then go to an assembly and go to: Insert -> Other Documents -> Created By Me. It should be listed there as Pulley Gen - Copy.

### <mark style="color:green;">Belt and Chain gen</mark>

This is used to create highly customizable belts and chains. Pulley/sprocket tooth count is automatically calculated from sketch pitch diameter.

{% embed url="<https://cad.onshape.com/documents/53c0b14cad92676c14e04e97/v/ba3d3c1c31ed90eb4540d8b5/e/59c07f39dcb84652c3dbbf0f?jumpToIndex=4929>" %}

### <mark style="color:green;">Part Lighten</mark>

This is better than Onshape's "Lighten" or "Vent" features, with more control over ribs, cut depth, fillets, etc. It can also give you an estimate on how much weight is being saved.

{% embed url="<https://cad.onshape.com/documents/53c0b14cad92676c14e04e97/v/ba3d3c1c31ed90eb4540d8b5/e/59c07f39dcb84652c3dbbf0f?jumpToIndex=4929>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.ftcwiki.org/intro-to-cad/featurescripts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
