How to know the rotation of the instance when you are edit-in-place ?

Discussion in 'Cadence' started by Charley, Jul 17, 2009.

  1. Charley

    Charley Guest

    Dear All,

    How to know the rotation of the instance when you are edit-in-place ?

    Thank you,
    Char
     
    Charley, Jul 17, 2009
    #1
  2. Charley

    Charley Guest


    Hi all,

    After try ... , It's car(geGetEditCellView()~>instRefs)~>transform

    Thanks All,

    Charley
     
    Charley, Jul 17, 2009
    #2
  3. Charley wrote, on 07/17/09 07:00:
    Charley,

    That's not a reliable method, because ~>instRefs will depend upon how many
    instances of the edited cell you have open. If you have more than one, it will
    not work.

    geGetInstHierPath() is the function you want. This returns information about how
    you descended down from the top. There's information about the mosaic entry and
    iterated instance in the result, but that won't affect the orientation of the
    instance, so the following should do the job:

    caar(geGetInstHierPath(hiGetCurrentWindow()))~>orient

    Regards,

    Andrew.
     
    Andrew Beckett, Jul 17, 2009
    #3
  4. Charley

    Charley Guest

    Hi Andrew,

    You are right. It's very helpful.
    Thank you very much.

    Charley
     
    Charley, Jul 18, 2009
    #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.