• 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. Custom IC SKILL
  3. I just created an object and need to get that database ID...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13331
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I just created an object and need to get that database ID to use in the next command

Michael Kolesnik
Michael Kolesnik over 4 years ago

Another seemly simple request that I cannot find the easy solution

1. I create a path : leCreatePath(...info...) and it returns a database ID

2. I need to get that ID to use in my next command but don't see how.

You would think that ID is stored in a stack or something.

I could always get it out of the CDS.log file but that seems ridiculous 

-Mike

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Hi Mike,

    What is displayed in the CIW and the CDS.log would not help you anyway - that's just the print representation of a database object (it helps you to see if two objects are the same) - but you cannot start from this print representation and pass it to a function.

    Instead you need to use the return value of the function - either by assigning to a variable, or by nesting the call within another function call. For example:

    cv=geGetEditCellView()
    path=leCreatePath(...info...)
    dbMoveFig(path cv 10:5)

    or:

    dbMoveFig(leCreatePath(...info...) geGetEditCellView() 10:5)

    Essentially the function returns a database object (for which the print representation is db:xxxxxx) - you just need to pass that around to any function that needs it.

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel

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