Locations with different sketches (builder and algebra modes) #834
-
Hello, I am trying to use locations (like GridLocations) with different sketches at each location. With algebra mode, I can think of writing something like: figures = [
RegularPolygon(radius=5, side_count=5),
Circle(radius=5),
...
]
Sketch() + [
loc * figures[index]
for loc, index in GridLocations(length / 2, width / 2, 2, 2)
] NOTE: I am not even sure I can get the But for builder mode, I cannot even think of what the syntax would be. Is there a way to do that at all? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you checked this example 33 from the intro examples? https://build123d.readthedocs.io/en/latest/introductory_examples.html#python-function-and-for-loop specifically |
Beta Was this translation helpful? Give feedback.
Have you checked this example 33 from the intro examples? https://build123d.readthedocs.io/en/latest/introductory_examples.html#python-function-and-for-loop
specifically
enumerate(PolarLocations(a / 2, 6)
-- I am not fully following your desired outcome butzip
may also be useful.