1
0
Fork 0
freesewing/sites/dev/docs/reference/store-methods/cutlist.removecut
BenJamesBen 788ea77ffa
fix(docs) Add missing cutlist store methods and improve cutlist docs (#7052)
* fix(docs): cutlist.removeCut() can remove all cutting instructions

* fix(docs): Add cutlist.setcut doc

* fix(docs): cutlist.addcut() signature and other improvements

* fix(docs): cutlist store methods improvements

* fix(docs) Add missing cutlist store methods

* fix(docs): Remove cutlist store methods docs from old docs location

* fix(docs): Add missing cutlist store methods

---------

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
2024-11-16 15:39:49 +01:00
..
readme.mdx fix(docs) Add missing cutlist store methods and improve cutlist docs (#7052) 2024-11-16 15:39:49 +01:00

---
title: cutlist.removeCut()
---

The `cutlist.removeCut()` store method will remove cutting instructions from the part for a given material.
If no material is provided, all cutting instructions for the part
will be removed.

## Signature

```js
undefined store.cutlist.removeCut(String from)
```

## Example

<Example caption="An example of the cutlist.removeCut() store method">
```js
({ Point, Path, paths, macro, store, part }) => {

	store.cutlist.addCut({cut: 2, from: 'fabric' })
	store.cutlist.addCut({cut: 2, from: 'lining' })
	store.cutlist.removeCut('lining')

  macro('title', {
    nr: 9,
    title: 'The title',
    at: new Point(0,0),
    scale: 0.5,
  })

  // Prevent clipping
  paths.diag = new Path()
    .move(new Point(-10,-20))
    .move(new Point(80,35))

  return part
}
```
</Example>

```mjs
store.cutlist.removeCut('fabric')
```