2021-08-25 16:09:31 +02:00
|
|
|
---
|
|
|
|
title: Accessing measurements
|
|
|
|
for: developers
|
|
|
|
about: Shows you how to access user measurements from inside your pattern
|
|
|
|
---
|
|
|
|
|
|
|
|
Measurements are stored in `pattern.settings.measurements`.
|
|
|
|
|
|
|
|
You can pull them out of there with
|
2021-08-25 16:16:51 +02:00
|
|
|
the [shorthand](/howtos/code/shorthand/) call:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
const { measurements, options } = part.shorthand()
|
|
|
|
|
|
|
|
let sleeveBonus = measurements.shoulderToWrist * (1 + options.sleeveLengthBonus);
|
|
|
|
```
|
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
Keep in mind that [FreeSewing uses millimeter for everything](/guides/prerequisites/units).
|
|
|
|
|
|
|
|
</Note>
|