This is plineToExtrude for r1 = 10, r2 = 20, r3 = 30, n = 5.
View attachment 142174
It's extruded to the height of h/2, since it starts at the height of h/2 itself.
And this is the plineToRevolve. It basically revolves around the previous solid. It's also 3D rotated, since it's plotted in XY.
View attachment 142175
And what's left is the intersection of the two.
View attachment 142176
The sin and cos are used to get the points for PLINE which draws the first drawing.
It is pointless generally speaking. But the point is automation of the process, when possible.
It's neat. I like it. I get the idea behind the exercise.
I understand automating things because I'm going to do some of that at this company but not to that level. I'm just going to add tool pallets and make dynamic blocks. So easy to do and fix.
I will explain why I both like it and dislike it.
These things are great for doing the tasks that are repetitive. Though there are packages these days that takes care of most things. So typically making automating pointless unless you're using vanilla AutoCAD. Which a few people still use. Though you can get add-ons.
The main issue with automation is that there's typically only one person who does it at the company and if they leave no one can update things as needed. Depending on how they code it will be either easy or a pain to update when required and of course the complexity of what's automated.
Therein lies the issue.
Lots of AutoCAD users do not code. The older they are the more typical that they barely know any of the newer functions.
If they are contractors it's unlikely they've updated their skills because that takes time and money. They'd rather be working.
The current state of the engineering industry, in my general field is a mix bag between an older generation that has no desire to change their ways and a younger generation not really interested in engineering. So there's a huge gap. There's also the issue of companies not taking on younger people as well. But that's a whole other issue.
That's why most of the work is done overseas now, typically India.
My current company is full of older generation people and it's causing issues overall. They're either not really interested in work anymore and simply getting a paycheck or they don't like using the new tools and use them wrong. It's a bit of a headache. Keep in mind it's difficult to get rid of people in France.
To be clear I believe in older people working but they need to change their position and become trainers for younger people so there's easier transitions.
There's a whole bunch of other issues, I could go on but I'll leave it there.