• 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. Capture quit unexpectedly after delete DboWire instances...

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 13
  • Views 6571
  • Members are here 0
More Content

Capture quit unexpectedly after delete DboWire instances in page by TCL script DeleteWire

ChunChang Wu
ChunChang Wu over 4 years ago

Hello,

I tried using TCL to delete some DboWire instances which matches a criteria.

However, after I delete it by DboPage function DeleteWire, the schematic seems to have some invisible error which will lead Capture quit unexpectedly under some operations.

To be specific, after processing code below, Ctrl+F to find * (all) will make Capture shutdowm. For complicated schematic may even directly shutdown during the code processing.

set lStatus [DboState]
set lNullObj NULL
set pPage [GetActivePage]
set lWiresToDel [list]
set lWireIter [$pPage NewWiresIter $lStatus]
set lWireInst [$lWireIter NextWire $lStatus]
while {$lWireInst!=$lNullObj} {
    # screen out wire matched some criteria, then add to array for later delete
    lappend lWiresToDel $lWireInst
    set lWireInst [$lWireIter NextWire $lStatus]
}


foreach wire $lWiresToDel {
    $pPage DeleteWire $wire
}

Since the actual Tcl script runs without page opened, SelectObject(x, y, boolvalue3) and Delete() function are not suit for my case.

So, what is the correct procedure to use DeleteWire(wire)?

  • Cancel
  • Sign in to reply
Parents
  • fsdb
    0 fsdb over 4 years ago

    You have to reevaluate the page after the changes:

    catch {DboTclHelper_sEvalPage $pPage}

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ChunChang Wu
    0 ChunChang Wu over 4 years ago in reply to fsdb

    Great thanks for the answer, and It solves the problems!

    There is poor of documents about the definition of DboTclHelper_sEvalPage. Glad you found this API!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • ChunChang Wu
    0 ChunChang Wu over 4 years ago in reply to fsdb

    Great thanks for the answer, and It solves the problems!

    There is poor of documents about the definition of DboTclHelper_sEvalPage. Glad you found this API!

    • Cancel
    • Vote Up +1 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