• 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. toggle entry layer fillstyle between fill and stipple

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 9502
  • 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

toggle entry layer fillstyle between fill and stipple

dfink
dfink over 3 years ago

I'd like to use the drSetPacket( function to control the fillstyle of the active entry layer, toggling between fill and stipple fillstyles.

The problem is preserving all the other parameters for the layer in the drSetPacket command.  Unless there is a better way of controlling entry layer fillstyle, how many hurdles must be hopped?  

Somehow need to get the packet id of the entry layer, then get the packet parameters, analyze the fillstyle and toggle it in the drSetPacket command.

Dave in Oregon

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Hi Dave,

    Maybe this:  Toggle the fill for any layer on the fly  will give you some hints? I think you'd probably do something like:

    current=drGetPacket("display" "myPacket")
    setf(
    caddr(current) "newStipple")
    apply('drSetPacket current)

    where myPacket and newStipple are what you want. You might need to store the old stipple somewhere to restore it back latter, but something like that would work.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dfink
    dfink over 3 years ago in reply to Andrew Beckett

    Thanks very much for your help Andrew Beckett!

    I'm finding the nth(index list) function easier to use than caddr with setf but otherwise all your suggestions have helped me through this thorny area!

    Regards, Dave Fink

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dfink
    dfink over 3 years ago in reply to Andrew Beckett

    Thanks very much for your help Andrew Beckett!

    I'm finding the nth(index list) function easier to use than caddr with setf but otherwise all your suggestions have helped me through this thorny area!

    Regards, Dave Fink

    • 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