• 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. Design Template Option For TCL

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 13
  • Views 843
  • Members are here 0
More Content

Design Template Option For TCL

ZH202409115233
ZH202409115233 2 months ago

I want to modify the "Fonts" option in the design template using TCL language, but the XML file I obtained from the command does not support my modifications. What should I do?

How can I retrieve the font configuration from the configuration file and flexibly set it using TCL language?

command window:

Menu "Options::Design Template" | DialogBox  "OK" "C:/Users/ZHANGH~1/AppData/Local/Temp/CAPTURELOG/Mon_Aug__4_17_51_44_2025/Fonts_8.xml"

  • Cancel
  • Sign in to reply
Parents
  • TechnoBobby
    0 TechnoBobby 2 months ago

    Hi ZH202409115233 ,

    The Design Template defines default settings for newly created designs & schematic pages and its settings are stored in Capture.ini file. These settings can be modified using TCL by writing directly to the [Design Template] section.

    You can use the GetIniPath command to get the path of the currently loaded .ini file.
    And following TCL commands to modify & load changes:

    writeProfileString {Design Template} {Property..........} {[-9, 5, 0, 0, 400, 0, 0, 0, 0, 3, 2, 1, 34, Bahnschrift Condensed]}
    COrCapIniLoader_loadINI {Path_to_capture.ini}

    These values follow the MFC font structure with attributes like nHeight, nWeight, bItalic, lpszFacename, etc. Full reference:
    https://learn.microsoft.com/en-us/cpp/mfc/reference/cfont-class

    Hope this helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • TechnoBobby
    0 TechnoBobby 2 months ago

    Hi ZH202409115233 ,

    The Design Template defines default settings for newly created designs & schematic pages and its settings are stored in Capture.ini file. These settings can be modified using TCL by writing directly to the [Design Template] section.

    You can use the GetIniPath command to get the path of the currently loaded .ini file.
    And following TCL commands to modify & load changes:

    writeProfileString {Design Template} {Property..........} {[-9, 5, 0, 0, 400, 0, 0, 0, 0, 3, 2, 1, 34, Bahnschrift Condensed]}
    COrCapIniLoader_loadINI {Path_to_capture.ini}

    These values follow the MFC font structure with attributes like nHeight, nWeight, bItalic, lpszFacename, etc. Full reference:
    https://learn.microsoft.com/en-us/cpp/mfc/reference/cfont-class

    Hope this helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Morgan
    0 Morgan 2 months ago in reply to TechnoBobby

    Hi  TechnoBobby,

    Is there any way to modify the font of command window?

    Thank you.

    • 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