• 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. lock net alias

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 12
  • Views 500
  • Members are here 0
More Content

lock net alias

tennywhy
tennywhy 4 days ago

could anybody knows how to lock net alias on pages, Currently, the orcad capture built-in lock command has no effect on net alias.  could i lock net alias through Tcl code?  help me please.

  • Cancel
  • Sign in to reply
Parents
  • CadAP
    0 CadAP 3 days ago

    tennywhy ,

    Tyr the below tcl api:

    DboTclHelper_sLockProperty(pObj, propName, lockFlag, preTrigger, postTrigger)
    Parameters:
    pObj: DboBaseObject *
    propName: CString
    lockFlag: int
    preTrigger: char *
    postTrigger: char *

    Let me know if it helps or not

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

    tennywhy ,

    Tyr the below tcl api:

    DboTclHelper_sLockProperty(pObj, propName, lockFlag, preTrigger, postTrigger)
    Parameters:
    pObj: DboBaseObject *
    propName: CString
    lockFlag: int
    preTrigger: char *
    postTrigger: char *

    Let me know if it helps or not

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • tennywhy
    0 tennywhy 2 days ago in reply to CadAP

    hi sir, i have no idear how to use this API,  my code as below, but it desnt work, could you help me check it ?

    suppose i have a wire on page, net alias as uart_tx,  and select the net alias then run the code below.

    set lSelObjsL [GetSelectedObjects]
    set LengthlSelObjsL [llength $lSelObjsL]
    if { $LengthlSelObjsL != 0 } {
        set netAlias_type 49
        foreach lObject $lSelObjsL {
            set lObjType [DboBaseObject_GetObjectType $lObject]
            # net alias type =49
            if { $lObjType == $netAlias_type } {
                DboTclHelper_sLockProperty $lObject "Name" 1 "" ""
                }
        }
    }
    • 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