Creating arcs in ruby
-
Hi Guys
Why is the standard Arc tool so different from the add_arc method?I'm trying to write a script to import IDF data which defines arcs by startpoint, endpoint and include angle, to me this seems much closer to how the Arc tool works than the add_arc method (knowing that I can get the bulge distance from the include angle).
Can I mimic the Arc tool behaviour in my script or do I have to do all the mathematics to make up the parameters for a add_arc method?
-
Download my 2Dtools... http://sketchucation.com/pluginstore?pln=2Dtools
The 2Darc tool RB includes code for making an Arc by included angle.
You can probably borrow some ideas/code from that... -
Wow! Didn't expect such a timely response from a guru. I'll have a look. Thanks.
-
I'm beginning to understand now. Yes I have to do the maths but applying TIG's methods make it relatively straightforward. I'm off to read more about tranformations and maybe have a look at fillets. Thanks.
-
@tig said:
Download my 2Dtools... http://sketchucation.com/pluginstore?pln=2Dtools
The 2Darc tool RB includes code for making an Arc by included angle.
You can probably borrow some ideas/code from that...Hi,
I've tried this extension, it works fine on windows, but on MacOS, when I try to draw arc with this tool, the sketchup seems to run into a dead loop(the mouse is busy, and can't do anything else except close sketchup).I'm using Sketchup pro 2022/2021, did you know what happened?
Advertisement