I'm currently writing some SKILL to globally search and replace layers in an existing layout(using leSearchHierarchy and leReplace). This works fine, but does not work on mult-part paths(or at least on the subShapes of the MPP). I am able to find the ROD object using rodGetObj and testing the items in the list returned from leSearchHierarchy to find the MPPs(if rodGetObj returns something other than nil, then the object is an ROD). The problem is that i cannot find a way to change the layers of the objects that are subShapes of the ROD object. I can do this in the GUI, but selecting the ROD MPP, clicking the subpart button, which brings up the Edit ROD Subpart menu, where i can select enclosure subpath, subrectangle, or offset subpath and edit/apply the changes to the subShape layers. I have not found a way to do this in SKILL however, so any help on this topic would be much appreciated!
I also tried to modify the techfile, where the MPPs are defined to see if that would globally reevaluate the MPPS with the new layer definition, but that doesn't work. Apparently the mpps are only evaluated while drawing and once instantiated no longer refer to the definition in the techfile.
Thanks in advance for any suggestions....
There is currently no public API to change subparts of an MPP. If you want this, please contact Cadence Customer Support, and an enhancement CCR can be filed.
For now the only (non-private) solution is to do a rodUnNameShape() on the MPP, and then you can modify whatever you like (but it's not an MPP any more).
And you're right, the MPP templates are only used to seed the creation of the MPP; no reference to the template is kept, and MPPs do not update to follow changes to the MPP templates.
How to use rodUnNameShape() ? what parameter argument is to be passed? Giving the objID of the MPP as the argument , gives an error message-
" parameter argument is not a valid ROD object Id - db:0x5cd6d422".
What is the correct syntax to change/ access the attributres of all sub-parts of the MPP ?
Thanks and regards,
You're trying to do the operation with a dbId, rather than a rodId. You can find the rodId by doing:
You can then find the shapes contained within it by doing:
rodId~>subShapes (and rodId~>dbId for the master shape)
You'd do rodUnNameShape(rodId).
Hope that helps,
It worked fine, except, rodID~>dbID was not giving me the mastershape of ROD.It is showing error,namely,nil.
That's because it's rodID~>dbId not ~>dbID (it is case sensitive). If you do rodID~>? you can see all the names of the attributes. Also (of course) you can't do it after you've done a rodUnNameShape() - because it's no longer a ROD object any more.