Code to upsize existing wires with bind key.

Guest
Andrew gave me this code below. It adds to the row of a selected
contact(vias), is there a way to grow wires similarly? Looking into
the Skill functions reference manual it appears not to be as simple.

Thank you!
Eric


procedure(RowAddRoll(incr)
foreach(selObj geGetSelSet()
when(leIsContact(selObj)
selObj~>row=max((selObj~>row||1)+incr 1)
)
)
);

hiSetBindKeys( "Layout" list(
list("Shift Alt<Btn4Down>" "RowAddRoll(1)");
list("Shift Alt<Btn5Down>" "RowAddRoll(-1)");
))


Btn4down and 5 are the "roll" on a mouse.
 
It's essentially the same code. Assuming your grid is .005,

procedure(RowAddRoll(incr)
foreach(selObj geGetSelSet()
when(leIsContact(selObj)
selObj~>row=max((selObj~>row||1)+incr 1)
)
when(selObj~>objType == "path" || selObj~>objType == "wire"
selObj~>width=max((selObj~>width||.01)+incr*.01 .01)
)
)
);

You can also use a method of getting your grid instead of hardcoding
the grid value. It's double the grid value because otherwise the
wire's edges will be off grid.
I think this code is what you want, but I am not in a position to test
it right this second, so caveat emptor.

On Mar 10, 10:21 am, eric.d.fitzsimm...@gmail.com wrote:
Andrew gave me this code below.  It adds to the row of a selected
contact(vias), is there a way to grow wires similarly?   Looking into
the Skill functions reference manual it appears not to be as simple.

Thank you!
Eric

procedure(RowAddRoll(incr)
   foreach(selObj geGetSelSet()
      when(leIsContact(selObj)
        selObj~>row=max((selObj~>row||1)+incr 1)
      )
   )
);

hiSetBindKeys( "Layout" list(
list("Shift Alt<Btn4Down>"                "RowAddRoll(1)");
list("Shift Alt<Btn5Down>"                "RowAddRoll(-1)");
))

Btn4down and 5 are the "roll" on a mouse.
 

Welcome to EDABoard.com

Sponsor

Back
Top