# CAD Theory

CAD is a digital design tool used to create parts before manufacturing them. While our documentation primarily covers FTC-specific CAD practices, understanding the foundational concepts is essential for getting started with Onshape.

## Starting with a Sketch <a href="#starting-with-a-sketch" id="starting-with-a-sketch"></a>

If you wanted to create a cube in Onshape, you would start by representing its profile in a 2D sketch. So, what would the sketch look like for a cube? If you take the section from the plane on top of the cube, which is called the “Top" plane in Onshape, you can see that this sketch is simply a square.

<div><figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2FHJgBgxpkkTXuATKZAnpF%2Fimage.png?alt=media&#x26;token=a9da33a5-c491-4dfe-8741-aa8729fa9d41" alt="" width="188"><figcaption><p>2D Sketch </p></figcaption></figure> <figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2Fh5rceWC0HQxszbrSYYVJ%2Fimage.png?alt=media&#x26;token=5263883d-5e8f-44ef-9289-e8134eb3da9c" alt="" width="188"><figcaption><p>Cube</p></figcaption></figure></div>

## Transitioning from Sketch to 3D

**Creating a Solid Shape**

When working in a sketch, you define the fundamental properties of a shape—its position and dimensions. For example, a circle’s location and diameter are determined within the sketching environment. Once you bring this sketch into 3D, these characteristics carry over, establishing the final placement and size of the cylindrical feature in the Part Studio. To ensure consistency and accuracy, it's crucial to fully define sketches. Otherwise, parts may end up with unintended dimensions or placements.

<div><figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2FqMlwSs4nJtVlFRMM6cfm%2Fimage.png?alt=media&#x26;token=69896868-62a7-464f-9f8c-bcce76e30a59" alt="" width="188"><figcaption><p>A circle's location and diameter shown in a sketch</p></figcaption></figure> <figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2FfkyBdMCdk3DwmJryDXxE%2Fimage.png?alt=media&#x26;token=54fc7130-366d-41e6-b533-ddfef72dac4c" alt="" width="188"><figcaption><p>The extruded circle having the same location and diameter</p></figcaption></figure></div>

**Extruding to Build Volume**

To turn a sketch into a three-dimensional object, you use features. One of the most common ways to do this is with the **extrude** function, which extends a sketch profile into 3D space. Similar to how you define a sketch, an extrude requires specific parameters. For instance, you must set a **depth** (or final height) to determine how far the shape extends. Adjusting these settings allows you to create precise geometry tailored to your design needs.

<div><figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2FjQkCSYDAIgfG6H5Er3y3%2Fimage.png?alt=media&#x26;token=5e600842-454d-4e5a-82d8-eb740d0606ab" alt="" width="375"><figcaption><p>Extruding a hexagon with a depth of 40mm</p></figcaption></figure> <figure><img src="https://2077382338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F43zldy7bQi3nWvvIl7LZ%2Fuploads%2FfLoKeT06PMpMp3BvZQfF%2Fimage.png?alt=media&#x26;token=cd4e99c3-aa8b-4519-8b78-28a8d7a1b146" alt="" width="343"><figcaption><p>Revolving around a complex shape to create a candlestick</p></figcaption></figure></div>

**Alternative Approaches**

Instead of extruding, you can use the revolve feature to create certain shapes, such as a candlestick. This method involves rotating a sketch profile around a central axis, forming a continuous shape. Different modeling techniques exist, and the choice depends on the design intent—whether prioritizing manufacturability, editability, or structural integrity.

Every 3D modeling approach has trade-offs, but understanding how features like extrude and revolve work helps you build designs efficiently and with greater control.\
Let me know if you want this adjusted further!


---

# 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/cad-theory.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.
