Home > Community > Forums > Custom IC SKILL > Dropping via at current location!!

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Dropping via at current location!! 

Last post Mon, Aug 6 2012 5:07 AM by Andrew Beckett. 5 replies.
Started by bharath006 19 Jul 2012 03:10 AM. Topic has 5 replies and 2059 views
Page 1 of 1 (6 items)
Sort Posts:
  • Thu, Jul 19 2012 3:10 AM

    Dropping via at current location!! Reply

    Hi,

       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

    Thanks,

    Bharath

    • Post Points: 20
  • Thu, Jul 19 2012 4:08 AM

    Re: Dropping via at current location!! Reply

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

    Andrew

    • Post Points: 20
  • Fri, Jul 20 2012 12:13 AM

    Re: Dropping via at current location!! Reply

    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"
    then
    layer~>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.

    Thanks,

    Bharath. 

    • Post Points: 20
  • Fri, Jul 20 2012 12:55 AM

    Re: Dropping via at current location!! Reply

    Bharath,

    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.

    Regards,

    Andrew.

    • Post Points: 20
  • Fri, Jul 20 2012 2:25 AM

    Re: Dropping via at current location!! Reply

    Hi Andrew,

      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

    • Post Points: 20
  • Mon, Aug 6 2012 5:07 AM

    Re: Dropping via at current location!! Reply

    Assuming that you have the via selected (and nothing else):

    ; get the first selected object as the via
    via=car(geGetSelSet())
    via~>xy  ; returns the coordinate of the via
    via~>viaHeader~>viaDefName ; returns the name of the via.

    Andrew

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by bharath006 at 19 Jul 2012 03:10 AM. Topic has 5 replies.