I am trying to rename an instance to, for example, K0, but I get an error (SCH-1025): Instance name "K0" is not unique. I am sure that there are no other instances currently named K0 in the schematic.
Is this a bug?
I think this is a cache problem. Is there a way I can clear the cache of instance names?
In the CIW, can you try do this (with the schematic open for edit):
does it return anything?
I have seen one case where the check above (actually it was for an iterated instance) returned nil, and I had to do (at the UNIX level):
oaScan -lib libName -cell cellName -view schematic
which reported an issue with the database, and then I called it again with -repair to fix it. Note that you need to have the schematic closed in the editor to be able to run oaScan.
But most lilely it is that you really have an instance called K0 somewhere...