Hi Sir,
Skill > foreach(other, Oth_refdes
more> PS_DRC_refdes = setof(drc, PAD_SKT_ERROR_List, member(other, drc~>violations~>parent~>parent~>refdes))
more> PS_DRC_segment = flatten(PAD_SKT_ERROR_List~>violations~>parent ~>segments ~>startEnd)
more> GF_DRC_pin = flatten(PS_DRC_refdes ~>violations~>number)
more> PIN_DRC = setof(drc, unique(flatten(PS_DRC_refdes~>violations)), rexMatchp("pin" drc~>objType))
more> a = min(mapcar( 'axlDistance PS_DRC_refdes~>xy PIN_DRC~>xy))
more> println(a) )
(2.521049 2.098455)
(3.131717 2.708994 3.143986)
(3.786242)
(1.34828)
I want to get each minimum value of the foreach loop
But I get the error as below~
Skill > foreach(other, Oth_refdes
more> PS_DRC_refdes = setof(drc, PAD_SKT_ERROR_List, member(other, drc~>violations~>parent~>parent~>refdes))
more> PS_DRC_segment = flatten(PAD_SKT_ERROR_List~>violations~>parent ~>segments ~>startEnd)
more> GF_DRC_pin = flatten(PS_DRC_refdes ~>violations~>number)
more> PIN_DRC = setof(drc, unique(flatten(PS_DRC_refdes~>violations)), rexMatchp("pin" drc~>objType))
more> (foreach (x y) PS_DRC_refdes PIN_DRC
more> pitch = axlDistance(x~>xy y~>xy)
more> minPitch = if(minPitch, min(minPitch, pitch), pitch)
more> println(minPitch) ))
E- *Error* min: can't handle min((2.521049 2.098455) 2.521049)
ERROR
How can I fix the error code?
Thanks~
Thanks~