• 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. Can I catch any information while "Create Netlist" fail...

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 13
  • Views 77
  • Members are here 0
More Content

Can I catch any information while "Create Netlist" fail with tcl?

Gelzone
Gelzone 1 day ago

I have used user-action tcl code (Menu "Tools::Create Netlist") to create netlist from DSN file in OrCAD.
Sometimes the process will fail due to the DSN content or config setting, and there will be a error message pop up and lock the procedure.

I wonder if there is any way to catch the error/exception while creating netlist and that can make me handle it well.

  • Cancel
  • Sign in to reply
  • CadAP
    0 CadAP 1 day ago

    Gelzone 

    Try to put your command inside "catch" command.

    like below:

    catch {Menu "Tools::Create Netlist} err

    puts $err

    Try and let me know your feedback.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Gelzone
    0 Gelzone 22 hours ago in reply to CadAP

    It doesn't catch any message.
    The error message box still pop up and lock the procedure until I press "OK".

    The snippets:
    if {[catch {Menu "Tools::Create Netlist" | DialogBox "OK" "//Setup_cfg.xml" | DialogBox "OK" "//PCB_netlist.xml"} err] } {
    puts "Netlist fail: $err"
    after 5000
    exit 1
    }

    • 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.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information