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

    Script Request/Idea - MultiConstruction lines

    Scheduled Pinned Locked Moved Plugins
    2 Posts 2 Posters 999 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.
    • Paul RussamP Offline
      Paul Russam
      last edited by

      Many years ago I worked on GDS, it had a wonderful feature(s) called RuleX, RuleY and RuleA.

      You could type RuleX 0 300 5400 150 2000 300 and get a horizontal line(X) at the point that you clicked, 300mm up from that, 5400mm up again, 150 up again etc.
      RuleY was the same but produced vertical lines and RuleA required 2 clicks and produced lines aligned with those 2 points.

      You could type negative numbers to produce lines going in the opposite direction.

      You could get distances to repeat, for example RuleX 0 100 200 100r5 300 would produce lines at 0,100,200,100,100,100,100,100,300.

      Could a ruby make use of the ruler in SU to do such a script(s) RuleX, RuleY, RuleZ & RuleA ?.
      Could it be one command, as in click on a line and then a direction, or 2 clicks to establish a base line and then a third to establish a direction?

      Just a thought.

      Paul Russam
      English doesn't borrow from other languages. It follows them down dark allies, knocks them over, and goes through their pockets for loose grammar.

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

        There are already several Rubies out there that make grids of clines at XY (and Z) spacings - grid.rb, 3d_grid.rb, numbered_grid.rb etc. There's also a parametric 2D version you can adjust later on - think that's on SUp site ?

        Search in Didier's Ruby Library Depot site...

        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