• 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. Maintain display list on window

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 6461
  • 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

Maintain display list on window

RicardoGV1
RicardoGV1 over 2 years ago

Hi everyone,

I'm using the dlAttachDlistToWindow to draw on window, but I'm struggling with two things, this only render one time and if I move the mouse or pan the image disappear.
and when I draw something, the layout disappear. 

For the erase stuff the closes thing I found is dlSetClearOnDraw but don't prevent that.

For the disappearing problem, I was thinking about using loops to keep the drawing but is not the optimal solution.
is there any extra documentation about this apart from the Cadence User Interface SKILL Reference ICADVM20.1?



 


/* First, make the DisplayList. */

dl = dlMakeDisplayList( )
/* Now make a pen table for it. */
penTable = dlMakePenTable(5)
/* Assign the penTable to the display list. */
dlSetPenTable( dl penTable)
/* Define a couple of colors. */
colorIndex = hiStringToIcon( nameToColor( "blue"))
dlSetPenColor( 1 colorIndex penTable)
/* Set this pen "filled." */
dlSetPenFillStyle( 1 "SolidFill" penTable)
/* Put the objects in. */
dlAddBox( dl 1 0:0 100:100)
dlAddBox( dl 2 10:10 90:90)
dlAddCircle( dl 3 50:50 20)
dlAddStrokeText( dl 4 50:50 "Window" "0" "gothic" 20 "center")
/* Make a window. Put the DisplayList into the window */
/* and set the windows icon. */
w = hiGetCurrentWindow()
;dlSetClearOnDraw(dl w)
dlAttachDlistToWindow( dl w)


best regards,
R.Gómez

  • Cancel
  • AurelBuche
    AurelBuche over 2 years ago

    Hi,

    I believe what you are trying to do is not feasible using display lists

    Display lists are not meant to be drawn inside a layout window, the doc is quite clear about the window argument:

    w_windowId

    ID number of an empty window. It cannot be the window of another application.

    If you want to add graphical hints on top of a layout view you might want to have a look to highlight set functions instead

    Hope this helps,

    Cheers,

    Aurélien

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • RicardoGV1
    RicardoGV1 over 2 years ago in reply to AurelBuche

    Thanks Aurélien

    • 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