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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement