• 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. Getting drc Error Report

Stats

  • Replies 2
  • Subscribers 160
  • Views 12895
  • Members are here 0
More Content

Getting drc Error Report

karthikeyan123
karthikeyan123 over 4 years ago

Hi,

I want to get the DRC error report PIN and Part of net names I don't know the commands to get the data. any one please help me out.

These three marked columns report according to DRC Error

procedure(drc()
out = outfile("DRC.rpt")
foreach(drclp axlDBGetDesign() ->drcs
 fprintf(out, "%s,%s,%s\n", drclp -> ? , drclp -> ?, drclp -> ?)
)
close(out)
)

  • Sign in to reply
  • Cancel
  • luanvn81
    luanvn81 over 4 years ago

    Hi K!

    Here is example for your code.

    procedure(drc_chk()
    out = outfile("DRC.rpt")
    foreach(drc_id axlDBGetDesign()->drcs
    foreach(item drc_id->violations
    if(item->objType == "pin" then
    fprintf(out, "%s\n", item->objType)
    fprintf(out, "%L\n", item->number)
    fprintf(out, "%s\n", item->net->name)
    )

    if(item->objType == "line" || item->objType == "path"|| item->objType == "shape" then
    fprintf(out, "%s\n", item->objType)
    fprintf(out, "%s\n", item->layer)
    fprintf(out, "%s\n", item->net->name)
    ) 

    if(item->objType == "via" then
    fprintf(out, "%s\n", item->objType)
    fprintf(out, "%s\n", item->name)
    fprintf(out, "%s\n", item->net->name)
    ) 
    )

    )
    close(out)
    )

    Luan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 4 years ago in reply to luanvn81

    Thanks lot luan..

    • 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