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
undefined store.cutlist.removeCut(String from)
Example
- Preview
- Code
- X-Ray
({ 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
}
store.cutlist.removeCut('fabric')