Home > Community > Forums > PCB SKILL > I lose waived DRCs during refresh; need skill code

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 I lose waived DRCs during refresh; need skill code 

Last post Thu, Mar 27 2014 5:51 PM by eDave. 3 replies.
Started by patricksingr 26 Mar 2014 02:35 PM. Topic has 3 replies and 1631 views
Page 1 of 1 (4 items)
Sort Posts:
  • Wed, Mar 26 2014 2:35 PM

    • patricksingr
    • Not Ranked
    • Joined on Wed, Jun 26 2013
    • Hillsboro, OR
    • Posts 5
    • Points 85
    I lose waived DRCs during refresh; need skill code Reply

    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

    Filed under: ,
    • Post Points: 20
  • Thu, Mar 27 2014 12:18 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,550
    Re: I lose waived DRCs during refresh; need skill code Reply

    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 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Mar 27 2014 3:13 PM

    • patricksingr
    • Not Ranked
    • Joined on Wed, Jun 26 2013
    • Hillsboro, OR
    • Posts 5
    • Points 85
    Re: I lose waived DRCs during refresh; need skill code Reply

    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

    • Post Points: 20
  • Thu, Mar 27 2014 5:51 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,550
    Re: I lose waived DRCs during refresh; need skill code Reply

    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()

    )) 

    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by patricksingr at 26 Mar 2014 02:35 PM. Topic has 3 replies.