select LSW layer through skill

G

Giuseppe

Guest
Hello,
is there a way, through the skill language, for setting a LSW layer?
I would like something like

leiMouseSetEntryLevel(n)

but where I can specify the layer name instead of the LSW layer order
'n'. If there is not, does someone know an equivalent solution?

Thanks,

Giuseppe
 
Try this way:

leSetEntryLayer( '("name" "purpose") techGetTechFile(geGetEditCellView()))

stéphane


Giuseppe wrote:
Hello,
is there a way, through the skill language, for setting a LSW layer?
I would like something like

leiMouseSetEntryLevel(n)

but where I can specify the layer name instead of the LSW layer order
'n'. If there is not, does someone know an equivalent solution?

Thanks,

Giuseppe
 
Hi Giuseppe,

try:

leSetEntryLayer("metal2")

Marc

Giuseppe wrote:
Hello,
is there a way, through the skill language, for setting a LSW layer?
I would like something like

leiMouseSetEntryLevel(n)

but where I can specify the layer name instead of the LSW layer order
'n'. If there is not, does someone know an equivalent solution?

Thanks,

Giuseppe
 
Giuseppe wrote:
Hello,
is there a way, through the skill language, for setting a LSW layer?
I would like something like

leiMouseSetEntryLevel(n)

but where I can specify the layer name instead of the LSW layer order
'n'. If there is not, does someone know an equivalent solution?

Thanks,

Giuseppe

Wonderful bindkeys, extend to other numbers

;; Layer Select - push 1 to make metal1 the active layer
hiSetBindKey("Layout" "<Key>1" "leSetEntryLayer('(metal1 drawing))")

;; Layer Visible - push Shift-1 to toggle the visibility of metal1
hiSetBindKey("Layout" "Shift<Key>1" "leSetLayerVisible('(metal1 drawing)
not(leIsLayerVisible('(metal1 drawing)))) hiRedraw()")

;; Layer Change - push CTRL-1 to change the selected layers to metal1
hiSetBindKey("Layout" "Ctrl<Key>1" "MSchangeLayer( \"metal1\")")


;; Layer Change needs this function
(procedure MSchangeLayer( layer @optional (objects nil) )
(if leIsLayerValid( list( layer "drawing")) then
(let ( (cellView geGetEditCellView() ) (count 0) )

(if objects == nil then
objects = geGetSelectedSet())
(foreach object objects
(if object->isShape && object->layerName!=layer then
object->layerName=layer
count++
)
) ;; foreach object

printf("INFO: MSchangeLayer %d shapes changed to %s\n" count layer)
))); let proc MSchangeLayer
 

Welcome to EDABoard.com

Sponsor

Back
Top