sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Creating arcs in ruby

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    5 Posts 3 Posters 277 Views 3 Watching
    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

      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
      • TIGT Offline
        TIG Moderator
        last edited by

        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

          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

            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

              @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