TypeError: Sketch.moved() got an unexpected keyword argument 'z'
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
## To Reproduce
Attempt to render the following example from the documentation section _Lofting between two sketches_ in CQ Editor:
```
from cadquery import Workplane, Sketch, Vector, Location
s1 = Sketch().trapezoid(3, 1, 110).vertices().fillet(0.2)
s2 = Sketch().rect(2, 1).vertices().fillet(0.2)
result = Workplane().placeSketch(s1, s2.moved(z=3)).loft()
```
## Backtrace
```
TypeError: Sketch.moved() got an unexpected keyword argument 'z'
File:
Line: 7
Code: result = Workplane().placeSketch(s1, s2.moved(z=3)).loft()
```
## This works
```
from cadquery import Workplane, Sketch, Vector, Location
s1 = Sketch().trapezoid(3, 1, 110).vertices().fillet(0.2)
s2 = Sketch().rect(2, 1).vertices().fillet(0.2)
# replace z=3 with Vector(0,0,3)
result = Workplane().placeSketch(s1, s2.moved(Vector(0,0,3))).loft()
```
## Environment
OS: Windows 11 Pro
Using: CQ-Editor Version 0.3.0dev
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.