1
0
Fork 0
freesewing/markdown/dev/howtos/code/accessing-measurements/en.md

23 lines
529 B
Markdown
Raw Normal View History

---
title: Accessing measurements
for: developers
about: Shows you how to access user measurements from inside your pattern
---
Measurements are stored in `pattern.settings.measurements`.
2022-02-19 08:04:25 +01:00
You can pull them out of there with
the [shorthand](/howtos/code/shorthand/) call:
```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>