hatebbs
Newbie level 3
mod skill cadence
I've encountered some SKILL problems when I want to modify a useful SKILL code. This SKILL code is for placing the labels in an array manner. No matter how I modifed it will always show "*Error* eval: unbound variable - if". Can anyone help me please?
Original:
labcount = 1
while(labcount <= numOlabs
sprintf(tmp "%s%d%s" label startnum labels)
dbCreateLabel( getEditRep() list( layer "pin" ) location tmp
just rotate fontname fontheight)
location = list( xCoord(location)+xSpace yCoord(location+ySpace)
startnum = startnum + countby
labcount = labcount +1
geRefresh()
Modified:
while(labcount <= numOlabs
sprintf(tmp "%s%d%s" label startnum labels)
dbCreateLabel( getEditRep() list( layer "pin" ) location tmp
just rotate fontname fontheight)
if ( mod(labcount 32)==0 then
xS=xPitchdiff
yS=yPitchdiff
else
xS=xSpace
yS=ySpace
)
location = list( xCoord(location)+xS yCoord(location)+yS)
startnum = startnum + countby
labcount = labcount +1
geRefresh()
I've encountered some SKILL problems when I want to modify a useful SKILL code. This SKILL code is for placing the labels in an array manner. No matter how I modifed it will always show "*Error* eval: unbound variable - if". Can anyone help me please?
Original:
labcount = 1
while(labcount <= numOlabs
sprintf(tmp "%s%d%s" label startnum labels)
dbCreateLabel( getEditRep() list( layer "pin" ) location tmp
just rotate fontname fontheight)
location = list( xCoord(location)+xSpace yCoord(location+ySpace)
startnum = startnum + countby
labcount = labcount +1
geRefresh()
Modified:
while(labcount <= numOlabs
sprintf(tmp "%s%d%s" label startnum labels)
dbCreateLabel( getEditRep() list( layer "pin" ) location tmp
just rotate fontname fontheight)
if ( mod(labcount 32)==0 then
xS=xPitchdiff
yS=yPitchdiff
else
xS=xSpace
yS=ySpace
)
location = list( xCoord(location)+xS yCoord(location)+yS)
startnum = startnum + countby
labcount = labcount +1
geRefresh()