Venu,Your numbering seems a little inconsistent. I'm assuming your mean AND1, not AND0. Regardless, you can start your indexing from 0 or 1 or whatever you choose. I would do something like the following (this is untested off the top of my head):
indexTbl = makeTable("indexes" 1)foreach(inst geGetEditCellView()~>instances when(member(inst~>cellName list("AND" "OR" "NOT") inst~>name = sprintf(nil "%s%d" inst~>cellName indexTbl[inst~>cellName] indexTbl[inst~>cellName] = indexTbl[inst~>cellName]+1 ))
Add a cellView property on the symbol called "instNamePrefix" and set it to "AND". Search in cdnshelp for "instNamePrefix" to find more details.
Your original post only spoke of "converting". It is important to be very clear in your posts. Andrew's solution should do what you need.
Sorry Dmay. Previously I didn't know about symbols Editing tool. Thats why I got confussion in first post. And Thank you Andrew. I have set instNamePrefix in symbol. It's working good. Thank you very much.