2021-10-17 18:26:00 +02:00
---
2021-08-25 16:09:31 +02:00
title: Your first part
order: 120
2021-10-17 18:26:00 +02:00
---
2021-08-25 16:09:31 +02:00
2021-10-17 18:26:00 +02:00
Much like garments themselves, patterns are made up of *parts* .
2021-08-25 16:09:31 +02:00
Most patterns will have multiple parts. A sleeve, a back part, the collar, and so on.
Our pattern is very simple, and only has one part: the bib.
The pattern that's been created for us also just has one part to get you started.
It's called **box** and it draws a box. If you click on the **Draft your pattern**
button in your browser, you'll get to see it:

Since we only need one part, we'll rename this *box* part, and call it *bib* .
## Rename the box part to bib
First, update the configuration file in `config/index.js` .
Update the **parts** array with `bib` , rather than `box` :
```js
parts: ["bib"],
```
2021-08-25 16:16:51 +02:00
< Note >
2021-10-17 18:26:00 +02:00
##### Don't worry about the big red error
This will (temporarily) cause en error to appear in your development environment, because the rest of the code is still expecting to find a part named `box` , but we will fix this in the next steps.
2021-10-17 17:34:55 +02:00
< / Note >
2021-08-25 16:09:31 +02:00
2021-10-17 18:26:00 +02:00
2021-08-25 16:09:31 +02:00
When that's done, rename the `src/box.js` file into `src/bib.js` .
Then, in the `src/index.js` file, change the import accordingly:
```js
// Change this line
2021-08-25 16:16:51 +02:00
//import draftBox from "./box"
2021-08-25 16:09:31 +02:00
// Into this
2021-08-25 16:16:51 +02:00
import draftBib from "./bib"
2021-08-25 16:09:31 +02:00
```
Finally, still in the `src/index.js` file, update the draftmethod:
```js
// Change this line
2021-08-25 16:16:51 +02:00
//Pattern.prototype.draftBox = draftBox
2021-08-25 16:09:31 +02:00
// Into this
2021-08-25 16:16:51 +02:00
Pattern.prototype.draftBib = draftBib
2021-08-25 16:09:31 +02:00
```
< Tip >
###### Always use draftPartname
FreeSewing will expect for each part to find a method named Draft*Partname*.
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
< / Tip >
2021-10-17 18:26:00 +02:00
Congratulations, your pattern now has a `bib` part, rather than a `box` part.
2021-08-25 16:09:31 +02:00
It still looks the same though:
2022-01-19 11:31:39 +01:00
< Example pattern = "tutorial" part = "step1" >
Our bib part, which is the renamed box part
< / Example >
2021-08-25 16:09:31 +02:00
This `bib` part is where we'll do some real work. But first, we have some more configuration to do.