I am trying to drop a via with 1X2 (row,column) at the mouse pointed location. To start with I have written this code .
procedure(dropvia()cv=hiGetCurrentWindow()cvid=geGetEditCellView()pt=geWindowToEditPoint(cv hiGetPoint(cv))dbCreateRect(cvid list("VIA "drawing") list(car(pt)-0.03:cadr(pt)-0.03 car(pt)+0.03:cadr(pt)+0.03)))
Later I realised that, this is not I am looking for. I wanted to create a via, the one similar to leHiCreateVia() which opens a form and we enter the values.
I tried with dbCreateInst and select the appropriate instance like M2_M1. But is there a way to create via to the one similar to leHiCreateVia() form??
Please give me a appropriate command to plug in my code.
In case, If there is way a to get above one, how do we return the name of the via definition (eg:M1_M2,M2_M3), so that I can pass this name to change it to next level via. Say I will select M1_M2 and press a key to change it to M2_M3
In IC615 (assuming you're still talking about IC615 and are not flipping back and forth between versions from your other questions), you need to use dbCreateVia. There are numerous posts on this in these forums - try searching for dbCreateVia (at a guess).
In reply to Andrew Beckett:
Yes!! I will be using 6.1.5 always!!!
I got the function I am looking for by searching in the forums. I did not find out how to get the property of the selected via. I wanted to do something like this.
if(layer~>layerName == "M1"thenlayer~>layerName = "M2X"
In place of M1, I want to replace with M2X_M1 and in place of M2X i wanted M3X_M2X
Sorry for the never ending discussion, but I am getting a chance to learn.
In reply to bharath006:
You need to re-create the via to change the via type. You can't just set an attribute on the via to change it.
In this case, I would want to know the slected via name and co-ordinates so that I can re-create the via in that particular location by deleting the current one. Can you please let me know how to get name of the via
Assuming that you have the via selected (and nothing else):
; get the first selected object as the viavia=car(geGetSelSet())via~>xy ; returns the coordinate of the viavia~>viaHeader~>viaDefName ; returns the name of the via.