Script Request/Idea - MultiConstruction lines
-
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.
-
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...
Advertisement