• 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. How to convert wtype (window type) to string?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 13982
  • 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

How to convert wtype (window type) to string?

DesmondLiu
DesmondLiu over 11 years ago

Hi all,

     I want to customize my filter style for LPP, first I need to know my current window so I used  hiGetCurrentWindow() but it returns wtype data, I can't use it to feed into pteSetSearchMatchType and pteSetSearchOperator functions. Could anybody help me on this? Thanks a lot.

  • Cancel
  • Li Ting
    Li Ting over 11 years ago

    Both pte* function takes a window ID which is what hiGetCurrnetWindow() returns. So I don't see the need to convert it to a string. Also if the windowId is not given, the current window ID is assumed by these two pte* functions.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 11 years ago

    Here is a command to get you the palette window regardless of the current window:

    procedure(myGetPaletteWindow()
        lswWin = car(setof(x hiGetWindowList() hiGetAppType(x)=="Palette"))
    )

    This works when the layer palette is setup as a separate window:

    bash/ksh/sh: export CDS_PALETTE_TYPE=SingleWindow
    csh/tcsh: setenv CDS_PALETTE_TYPE SingleWindow

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Derek,

    That's true, but unnecessary in this case (and it will only work in IC616 when you have a single separate "LSW-style" palette). These functions (in the original question) don't require the window id of the palette window, but the corresponding layout window AFAIK.

    Regards,

    Andrew.

    • 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