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