• 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. Allegro X PCB Editor
  3. I lose waived DRCs during refresh; need skill code

Stats

  • Replies 3
  • Subscribers 159
  • Views 13452
  • Members are here 0
More Content

I lose waived DRCs during refresh; need skill code

patricksingr
patricksingr over 11 years ago

Hi everyone,

When I update symbols I lose all of my waived DRCs during refresh, is there a skill script to retain DRCs during refresh.

My goal is the to able to export waived DRCs, and once refresh is done I'd like to import it back without loosing default comments (should be at the same x,y coordinates)

Thanks in advance

Patrick

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 11 years ago

    Hi Patrick,

    This has been discussed before with most of us agreeing that it is undesirable to automatically waive drcs. However, I can see where tou are coming from with wanting to record the comments. If you compared the old drc with the new, and they were identical, you could reasonably safely waive and re-add the comment. This code would be relatively simple but I don't have anything useful for you. If you need help to develop the code yourself, let me know.

    Cheers,
    Dave 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • patricksingr
    patricksingr over 11 years ago

    Thank you Dave for your advice. Yes, old DRC with the new were identical and should be the same location. The only change were the footprint of the symbols (after update symbols). My PCB board has more than 3000 waived drc and they are different comments. Therefore I was wondering if you have any code out there for me to use or help me to develop the code. I would save me hours just to look for group of drc to be waive and add the comment --v/r Patrick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 11 years ago

    Here's a simple answer. Run RecordWaivedDRCs to record the waived drcs. Run RestoreWaivedDRCs to restore the comment and the status.

    defun( RecordWaivedDRCs ()

    defvar(MyWaivedDRCs, mapcar(lambda((drc), cons(nil, append(drc ->??, list('comment drc ->prop ->COMMENT)))), axlDBGetDesign() ->waived))

    axlDRCWaiveGetCount()

    )

     

    defun( RestoreWaivedDRCs ()

     let((equivDrc)

    foreach(drc, axlDBGetDesign() ->drcs

    equivDrc = car(setof(waivedDRC, MyWaivedDRCs, forall(attr, '(xy, layer, source, expected, actual, name), get(waivedDRC, attr) == get(drc, attr))))

    when(equivDrc, axlDRCWaive(t, drc, equivDrc ->comment))

    )

    axlDRCWaiveGetCount()

    )) 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

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