can some one help punching holes in a circle?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Workshop_Notes
Posts: 590
Joined: Wed Sep 29, 2021 8:35 am

Re: can some one help punching holes in a circle?

Post by Workshop_Notes »

papyblaise wrote: Fri May 20, 2022 9:47 am Funny same idea as Schlm but with straight lines
Both ideas are clever, but are they smart? If you had to put 40 holes through a ring, how long would it take to draw the path linking them together?

Is there a good way of solving this as a general class of problem rather than a specific instance with a small number of symmetrical holes?

If they are good general solutions, we could generate a list of 25 random numbers between 0 and 360 and the time/effort taken to produce the finished model should not be affected.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: can some one help punching holes in a circle?

Post by chrisb »

Workshop_Notes wrote: Fri May 20, 2022 12:23 pm Both ideas are clever, but are they smart? If you had to put 40 holes through a ring, how long would it take to draw the path linking them together?
The EdWilliams way is. For a big number of holes you should put the data in a table and use a very small Python script to rotate the sketches, or you would even go directly for subtractive cylinders (don't use them currently in Patterns!).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
papyblaise
Veteran
Posts: 7864
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: can some one help punching holes in a circle?

Post by papyblaise »

I'm not good at programming a multiple variable array where the number of occurrences is random, and the step is random, is this programmable?
with if and or so, then etc.....
drmacro
Veteran
Posts: 8862
Joined: Sun Mar 02, 2014 4:35 pm

Re: can some one help punching holes in a circle?

Post by drmacro »

Just as another option. No programming.
Peek 2022-05-20 11-27.gif
Peek 2022-05-20 11-27.gif (176.28 KiB) Viewed 316 times
Attachments
Example-Lattice2-Spreadsheet-2.FCStd
(61.09 KiB) Downloaded 9 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: can some one help punching holes in a circle?

Post by edwilliams16 »

Lattice2 with a polar array driven by a list from a spreadsheet was what came to me first - but for the OP that was clearly overkill when I only had to place two pockets. It was also driven by the initial sketch data dimensions, requiring no trig. I think it would be simpler, but less elegant, to use the Part workbench with Lattice2 - which you likely agree with.
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: can some one help punching holes in a circle?

Post by edwilliams16 »

It is more straightforward using the Part Workbench with Lattice2
Screen Shot 2022-05-20 at 11.21.54 AM.png
Screen Shot 2022-05-20 at 11.21.54 AM.png (56.47 KiB) Viewed 246 times
Just plug the angles into the Polar Array values property.
Attachments
Example-Lattice2-Spreadsheet-EW2.FCStd
(42.1 KiB) Downloaded 7 times
Post Reply