I am assuming you the layout is flat data or shapes, not instances or pcells
This might get you some info to start.
load the script
Select your shapes then excute the script.
procedure(printPts()let( (type (cnt 0) (objList geGetSelSet()))foreach(obj objList ++cnt type = obj~>objType case(type ("inst" printf("%s %L at %L\n" type obj~>xy)) ("rect" printf("%s on layer %L at %L\n" type obj~>lpp obj~>bBox)) ("polygon" printf("%s on layer %L at %L\n" type obj~>lpp obj~>points)) ("path" printf("%s on layer %L at %L\n" type obj~>lpp obj~>points)) ("pathSeg" printf("%s on layer %L at %L\n" type obj~>lpp list(obj~>beginPt obj~>endPt))) ("label" printf("%s on layer %L at %L\n" type obj~>lpp obj~>xy)) (t printf("%s not defined\n" type)) ))printf("%n objects selected\n" cnt)); end of let); end of printPts
You can find more about the objects from selecting an object/s then executing in the ciw the command geGetSelSet()~>? this will output the variables to the object or geGetSelSet()~>?? will output the variables and values.
In reply to psill:
I want to get the code for finding the coordinates of a Layer which is inside a Pcell ?
And it is not flattened .
In reply to Binoy CK:
If you have the instance id of the instance, you can access all the shapes by doing:
or on each layer purpose pair by doing:
M1=car(exists(lpp instId~>master~>lpps lpp~>layerName=="Metal1" && lpp~>purpose=="drawing"))M1~>shapes
of course, having got the shapes, you can find out the ~>bBox of each or whatever you want. The "coordinates of a layer" is a bit vague, so it's not obvious what you want to do with them.
You might need to use dbTransformPoint or dbTransformBBox of points or bounding box with instId~>transform as the second argument if you want the coordinates referred to the cellView the pcell is instantiated in, otherwise they are relative to the origin of the pcell.