Copying cells from a lib to another one (SKILL)

C

camelot

Guest
Hello,
I need to copy several cells from a library to another.
My idea was to use only integreted skill commands and not something
like "system("cp ....)".
I found the command ccpCopy and it seems to be fine but I had some
problems in using it;
I was not able to copy several cells at the same time...
The code I'm using is this one:


destList = gdmCreateSpecList()
dest = gdmCreateSpec(dest_lib_name "" "" "" "CDBA")
gdmAddSpecToSpecList(dest destList)

foreach(cell_name all_cells
srcList = gdmCreateSpecList()
src = gdmCreateSpec(lib_name cell_name "" "" "CDBA")
gdmAddSpecToSpecList(src srcList)
res_copy = ccpCopy(srcList destList t 'CCP_EXPAND_ALL viewtypeList
nil)
 
camelot wrote, on 03/12/10 10:26:
Hello,
I need to copy several cells from a library to another.
My idea was to use only integreted skill commands and not something
like "system("cp ....)".
I found the command ccpCopy and it seems to be fine but I had some
problems in using it;
I was not able to copy several cells at the same time...
The code I'm using is this one:


destList = gdmCreateSpecList()
dest = gdmCreateSpec(dest_lib_name "" "" "" "CDBA")
gdmAddSpecToSpecList(dest destList)

foreach(cell_name all_cells
srcList = gdmCreateSpecList()
src = gdmCreateSpec(lib_name cell_name "" "" "CDBA")
gdmAddSpecToSpecList(src srcList)
res_copy = ccpCopy(srcList destList t 'CCP_EXPAND_ALL viewtypeList
nil)
Bit busy to debug this, but might it be because you're creating a new srcList
for each and every copy - rather than having a single specList for the source,
and then adding all the specs for each source cell to that, and finally doing a
ccpCopy?

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top