• 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. How to modify a table after create it with tcl in ASC?

Stats

  • State Verified Answer
  • Replies 3
  • Subscribers 12
  • Views 117
  • Members are here 0
More Content

How to modify a table after create it with tcl in ASC?

Gelzone
Gelzone 2 days ago

I need to use addTable to create a table and write some information in my project but I had a hard time while writing data.

Here is my code snippet:

set currNotePage [cps::getSPathByTabIndex 1]
# Rename page.
activateEdit $currNotePage SCH PAGE
renameItem $currNotePage SCH PAGE "Design Notes"

addTable -pg $currNotePage -row 15 -column 2 -pos [list 187 149]
selectObject -occPath $currNotePage -type TABLE 187 149
#cps::showMessageDialog "Interrupt" "Table selected" 0 "" ""
#editTable true
#tableColumnResize 1 2200
tablePlainTextEdit 1 1 "Pages"
tablePlainTextEdit 1 2 "Notes"

The "Pages" and "Notes" didn't write in the table, is there any other way to modify a table?

  • Cancel
  • Sign in to reply
  • Gelzone
    0 Gelzone 2 days ago

    BTW, I package this as a .tcl file and source it in the ASC command window (Ver. 23.1).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    +1 CadAP 1 day ago in reply to Gelzone

    Gelzone 

    Try below modified code:

    selectTable -cell 1 1 1 1

    tablePlainTextEdit 1 1 "Pages"

    selectTable -cell 1 2 1 2
    tablePlainTextEdit 1 2 "Notes"

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Gelzone
    0 Gelzone 14 hours ago in reply to CadAP

    It works thanks!

    • 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