File "schematic.il"

Full Path: /home/analogde/www/SKILL/schematic.il
File size: 752 bytes
MIME-type: text/plain
Charset: utf-8

prop = car(geGetSelSet())
nb_instance = prop~>numInst
nom_instance = prop~>name
res = parseString( nom_instance "< : >")
indice_min = nth(1 res)
indice_max = nth(2 res)

name = "M0"


s=strcat( name "<" indice_min ":" indice_max ">")

s = "M0<0:9>"

schHiSelectByProperty( "select" "instName" "==" s )


;;;;;; utilisation du M factor
name = "|M0(1).2"
schHiSelectByProperty( "select" "instName" "==" name )

cv=geGetWindowCellView()

;; valide
leSearchHierarchy( cv cv~>bBox 0 "path" list( list( "layer" "==" list( "POLY1" "drawing" ) )  ) )

leSearchHierarchy( cv cv~>bBox 0 "rectangle" list( list( "layer" "==" list( "POLY1" "drawing" ) )  ) )

leSearchHierarchy(cv cv~>bBox 0 "inst" list(list("inst name" "==" name))) 


foreach(inst cv~>instances