• 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. Replace a component using its CDS_LIBRARY_ID in system ...

Stats

  • State Suggested Answer
  • Replies 1
  • Answers 1
  • Subscribers 12
  • Views 681
  • Members are here 0
More Content

Replace a component using its CDS_LIBRARY_ID in system Capture

YC202504163531
YC202504163531 14 days ago

[In System Capture 24.1]

I’m trying to write a script that replaces a component with its EMPTY counterpart and vice versa. The challenge is that, to successfully replace the component and keep it in sync with Pulse, I need the CDS_LIBRARY_ID property of the new component. I don’t know where to extract this property from. I can get the value from an already placed component, but that’s not useful for replacements.

I’m using this command:

replace -part -by $componentLibs -preserveUserProp -preserveRefDes -propVisChanged -key [list {MATERIAL=EMPTY=1} {CDS_LIBRARY_ID=$cdsLibId=0} ] -i [list  {}] -useexistingtr  -cpath [list  "$cpath" ]
sch::leaveBatchMode

I tried to get the CDS_LIBRARY_ID property from the part table of the library, but it’s not there. I suspect this property is injected by the Part Information Manager. Does anyone know more about this, or how to automate the Part Information Manager window to retrieve or set this property?

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

    YC202504163531 

    CDS_LIBRARY_ID=classlib:RE i see is join string of lib and cell.

    User below api to get the lib cell and join the string with ':' 

    sch::dbGetLibCellView [getSel]

    Hope it helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • CadAP
    0 CadAP 14 days ago

    YC202504163531 

    CDS_LIBRARY_ID=classlib:RE i see is join string of lib and cell.

    User below api to get the lib cell and join the string with ':' 

    sch::dbGetLibCellView [getSel]

    Hope it helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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