CadQuery / CadQuery/cadquery

Adding existing geometry into sketches?

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

Description

I want to make holes spaced out all around the edge of my part. It's easy to put holes along existing vertices, but i'm not sure how to split up the lines to get more vertices. I've made a Wire in my Workplane and figured `distribute()` would be appropriate to do it, but seems like it's only accessible inside a Sketch. Meanwhile in a Sketch i don't have access to any external geometry it seems, even with `tag()` and `select()`. How can i do it? So far my attempts look like:

```python
import cadquery as cq

shit = cq.Workplane('XY').box(5, 5, 5)
shitfaced = shit.faces('>Z').edges().toPending().offset2D(-0.5, forConstruction=True).tag('loh')
#ok = shitfaced.positions() #project()#sketch().select('loh').distribute(10)
```

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.