• 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. How to get the object id of deleted instance, net, wire...

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 10237
  • 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

How to get the object id of deleted instance, net, wire or anything?

Purbayan
Purbayan over 3 years ago

For example if someone with GUI deletes an object from schematic i want to get the object id of that deleted object.

I am doing this in order to update my list/report field so that i can remove that element/ choice from my list/reportfield.

  • Cancel
Parents
  • AurelBuche
    AurelBuche over 3 years ago

    Hi Purbayan,

    Your issue is not really clear...

    Are you talking about a native GUI or a custom one?

    If it is a native one, you won't be able to do anything except if there is a public trigger you can edit to update your report field

    If it is a custom one (and you can edit it), you will have to update it's callback to update your field

    Otherwise this is not optimal but you can check the values of your field and remove the elements not present in the schematic

    The harder part is to define when you update your field...

    Otherwise if the GUI you are referring to is the schematic editor, you can rebind the "delete" key to a custom function that will do the deletion and update your report field accordingly

    Hope this helps

    Cheers

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Purbayan
    Purbayan over 3 years ago in reply to AurelBuche

    Hi Aurélien,

    Actually what i want is if a user deletes an object from schematic with usual delete key i just want to get the object id of that specific object and delete that entry from the list also. I want to trigger it when user clicks delete(the usual delete function provided by cadence donot prove any feedback on what  object id got deleted).

    The second Method that you suggested is check the schematic, the problem with this is if a schematic have more than 10000 objects then checking updating will be very slow with foreach loop. If there is any faster way available to do that i would really appreciate it.

    Also thank you for the valuable suggestions.

    Yours 

    Purbayan 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Purbayan
    Purbayan over 3 years ago in reply to AurelBuche

    Hi Aurélien,

    Actually what i want is if a user deletes an object from schematic with usual delete key i just want to get the object id of that specific object and delete that entry from the list also. I want to trigger it when user clicks delete(the usual delete function provided by cadence donot prove any feedback on what  object id got deleted).

    The second Method that you suggested is check the schematic, the problem with this is if a schematic have more than 10000 objects then checking updating will be very slow with foreach loop. If there is any faster way available to do that i would really appreciate it.

    Also thank you for the valuable suggestions.

    Yours 

    Purbayan 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • AurelBuche
    AurelBuche over 3 years ago in reply to Purbayan

    Actually it depends on what you want to do precisely

    If you have to browse the hierarchy, your script might take more time to run.

    You also might want to avoid prints that will be time consuming and quite useless with such a number of objects

    If you don't need to parse the instances, you might want to use instances headers instead to reduce the number of processed items

    You should also avoid returning the list of >10000 objects in your code and might consider using generators instead

    ;; This is to avoid as it keeps all the instances at the same time in memory
    insts=(geGetEditCellView)->instances
    foreach inst insts ...

    ;; This should be a little better:
    ;;
    ;; Browse instances headers
    (let ((inst_header_gen (dbStartGenInstHeader (geGetEditCellView)))
          inst_header)
      (while (setq inst_header inst_header_gen->next)
        ;; Browse instances
        (let ((inst_gen (dbStartGenInstHeaderToAnyInst inst_header))
              inst)
          (while (setq inst inst_gen->next)
    ;; Put your body here
            ...
            ));insts
        ));inst_headers
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Purbayan
    Purbayan over 3 years ago in reply to AurelBuche

    That is really great insight.

    Thank you Aurélien for the code.

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