• 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. Design Rules Check OPTION FROM TCL

Stats

  • State Suggested Answer
  • Replies 1
  • Answers 1
  • Subscribers 12
  • Views 738
  • Members are here 0
More Content

Design Rules Check OPTION FROM TCL

ZH202409115233
ZH202409115233 2 months ago

I want to use a TCL script to trigger changes to the DRC configuration, to avoid having to reconfigure DRC every time I switch DSNs. Originally, I tried using the following code:

 Menu "PCB::Design Rules Check" | DialogBox  "OK" "C:/Users/ZHANGH~1/AppData/Local/Temp/CAPTURELOG/Fri_Jul_25_16_27_33_2025/Undo Warning!!_1.xml"

However, after executing it, only the UI interface appeared, and I was still missing the DRC configuration information. Do you have any suggestions on how I can achieve my goal?

  • Cancel
  • Sign in to reply
Parents
  • TechnoBobby
    0 TechnoBobby 2 months ago

    Hi ZH202409115233 ,

    You can achieve this using below steps:

    1. First, enable logging mode by running following commands in command window:
    orPrmAutomation::setMode 1
    orPrmAutomation::setPath {C:/temp/drc.log}

    2. Then open the DRC UI from PCB > Design Rules Check, configure the required rules, and click Run. This will generate a drc.log file at the above path. i.e. {C:/temp/drc.log}

    3. To reuse the configuration in any dsn, use:

    orPrmAutomation::setMode 2
    orPrmAutomation::setPath {C:/temp/drc.log}
    Menu "PCB::Design Rules Check" | DialogBox "OK" "C:%temp%/CAPTURELOG/<Folder_name_with_day_date>/Undo Warning!!_1.xml"

    Make sure the paths to drc.log and the XML file are valid and correctly updated.


    Hope this helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • TechnoBobby
    0 TechnoBobby 2 months ago

    Hi ZH202409115233 ,

    You can achieve this using below steps:

    1. First, enable logging mode by running following commands in command window:
    orPrmAutomation::setMode 1
    orPrmAutomation::setPath {C:/temp/drc.log}

    2. Then open the DRC UI from PCB > Design Rules Check, configure the required rules, and click Run. This will generate a drc.log file at the above path. i.e. {C:/temp/drc.log}

    3. To reuse the configuration in any dsn, use:

    orPrmAutomation::setMode 2
    orPrmAutomation::setPath {C:/temp/drc.log}
    Menu "PCB::Design Rules Check" | DialogBox "OK" "C:%temp%/CAPTURELOG/<Folder_name_with_day_date>/Undo Warning!!_1.xml"

    Make sure the paths to drc.log and the XML file are valid and correctly updated.


    Hope this helps!

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