EDAboard.com | EDAboard.de | EDAboard.co.uk | WTWH Media

select LSW layer through skill

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - select LSW layer through skill

Giuseppe
Guest

Mon Jan 24, 2005 3:15 pm   



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

S. Badel
Guest

Mon Jan 24, 2005 4:02 pm   



Try this way:

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

stéphane


Giuseppe wrote:
Quote:
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


Marc Heise
Guest

Mon Jan 24, 2005 4:10 pm   



Hi Giuseppe,

try:

leSetEntryLayer("metal2")

Marc

Giuseppe wrote:
Quote:
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


Richard Griffith
Guest

Tue Jan 25, 2005 4:02 am   



Giuseppe wrote:
Quote:
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

Giuseppe
Guest

Tue Jan 25, 2005 7:12 am   



Thank you for the detailed answers!

Giuseppe


Guest

Thu Mar 14, 2019 8:45 am   



Hi,
How to select only metal1 from the selected object set?

elektroda.net NewsGroups Forum Index - Cadence - select LSW layer through skill

Ask a question - edaboard.com

Arabic version Bulgarian version Catalan version Czech version Danish version German version Greek version English version Spanish version Finnish version French version Hindi version Croatian version Indonesian version Italian version Hebrew version Japanese version Korean version Lithuanian version Latvian version Dutch version Norwegian version Polish version Portuguese version Romanian version Russian version Slovak version Slovenian version Serbian version Swedish version Tagalog version Ukrainian version Vietnamese version Chinese version Turkish version
EDAboard.com map