• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Creating arcs in ruby

Scheduled Pinned Locked Moved Newbie Forum
sketchup
5 Posts 3 Posters 237 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    writestometal
    last edited by writestometal 11 Apr 2015, 04:20

    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?

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 11 Apr 2015, 11:09

      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...

      TIG

      1 Reply Last reply Reply Quote 0
      • W Offline
        writestometal
        last edited by 11 Apr 2015, 12:12

        Wow! Didn't expect such a timely response from a guru. I'll have a look. Thanks.

        1 Reply Last reply Reply Quote 0
        • W Offline
          writestometal
          last edited by 14 Apr 2015, 05:16

          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.

          1 Reply Last reply Reply Quote 0
          • K Offline
            killernova
            last edited by 20 Feb 2023, 07:03

            @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?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement