• 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. Get design name

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 12
  • Views 582
  • Members are here 0
More Content

Get design name

Mhawley1
Mhawley1 3 months ago

Hey im going to ask another basic one , How do I get he design name in tcl ( ex SCH12235.dsn ) ? I just want it as a string because we derive the revision from the name . 

  • Sign in to reply
  • Cancel
Parents
  • CadAP
    +1 CadAP 3 months ago

    Mhawley1 

    Please use below code to get the design name.

    set lSession $::DboSession_s_pDboSession
    DboSession -this $lSession
    set lDesign [$lSession GetActiveDesign]
    set lDesignNameCString [DboTclHelper_sMakeCString]
    $lDesign GetName $lDesignNameCString

    set lDesignLoc [split [DboTclHelper_sGetConstCharPtr $lDesignNameCString] "\\"]
    puts [lindex $lDesignLoc end]

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Mhawley1
    0 Mhawley1 3 months ago in reply to CadAP

    CADAP , thank you so much again for this . Worked like a charm . 

    These two lines really helped me 

    set lDesignNameCString [DboTclHelper_sMakeCString]
    $lDesign GetName $lDesignNameCString

    I keep scanning the document and im not sure which class lDesign is part of but ill figure it out . 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Mhawley1
    0 Mhawley1 3 months ago in reply to CadAP

    CADAP , thank you so much again for this . Worked like a charm . 

    These two lines really helped me 

    set lDesignNameCString [DboTclHelper_sMakeCString]
    $lDesign GetName $lDesignNameCString

    I keep scanning the document and im not sure which class lDesign is part of but ill figure it out . 

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