Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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(n)
println(x)
println(y)
)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top