• 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 Capture CIS
  3. Run TCL script from Windows terminal to OrCAD Capture t...

Stats

  • State Verified Answer
  • Replies 3
  • Subscribers 44
  • Views 4738
  • Members are here 0
More Content

Run TCL script from Windows terminal to OrCAD Capture terminal

AB_1717543042707
AB_1717543042707 over 1 year ago

Hello,

Is there any way to execute a command from a windows terminal to send a tcl script to the Capture terminal? I am trying to automate the process of having to manually type in "source {path_to_tcl_script}" in the Capture command window and wanted to see if there is any way this can be done from a windows terminal.

Something that almost works is doing C:\Users\$user> "path_to_capture.exe" "path_to_tcl_script" but this doesnt work for me as it is really slow and breaks half the time.

Any advice on how to accomplish this would be greatly appreciated.

Thanks.

  • Sign in to reply
  • Cancel
  • CadAP
    +1 CadAP over 1 year ago

    HI AB_1717543042707,

    Please check the below article available on Cadence Online support.

    support.cadence.com/.../ArticleAttachmentPortal

    Also you can try below command,

    Open cmd and cd to C:/Cadence/SPB_22.1/tools/bin then try the below command.

    capture -product="OrCAD Capture" <path with tcl file name>

    Hope this help.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • AB_1717543042707
    0 AB_1717543042707 over 1 year ago in reply to CadAP

    Thank you,

    I saw your other comment on using the orcad library and that worked well for me.

    What worked for me was running this in a tcl shell:

    load [file normalize “C:/<Capture_inst-dir>/tools/bin/orDb_Dll_Tcl64.dll”] DboTclWriteBasic

    And then I could run, source [file normalize “<path_to_tcl>”] to run my tcl script

    Thanks again

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cineboxandrew
    0 cineboxandrew 3 months ago in reply to AB_1717543042707

    Attempting to do the same thing for me results in the interpreter crashing with exit code 0xC0000005. Ive tried it in both IronTCL 64-bit 8.6 and through the TCL in python tkinter with the same results. Any ideas?

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

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

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