• 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 get Windows Number? or how to Set a WIndow new Window...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 6596
  • 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 get Windows Number? or how to Set a WIndow new Window number?

alaylayla
alaylayla over 1 year ago

Window : number,how i get and change the number? 

I see the second number  in context  attribute is same as window numbe

what's meaning and function of context attribute in window ID ?

Virtuoso 618

  • Cancel
Parents
  • AurelBuche
    AurelBuche over 1 year ago

    Hi, 

    I don't believe that you can change the window id number, it is managed by Virtuoso directly

    To extract it, you can do the following : 

    ;; My window shows 5(13) in its bottom left corner
    ;; It displays a schematic cellview and other dockable windows (also called assistants)
    
    ;; From support.cadence.com/.../ArticleAttachmentPortalt
    ;; "SKILL procedure to have only the window number returned"
    procedure( getWinNum()
       window=hiGetCurrentWindow()
       window->windowNum
    )
    
    ;; Other solution is to extract the number directly from window representation
    (defun get_win_number (win)
      (atoi (cadr (parseString (lsprintf "%L" win) ":"))))
    
    ;; Current window (the one showing the cellview)
    win = (hiGetCurrentWindow)
    win->windowNum
    ;; => 13
    (get_win_number win)
    ;; => 13
    
    ;; Session window (it contains the main window and the dockable ones)
    swin = (hiGetSessionWindow win)
    ;; Unfortunately in my case the following does not work
    swin->windowNum
    ;; => -2147483643
    (get_win_number swin)
    ;; => 5

    Hope this helps

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • alaylayla
    alaylayla over 1 year ago in reply to AurelBuche

    tank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • alaylayla
    alaylayla over 1 year ago in reply to AurelBuche

    tank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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