• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Hierarchy editor: post install trigger not working

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14087
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hierarchy editor: post install trigger not working

dontpanic
dontpanic over 6 years ago

Hi! I'd like to use a post-install trigger to automatically resize the hierarchy window upon opening config views. I tried using the following in my .cdsinit:

deRegUserTtriggers("config" nil nil 'my_resizing_procedure)

but this doesn't work (the procedure itself seems working fine when called explicitly). What can be going wrong?

Thanks and regards, Jorge.

  • Cancel
  • mbracht
    mbracht over 6 years ago

    Hi Jorge,

    Hmmmh...without seeing your trigger function code I can just guess.

    Do you see any errors in the CIW?

    Have you implemented your trigger function in a way that it expects one argument?

    Is the hierarchy window already open when the trigger is called?

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dontpanic
    dontpanic over 6 years ago in reply to mbracht

    Hi Max! No errors appear in the CIW, and the function works fine when called explicitly (with an open hierarchy editor as the active window):

    procedure( my_resizing_procedure(@optional args)
        let((WindowID)
            WindowID = hiGetCurrentWindow()
            when(member(hiGetAppType(WindowID) '("Cadence Hierarchy Editor"))
                hiResizeWindow(WindowID list(0:34 2560:1373));
                hiFlush()
            )
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to dontpanic

    Hi Jorge,

    This won't work, unfortunately. The Hierarchy Editor is not a "de" (Design Editor") application. You can tell that because when the Hierarchy Editor is the current window, using deGetViewType(hiGetCurrentWindow()) returns "unknown". There's an application registered mostly to support the customisation in the schematic window when configured, but primarily that is done via a plugin nowadays.

    I filed an enhancement a number of years back to support a way of customising the UI (which I guess could be used to resize the window, I've not tried). Support for this was added in IC618 and ICADVM181. It's done via the SKILL function hedRegUICustomFunc which is documented in the Virtuoso Hierarchy Editor User Guide (<ICinstDir>/doc/cdshiereditor/cdshiereditor.pdf) in Appendix B.

    A simpler solution would probably be just to do:

    envSetVal("hed.display" "width" 'int 1000)
    envSetVal("hed.display" "height" 'int 600)
    envSetVal("hed.display" "x" 'int 400)
    envSetVal("hed.display" "y" 'int 100)

    With whatever numbers  you want (I just picked a few to fit my screen - adjust to suit your own needs). This will work in IC617 (and probably older versions too - I didn't check).

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • dontpanic
    dontpanic over 6 years ago in reply to Andrew Beckett

    Thanks a million, Andrew! As usual, your solution works like a charm!!! Smiley

    Best regards, Jorge.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information