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)
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)