• 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. PCB Design
  3. TCL - Get the Most Recent Part

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 166
  • Views 2169
  • Members are here 0
More Content
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

TCL - Get the Most Recent Part

NicM
NicM over 5 years ago

I'm using the PlaceNew tcl procedure OrCAD Capture to have the user place a new part. I would like to be able to get the part instance that was most recently placed on the page and can't find a very good way to do this.

The best solution I have so far is getting the most recent mouse click and selecting a small box at that point and choosing the first object there but this is not ideal.

I thought I might be able to iterate through all parts on a page but the last part in the iterator does not seem to be the most recent part. Also sorting parts by ID or name doesn't seem to guarantee chronological order either. 

Has anyone seen a way to do this?

Thanks

  • Cancel
  • Kalars
    Kalars over 4 years ago

    Don't know if you solved this. There might be an event you can register to, an event that fires before and/or after placing a part. Have this call a function that stores designator ( and/or coordinates if after place ) of the part in a manner that is suitable to you.

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