It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, I'm becoming fairly familiar with the python API and my question is about a strategy within the API calls to achieve a goal.
I want to know the leaf cell instances that intersect with a given box. I'm getting there right now by selecting the shapes that intersect with that box and creating a RecursiveShapeIterator (called shape_iterator below).
instance_path = shape_iterator.path()
last_cell_inst = instance_path[-1].cell_inst()
This runs once per shape instead of once per cell instance, so I'm wondering if I could improve the performance by navigating the hierarchy tree instead of the shapes themselves.
I originally tried to start with the top cell and select cells that intersected with the box, but it only returns cells in the top cell itself which doesn't give me my leaf cell information. Is there a strategy that would allow me to find the cell instances without processing every shape?
Many Thanks for any guidance you can provide.