CadQuery / CadQuery/cadquery

Objects selection on sketches

Open
#1,028 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

It is not possible to selects objects if the object on the stack is a sketch

```python
s = Sketch().rect(10,5)
b = Workplane().placeSketch(s).wires()
print(b.ctx.pendingWires) # return []
```
I needed this because in order to loft several sketchs I need to push their wires onto the context otherwise they arent usable anymore after workplane offsettings.

I think this should also be an issue, I feel it should be possible to do :

``` python
s = Sketch().rect(10,5)
b = Workplane().placeSketch(s).workplane(10).placeSketch(s).loft()
```

It would probably be a huge refactor but I think while they arent used for any 3D operations, Sketchs should be available from the context. Once they are used they should be tagged as so and so they wouldn't be reused by other 3D ops later on the stack.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.