How i can get coordinate of instance with skill?

Discussion in 'Cadence' started by Íõ³É³¬, Sep 18, 2003.

  1. Íõ³É³¬

    Íõ³É³¬ Guest

    Dear All

    I want to move a instance basis coordinate How i can get coordinate of
    instance with skill and move it?



    Best regards

    Wang Chengchao
    ************************************************
    Sanguine Microelectronics Corporation
    Tel: +86-21-55666780 ext 141
    Fax: +86-21-65640063
    E-mail:
    Address:9F,365# Handan Rd.,Shanghai
    ************************************************
     
    Íõ³É³¬, Sep 18, 2003
    #1
  2. Íõ³É³¬

    suresh j Guest

    Wang,

    1)First open the cellview in edit mode
    ex.
    1) myCv = dbOpenCellViewByType("libraryName" "cellName" "viewName"
    "maskLayout" "a");open the cellview in edit mode

    2)Get the object id of instance you want to change the origin,
    ex.
    1) myInst = car(geGetSelSet()); Instance should have been selected

    3)The property we are interested in is xy,
    myInst->xy
    will print the current origin of the instance

    4)To change it is simple
    ex.
    1)myInst->xy = list(0.0, 0.0)


    To view what else properties are there with the dbId ( database id), do,
    myInst->?
    will list all the properties associated with the dbId.Play.

    rgds,
    Suresh J
     
    suresh j, Sep 18, 2003
    #2
  3. Íõ³É³¬

    suresh j Guest

    And dont forget to save the cellview by,
    dbSave(myCv);save the edits
    dbClose(myCv);close the cellview

    rgds,
    Suresh
     
    suresh j, Sep 18, 2003
    #3
  4. Íõ³É³¬

    Erik Wanta Guest

    Wang:
    select instance
    get instance id
    inst=car(geGetSelSet())

    get coordinates
    coords=inst~>xy

    read up on the dbMoveFig command or manipulate the xy list directly
     
    Erik Wanta, Sep 18, 2003
    #4
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.