Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community PCB Design & IC Packaging (Allegro X) Allegro X Scripting - TCL Create Menu/Window with TCL to fill a user defined Title...

Stats

  • State Verified Answer
  • Replies 13
  • Subscribers 12
  • Views 2769
  • Members are here 0
More Content

Create Menu/Window with TCL to fill a user defined Title block - OrCAD Capture CIS 22.2

JN202407223932
JN202407223932 8 months ago

Hi evereyone,

i'm completely new to TCL scripting.
I created a Title Block and added a few new properties to it. Now i would like to create a pop up window where i can set and change the values of these properties. Just like the Title Block tab in the design template view.

I already managed to create a new menu in the title bar with a script  but i don't get it how to create this pop up window.

Can someone help me with a small example maybe?

Thanks in advance.

J.

  • Sign in to reply
  • Cancel
  • CadAP
    +1 CadAP 8 months ago

    Hi JN,

    I am sharing a sample GUI code with you, when you source the tcl it will pop window and ask user for input. Once you provide any input you will get out in the same window.

    Seee below screenshot.

    You can check the command and similar you can create your own GUI will dump information and allow user to change its value.

    Before run code make sure you have corrected the path of htmlFilePath (display.html).

    set htmlFilePath {C:/TEST/Desktop/forum/display.html}

    forum.zip

    Also, you can user below command just to take the user input (pop-window):

    AskUserInput(pTitle, pDefVal) : returns char
    Parameters:
    pTitle: char const *
    pDefVal: char const *

    set lUserInput [AskUserInput "test" ""]

    puts $lUserInput

    Thanks

    Hope this helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • JN202407223932
    0 JN202407223932 8 months ago in reply to CadAP

    I'm sorry for the late reply.
    I finally hat time to take a look to your GUI code yesterday.

    This will help me a lot, thank you very much.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tennywhy
    0 tennywhy 7 months ago in reply to CadAP

    CadAP  that's a good method, about this , i always dont understand how can i create a html file, i need study java script to create it ?  could you explain it more ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    0 CadAP 7 months ago in reply to tennywhy

    tennywhy you don't need to be a html or javascript expert, basic knowledge will also work.

    Let me know what kind of GUI you are thinking off and r what is the outcome from that gui?

    I'll try to give some advice as per my expertise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tennywhy
    0 tennywhy 7 months ago in reply to CadAP

    OK,that's so kind of you,I've always wanted an GUI similar to Orcad Capture's built-in "Find And Replace Text Utility" interface,
    such as having a user input box "find what",
    a file output path and prefilled default path, eg "C:/TEST",
    two Options (eg. "A1" "B2") switched by user choose, default is "B2". and only one options can be selected
    at last have a "ACTION" button, and a "Close" button
    For me, it's enough for most situations
    could you give me some advice ?

    • 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