Skill code to find coordinates of instance

Status
Not open for further replies.

analog1

Newbie level 2
Joined
Mar 23, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
What is the simplest skill code to find the coordinates of an instance with the name Ixxx in a layout? Thanks!
 

procedure( Computecoordinates( bBox )
ll = car( bBox )
ur = cadr( bBox )
llx=xCoord(ll)
urx=xCoord(ur)
lly = yCoord( ll )
ury = yCoord( ur )
cox=(llx+urx)/2
coy=(lly+ury)/2

) ; procedure
 

(foreach inst cv ~> instances
x = car(inst~>xy)
y = cadr(inst~>xy)
n = inst ~> name
println
println(x)
println
)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…