• 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. TCL to set active page in the treeview using SelectPMIt...

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 14
  • Views 314
  • Members are here 0
More Content

TCL to set active page in the treeview using SelectPMItem

fSeyer
fSeyer 1 month ago

Hi,

Could anyone suggest an alternative to SelectPMItem?
I’m using it to set the active page in a tree view, but it ignores page names that contain "0".

  • Cancel
  • Sign in to reply
Parents
  • TechnoBobby
    0 TechnoBobby 1 month ago

    Hi fSeyer ,

    Could you clarify what you do after selecting the page in the Project Manager tree?
    Do you need the page selected only to make it active in the UI, or are you selecting it to obtain a DboPage and perform further operations on it?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • TechnoBobby
    0 TechnoBobby 1 month ago

    Hi fSeyer ,

    Could you clarify what you do after selecting the page in the Project Manager tree?
    Do you need the page selected only to make it active in the UI, or are you selecting it to obtain a DboPage and perform further operations on it?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • fSeyer
    0 fSeyer 1 month ago in reply to TechnoBobby

    Hi TechnoBobby,

    Thanks for respond!
    i have a UI that listed all the pages, my intend is to to print pdf or generate Bom for either per page or all page.
    usually we set page name stars from 01_circuit name ~ 10_circuit name. 
    i notice that only page name without "0" can used by SelectPMItem.

    here's my code

    set sel [.pageReport.lb curselection]
    if {$sel eq ""} return
    set idx [lindex $sel 0]
    set text [string trim [.pageReport.lb get $idx]]
    if {$text eq "ALL PAGES"} {
    set lDesign [GetActivePMDesign]
    set lDesignName [DboTclHelper_sMakeCString]
    set lsts [$lDesign GetName $lDesignName]
    $lsts -delete
    set fullPath [DboTclHelper_sGetConstCharPtr $lDesignName]
    set splitPath [file split $fullPath]
    set dsnName [file rootname [lindex $splitPath end]]
    SelectPMItem "./$dsnName.DSN"
    }
    catch {SelectPMItem "$text"}

    • 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.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information