• 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. PCB Design
  3. Ask for help about Capture TCL/TK command's usage( GetDBCName...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 163
  • Views 1771
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ask for help about Capture TCL/TK command's usage( GetDBCName in CPMgtCfg class )

cldr
cldr over 9 years ago

HI! Everyone!

I'm a starter and want to use Capture TCL/TK commands for doing some automate function in Capture Schematic design.

I want to update all the place-instances' user prop. from SQL server( config in DBC ). Maybe I can do it by "CTRL-L" command to LINK to database one by one, but so many instance...it's a hard work, so I need to make a TCL command and do it automately.

I think  I need to get access to the database part which is  config in "capture.ini" and "demo.dbc" files.

I don't know where can I start firstly, as there was less infomation, even searching in google. So, I learn about it in "OrCAD_Capture_TclTk_Extensions.pdf", and find something may help.

In the PDF, there is some functions about the database operation in  CPMgtCfg class such as GetDBCName, GetFirstTable, GetNextTable...

But, I don't know how to use the functions, there is little details.   Is there anyone help? Thanks a lot!

  • Cancel
  • cldr
    cldr over 9 years ago
    hey guys!
    My work is going ahead now. I can get the "CPMgtCfg" from "OrCISGetDbcConfig" function, and also get the DBC config file path, SQL database' records.
    But still can't get (Query) each data from sql. Any help will be greatful!

    Logs as belows,
    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    Capture> set lCfg [OrCISGetDbcConfig]
    _2099412700000000_p_CPMgtCfg
    Capture> set lString [::CPMgtCfg_GetIniDBCName $lCfg]
    _e078d12600000000_p_CString
    Capture> puts [DboTclHelper_sGetConstCharPtr $lString]
    X:\LIBRARY\SZ_LIB.DBC

    Capture>
    Capture> CPMgtCfg_GetTotalRecords $lCfg
    1244

    Capture>
    Capture> puts [DboTclHelper_sGetConstCharPtr _c07b262700000000_p_CString]
    Capacitor

    Capture>
    Capture> CISExecuteQuery
    Capture>
    • Cancel
    • Vote Up 0 Vote Down
    • 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