sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    How to draw parallel lines

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 4.0k Views 2 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.
    • S Offline
      sachi
      last edited by

      Dear all,

      I’m working on a school project. I’m developing a 3D model using Sketchup through Ruby extension. I want to draw a parallel line for a curved line.

      The curved line was drawn using Ruby API command entities.add edges. The points of the curved line were provided by a Ruby array.
      Now I want to draw a parallel line for this curved line. Do you have any suggestions please?
      Thank you

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Smustard.com's offset.rb adds an ' .offset' methods faces/edges/arcs/curves etc. That should give you some ideas at least...

        My ExtrudeEdgesByOffset tool also has some similar code that you could think about - however the easy way to offset edges is if they belong to a face, and are therefore definitely coplanar...

        Instead of entities.add_edges(array) you might be better using entities.add_curve(array) to make the offsetting easier, if you want separate edges later you can always explode the curves in code...

        TIG

        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