SW Sketch

Hello

I'm faced with a problem that may not be a problem, but I can't find the function to make a repetition of concentric circles in a SW23SP5 sketch.
The offset entities function does not allow repetition and there is no feature repetition in the sketching tools.
In fact I have x concentric circles offset by 12.5mm from Ø400 to Ø1525. That's x times the offset function, not really exciting.
What do the macro pros think...??? :worried:
image

Hello

Could a variable repetition on the function generated from the Ø400 (or Ø1525) circle alone not lead to the desired result?

1 Like

Yes, except that there is no variable repetition function in sketch editing.

I rephrase: a single circle in the sketch, used to generate a function. Variable repetition on the function generated by driving the diameter dimension of the circle.
But perhaps this sketch is destined to remain an orphan? In this case, my suggestion falls through...

2 Likes

That's right.
Just in case...


In fact, this sketch will serve as a guide for other functions.
But thank you. (The buoy is for :rofl:)

4 Likes

Hello @Le_Bidule ,

Conditions: A part document is opened, a sketch is opened, and a circle is selected in that sketch.
By launching the macro, we obtain in principle a series of concentric circles, with a regularly increasing radius.

To be tested...

CopieCercles.swp (66.5 KB)

3 Likes

Hello @Le_Bidule

In fact, to do it without a macro, you don't need that many lags.

A little calculation to determine the number of circles needed:

  • ((Rmax - Rmin) / Offset) +1
    i.e.: (((Dmax - Dmin) / offset) / 2) +1
    either:
    1525 - 400 = 1125
    1125 / 12.5 = 90
    90 / 2 + 1 = 46 circles
  1. So, create the starting circle of 400, open the offset function, activate the pushpin to leave it open, and then enter the value of 12.5. Instead of validating with the checkmark, click on the circle that appeared, which validates it.
  2. Clicking a 2nd time on this same circle, it creates an additional one directly offset. Do this again until you have 12 circles. Why 12? because 12x4=48, and then you just have to double 2 times.
  3. Now, select these 12 circles and then enter the value 12.5*12 and Enter. We then have 24 circles.
  4. Select the 24, then multiply by 2 the value in place (150 * 2) and validate. So we have 48 circles.
  5. Finally, close the offset function and delete the last 2 circles created. We then have the 46 concentric circles, the largest of which measures 1525.

Short video of the manipulation:

It's also possible with 6 or 3 instead of 12 to further reduce the number of manipulations, you just have to understand the logic of multiplying the value of the 1st grouped selection by the number of circles (12.5 * 12 or 12.5 * 6 or 12.5 * 3), and all the following ones multiplied by 2.

9 Likes

Hello

And " scaling the sketch "?


1.0625 = 450/400 for 12.5 radius offset.

4 Likes

Thank you all,
I decided to elect (delirium :rofl:) SYLK's answer as the best, and to justify this choice the fact that the sketch is completely constrained (and that in addition he works at night :ghost:). However the macro solution works very well, I like the scaling less.
But all three solutions work, thank you.

3 Likes

Hello;
The basic sketch is meant to do what?
(in general it is preferable/advisable to break down the functions as much as possible...)

Kind regards.

PS: Happy birthday of forum @Le_Bidule

2 Likes

Dear @Le_Bidule Happy Birthday from Forum. :gift:

3 Likes

N'anniv @Le_Bidule :partying_face:

Without knowing it, my answer was your gift :grin:

2 Likes