• 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. Create Menu/Window with TCL to fill a user defined Title...

Stats

  • State Verified Answer
  • Replies 13
  • Subscribers 13
  • Views 5111
  • 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 over 1 year 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
Parents
  • CadAP
    +1 CadAP over 1 year 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 11 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
Reply
  • JN202407223932
    0 JN202407223932 11 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
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