• 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. How to automatedly close/select options of alert window...

Stats

  • Replies 3
  • Subscribers 159
  • Views 4961
  • Members are here 0
More Content

How to automatedly close/select options of alert window in allegro system using Allegro .src or python scripts?

Yun777
Yun777 over 4 years ago

Hello, 

I'm currently working on an automation for modifying a original A.brd to another modified B.brd using .src scripts.

I would like to complete this modification without any manual settings. Therefore, I wrote a python program to run allegro.exe with .src scripts, 

which will execute this command:

os.system(f'allegro.exe -product Allegro_performance -open {$originalbrd} -s {$scriptPath}')
where $originalbrd and $scriptPath are the paths of original A.brd and .src scripts for modification. 
It can successfully run and complete a B.brd file.

However, due to the different allegro version between A.brd (version 16.6) and current allegro.exe version(17.2), after opening the original A.brd,

the system will prompt out a alert window(as below) to inform me the version difference and I must manually select "yes" to proceed.

Here're my question:

1. I wonder if there's a solution for using .src or python (os.system) script to stop from manually selecting "yes" on alert window ?

2. How to close Allegro program after the automated modification? Is there any SKILL script? 

My environment as below:

OS: windows

Language: python 3.7

Allegro Version: 17.2

Thank you in advance !

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

    ** update **

    I've got the solution for question 2. Just add "exit" in the last line of .scr file.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 4 years ago in reply to Yun777

    For question 1 try adding

    set noconfirm

    at the beginning of your script...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Yun777
    Yun777 over 4 years ago in reply to DavidJHutchins

    Hi, 

    thank you for the reply. It worked!

    • 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