I need to rename a lot of cells and change also the references from old cell to new ones.
From Library Manager it is present "Rename Cell" with Update Instance that is the right function, but I did't find skill code to do the operation automatically.
You can use the ccp* functions combined with the gdm* functions to achieve this. For example there is a ccpCopy function that can perform a copy followed by an update operation. Here is a snippet taken from my CCShierCopyCell.il that can be found on SourceLink:
ccpCopy( specList ;; source spec list destSpecList ;; destination spec list nil ;; overwrite? 'CCP_NO_EXPAND ;; expandflag nil ;; copyViewType list nil ;; copyViewName list "" ;; viewName regular expression "CDBA" ;; name space referring to previous 2 arguments 'CCP_UPDATE_DESTLIB_ONLY ;; whatToUpdate )
Get the code here or here
Also, check the documentation for the ccpCopy(), ccpExpandDesign(), gdmCreateSpec(), gdmCreateSpecList(), gdmAddSpecToSpecList(), gdmResetSpecList() and gdmInspectSpec() SKILL functions.
I hope this helps you.
In reply to skillUser:
thank you for you help
In reply to LeO99:
How about using the search capability in the documentation? You can get to the documentation either using the Help menus in the tools (surprise, surprise), or by using cdnshelp in IC61 or cdsdoc in IC5141. Or you can search on Cadence Online Support.
Or if that's too difficult, it's in <ICinstDir>/doc/caiuser/caiuser.pdf (The Cadence Application Infrastructure Guide).
In reply to Andrew Beckett:
Well Andrew that helped. But while copying and updating cells in the destination library only a few of the cells are updated and not all of them. Can you think of something why this is happening.
Not based on the information you've provided.
The purpose of the script is to rename the cells in the source library and copy them to the destination library. This script creates a GUI wherein you have to give the name of the source library, destination library, prefix and suffix. Suppose you have a cell named XYZ in source library than it will be copied as "prefix"XYZ"suffix" to the destination library. But not all the cells are updated in the desitnation library. For more clarity I am attaching the SKILL code with this reply.