I am copying a schematic with a new Cell name and after that, the new cell is locked. Then I am trying to close the cell by using dbClose however the cv_new ID is empty. This is the code I am using (IC6.1.6-64b):
cv=dbOpenCellViewByType(Lib_Name Old_Name "schematic" "schematic" "r"); cv_new=dbCopyCellView( cv Lib_Name New_Name "schematic" nil nil t); -----> The cell is copied correctly but locked.
dbClose(cv);dbClose(cv_new); ------> ERROR in this line because cv_new=nil however the cell was correctly copied.
I found a in this solution (dbCopyCellView locks cell) and also in the Virtuoso Design Environment SKILL reference, that the dbCopyCellView should return the cell ID when the cell is copied but that is not my case even when the cell is correctly copied.
Do you have some idea to unlock the cell after copying it or why I am not having cell_ID return from the dbCopyCellView function?
I have tried this code however when the new cell id is found and closed also it is removed from the library manager:
cvs=dbGetOpenCellViews(); foreach(item cvs if( item->cellName==New_Name then dbSave(item); dbClose(item); ----> The cell is completely removed. )
Which version are you using? It sounds to me as if it didn't really copy the cellView - it created the cellView directory, but it was empty - which was why it got removed when closed. Something odd is going on here which I think we'll need to see your data - probably best to go to customer support.
did you get any solution to this? I encounter the same issue. The copied cell is just blank after performing the copy.
What sub-version are you using? In other words, what does getVersion(t) in the CIW return?
I'm hitting a problem with replying, hence several attempts to post. Can you please show your SKILL that you're using to perform the copy?
Were there any messages in the CIW when you tried to do this? I'd also like to see what the directories for the cellView look like in UNIX too - i.e. using "ls -al" on the cellView source and destination directories within the library (ideally immediately after doing the copy, rather than after you've quit virtuoso).