Create Path Command

Discussion in 'Cadence' started by eric.d.fitzsimmons, Dec 11, 2008.

  1. Does anyone know how to capture the termination coordinates of the
    Create Path Command(end of the center line of the path)?

    I can capture X coordinate for termination point for a horizontal wire
    by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
    vertical command, but the Y for the horizontal and X for the vertical
    is the cursor not the middle line of the path and that is what I need.

    Any help will be greatly appreciated as this is the last thing for my
    script to do what I wish.

    Thank you in advance,
    Eric Fitzsimmons
    IC Layout Designer
     
    eric.d.fitzsimmons, Dec 11, 2008
    #1
  2. eric.d.fitzsimmons

    Risky Guest

    One way to do that would be this sneaky one, hopefully someone knows a
    less sneaky way:
    Get a list of all shapes in the cellview, draw the path, get a list of
    all New shapes in the cellview, if there's only 1, assume it's your
    path.
    Check the points of that shape, the last one should be the terminal
    point.

    ;get the original shape list
    s = deGetCellView~>shapes
    leHiCreatePath()
    ; get a list of all shapes that weren't in the original shape list
    s = setof(shape deGetCellView~>shapes !member(shape s))
    if(length(s) == 1 then
    terminalPoint = car(last(car(s)~>points))
    else terminalPoint = nil
    )
     
    Risky, Dec 12, 2008
    #2
  3. eric.d.fitzsimmons

    layoutDesign Guest

    Perhaps the return value for your command is the database ID for the
    path. Could you then look at the path attributes, I believe it has a
    set of points, and the beginning or last pair of points may be your
    final coordinate?
     
    layoutDesign, Dec 13, 2008
    #3
  4. I am new to cadence skill, left the Intel mother ship 9 months ago
    after the Nehalem(i7 processor) tapeout. Can you expain further, how
    do I find and manipulate the database ID path and attributes.

    Thank you for any and all help.
    Eric
     
    eric.d.fitzsimmons, Dec 15, 2008
    #4
  5. This would work, I am hesitant to use it. The code is for a manual
    router, to automate the width and via transitions and bind the code to
    keys. I have everything I need except the endpoint of the wire. If
    I use your trick, it maybe slow on big databases.

    I really appreciate your efforts.

    Any idea if I can get the coordinated from mouseApplyOrFinishPoint()
    that I am using to finish a path?

    Thank you and Happy holidays!
    Eric
     
    eric.d.fitzsimmons, Dec 15, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.