• 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. Delete DRC mark

Stats

  • State Suggested Answer
  • Replies 6
  • Answers 1
  • Subscribers 159
  • Views 5928
  • Members are here 0
More Content

Delete DRC mark

ivy372
ivy372 over 1 year ago

Hi Sir,

The skill code show the error as below:

But I only need 1 refdes & 1 error that  the error is the minimal airgap.

axlSetFindFilter( ?enabled '(noall drcs) ?onButtons '(drcs))
Markers = axlGetSelSet(axlAddSelectAll())
DRC2_Markers = setof( x1 Markers rexMatchp("Externally Determined Violation" x1~>name))
 (foreach x1 DRC2_Markers
  (foreach y1 remove(x1 DRC2_Markers)
   a = atof(flatten(x1~>actual))
   b = atof(flatten(y1~>actual))
    (if a > b then
     (if x1~>violations~>parent~>parent ~>refdes == y1~>violations~>parent~>parent ~>refdes then
      axlDeleteObject(x1)
     ))))

error message

=> E- *Error* mapcan: argument #2 should be a list (type template = "ul") - "1.42308 mm"

data

Skill > DRC2_Markers~>??
((prop propList:0000024D26285128 bBox
((63.2025 9.3075)
(63.8375 9.9425)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/TOP" xy
(63.52 9.625) violations
(dbid:0000024D143A6698 dbid:0000024D143BB940) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "1.42308 mm" name "Externally Determined Violation"
)
(prop propList:0000024D26285140 bBox
((63.9325 8.8775)
(64.5675 9.5125)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/TOP" xy
(64.25 9.195) violations
(dbid:0000024D143A6728 dbid:0000024D143BB620) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "1.4966 mm" name "Externally Determined Violation"
)
(prop propList:0000024D26285158 bBox
((69.5324 6.4325)
(70.1674 7.0675)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/BOTTOM" xy
(69.8499 6.75) violations
(dbid:0000024D143CFA90 dbid:0000024D143BB0A8) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "0.9864 mm" name "Externally Determined Violation"
)
(prop propList:0000024D26285170 bBox
((70.6825 5.8826)
(71.3175 6.5176)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/BOTTOM" xy
(71.0 6.2001) violations
(dbid:0000024D143CFA00 dbid:0000024D143BB0A8) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "0.9864 mm" name "Externally Determined Violation"
)
(prop propList:0000024D26285188 bBox
((70.6825 6.9824)
(71.3175 7.6174)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/BOTTOM" xy
(71.0 7.2999) violations
(dbid:0000024D143CFB20 dbid:0000024D143BB0A8) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "0.9864 mm" name "Externally Determined Violation"
)
(prop propList:0000024D262851A0 bBox
((64.6625 9.3075)
(65.2975 9.9425)
) readOnly
t objType "drc" waived nil
layer "DRC ERROR CLASS/TOP" xy
(64.98 9.625) violations
(dbid:0000024D143A6578 dbid:0000024D143BB620) type "PAD to SKT Gap needs >= 1.5mm" source "Golden-finger keepout area"
fixed nil parent dbid:0000024D10BC2D30 expected
"1.5mm" actual "1.4966 mm" name "Externally Determined Violation"
)
)
Skill > DRC2_Markers~>actual
("1.42308 mm" "1.4966 mm" "0.9864 mm" "0.9864 mm" "0.9864 mm"
"1.4966 mm"
)

How can I fix the code?

Thanks~

  • Sign in to reply
  • Cancel
  • eDave
    0 eDave over 1 year ago

    You possibly want something like this:

    axlSetFindFilter(?enabled, '(noall, drcs), ?onButtons '(drcs))
    externalDRCs = setof(drc, axlGetSelSet(axlAddSelectAll()), drc->name == "Externally Determined Violation")
    drcSymbols = unique(flatten(externalDRCs ~>violations ~>parent))
    foreach(symbol, drcSymbols
      symbolDRCs = setof(drc, externalDRCs, member(symbol, drc ->violations ~>parent))
      otherSymbols = remove(symbol, unique(flatten(symbolDRCs ~>violations ~>parent)))
      foreach(otherSymbol, otherSymbols
        symbolToSymbolDRCs = setof(drc, symbolDRCs, member(otherSymbol, drc ->violations ~>parent))
        furthestDRCs = mapcar('cadr, cdr(sortcar(mapcar(lambda((drc), list(axlMKS2UU(drc ->actual) || 0, drc)), symbolToSymbolDRCs), 'lessp)))
        externalDRCs = setof(drc, externalDRCs, !member(drc, furthestDRCs))
        axlDeleteObject(furthestDRCs)
      )
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ivy372
    0 ivy372 over 1 year ago in reply to eDave

    Thanks~ Dave,

    But I just only keep the mark of the circle errors as below~

    Just only show the min airGap mark~

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to ivy372

    I don't understand.

    The other DRC markers are system generated so you will need to waive them or hide the layers they are on.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ivy372
    0 ivy372 over 1 year ago in reply to eDave

    Hi Dave,

    I want delete the other DRC markers, just only keep one error marker closer the goldenfinger.

    Thanks a lot~

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to ivy372

    Hi Ivy,

    Only you will know the logic that needs to be applied.

    Deleting DRC markers is easy. Knowing which ones to delete is up to you.

    My code gives you a technique for sorting on closeness.

    Kind regards,
    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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