• 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 Scripting - TCL
  3. DRC from TCL

Stats

  • State Not Answered
  • Replies 7
  • Subscribers 14
  • Views 6007
  • Members are here 0
More Content

DRC from TCL

ggeorgg
ggeorgg over 2 years ago

Dear community, 

is it possible to directly run a design rule check via TCL?

I have found the procedure "OrHandlerDRCConfig::capRunDRCConfigData", but it does not create the drc file when calling 

for example like this:

set pStrClientId "hostedClientId"
set pStrDRCConfigDataJson [::OrEntryDRCConfig::capGetDefaultDRCConfigData $pStrClientId]
OrHandlerDRCConfig::capRunDRCConfigData $pStrDRCConfigDataJson
The return value is just "3". Possible that the "pStrDRCConfigDataJson" variable is just wrong. Did someone already do this? It shall be part of a fully non-interactive script to help developers speed up when they think the design is ready to be "compiled". Currently I just open the DRC Widget with "Menu 'PCB::Design Rules Check"  ', but using this procedure, the script become interactive.
Thanks
BR
Georg
  • Cancel
  • Sign in to reply
Parents
  • TechiEE12
    0 TechiEE12 over 2 years ago

    Go to Options >Extended Preferences > Command Shell > Enable Journaling

    After this is done, any task done in Capture will result in the corresponding TCL command to be printed in the Capture TCL window.

    You can save these commands and rerun these any number of times. For example, to run a DRC the command is:

    ​Menu "Tools::Design Rules Check" | DialogBox  "OK" "C:/Users/bforsse/AppData/Local/Temp/CAPTURELOG/Wed_Mar_08_10_52_08_2017/Design Rules Options_1.xml"

    Save the xml file that is created (for example, F:/temp/drc/ Design Rules Options_1.xml).

    Run the DRC command by typing it in the Capture Tcl window as follows:

    Menu "Tools::Design Rules Check" | DialogBox  "OK" <xml file path>

    Example:

    Menu "Tools::Design Rules Check" | DialogBox  "OK" “F:/temp/drc/ Design Rules Options_1.xml”).

    Hope this helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ggeorgg
    0 ggeorgg over 2 years ago in reply to TechiEE12

    Thanks for your message.

    Which version are you using? I am on 22.1 and I had the Journaling already enabled. There I can only see 

    Menu "Tools::Design Rules Check"

    There is no path given to this command. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • ggeorgg
    0 ggeorgg over 2 years ago in reply to TechiEE12

    Thanks for your message.

    Which version are you using? I am on 22.1 and I had the Journaling already enabled. There I can only see 

    Menu "Tools::Design Rules Check"

    There is no path given to this command. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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