Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community PCB Design & IC Packaging (Allegro X) Allegro X Scripting - TCL How to make display the value of property automatically...

Stats

  • State Not Answered
  • Replies 5
  • Subscribers 11
  • Views 456
  • Members are here 0
More Content

How to make display the value of property automatically?

Morgan
Morgan 1 month ago

Hi friends of the community,

Now have an isssue about Page

  • Sign in to reply
  • Cancel
  • CadAP
    0 CadAP 1 month ago

    Hi Morgan,

    Please check the below article it will help you to achieve your requirement with little modification.:

    URL: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O3w000009m3A9EAI&pageName=ArticleContent

    Please do let me know in case of any issue.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Morgan
    0 Morgan 1 month ago in reply to CadAP

    Hi CadAP,

    Can you help me post the content of the article here, I can't open it.

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    0 CadAP 1 month ago in reply to Morgan

    Hi Morgan,

    Please find the below code.

    Copy pastes the code and place in capture autoload folder.

    Once you open the capture script will be loaded and when you open a desing will see that Revcode value is displayed with the with name Cadance.

    You can modify the code to just display the property value not to change it.

    proc TitlePropSetEnabler {args} {
    return 1
    }

    proc testpage {args} {
    # global i
    set lSession $::DboSession_s_pDboSession
    DboSession -this $lSession
    set lNullObj NULL
    set lStatus [DboState]
    set lDesign [$lSession GetActiveDesign]
    set lSchi_Name [DboTclHelper_sMakeCString]
    set lTitleProp [DboTclHelper_sMakeCString "RevCode"]
    # set lTitlePropVal [DboTclHelper_sMakeCString]
    set lTitlePropVal [DboTclHelper_sMakeCString "Cadence"]
    set lSchematicIter [$lDesign NewViewsIter $lStatus $::IterDefs_SCHEMATICS]
    #get the first schematic view
    set lView [$lSchematicIter NextView $lStatus]
    set lPage_Name [DboTclHelper_sMakeCString]
    while { $lView != $lNullObj} {
    #dynamic cast from DboView to DboSchematic
    set lSchematic [DboViewToDboSchematic $lView]
    $lSchematic GetName $lSchi_Name
    set lPagesIter [$lSchematic NewPagesIter $lStatus]
    #get the first page
    set lPage [$lPagesIter NextPage $lStatus]
    # puts [DboTclHelper_sGetConstCharPtr $lSchi_Name]
    while {$lPage!=$lNullObj} {
    #placeholder: do your processing on $lPage
    $lPage GetName $lPage_Name
    # puts [DboTclHelper_sGetConstCharPtr $lPage_Name]
    # lappend pagelist [DboTclHelper_sGetConstCharPtr $lPage_Name]
    set lTitleBlocksIter [$lPage NewTitleBlocksIter $lStatus]
    #get the first title block set
    set lTitle [$lTitleBlocksIter NextTitleBlock $lStatus]
    while {$lTitle!=$lNullObj} {
    #placeholder: do your processing on $lTitle
    #get the next title block set
    # set lStatus [$lTitle GetEffectivePropStringValue $lTitleProp $lTitlePropVal]
    set lStatus [$lTitle SetEffectivePropStringValue $lTitleProp $lTitlePropVal]
    # puts [DboTclHelper_sGetConstCharPtr $lTitlePropVal]
    # puts [$lStatus OK]
    set lTitle [$lTitleBlocksIter NextTitleBlock $lStatus]
    }
    delete_DboPageTitleBlocksIter $lTitleBlocksIter


    # #get the next page
    set lPage [$lPagesIter NextPage $lStatus]
    }
    #placeholder: do your processing on $lSchematic
    #puts $lSchematic
    #get the next schematic view
    set lView [$lSchematicIter NextView $lStatus]
    }
    delete_DboLibViewsIter $lSchematicIter
    delete_DboSchematicPagesIter $lPagesIter

    }

    RegisterAction "_cdnOrNotifyDesignOpened" "TitlePropSetEnabler" "" "testpage" ""

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Morgan
    0 Morgan 1 month ago in reply to CadAP

    Hi CadAP,

    thank you 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    0 CadAP 1 month ago in reply to Morgan

    Hi Moragn,

    I have a suggestion here that you can read the value from the .xml file that create when you set the value from Option-->Design Template-->Tile Block.

    I hope it helps to achieve your requirement.

    • 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