search and replace - box by center x/y

Hi - I am using search and replace often. It can find / replace / delete boxes by area, perimeter, width or height.
Would it be possible to add center x/y as find parameters?
This would be very useful when counting # boxes within a certain wafer size, allowing to delete boxes that fall outside the wafer.
Thanks and regards,
Cristian

Comments

  • Hi Cristian,

    You can use custom queries to achieve this.

    For example this query will give you all boxes on layer 15/0 whose center (as seen from the top cell) is in a vertical band between 10 and 20 µm on the horizonal axis. Please not that you can use variables inside the "where" expression to simplify the formulas:

    boxes on layer 15/0 
      from instances of .. 
      where (var box_in_top = shape_bbox.transformed(path_trans); 
                   var xcenter_in_um = box_in_top.center.x*layout.dbu;
                   xcenter_in_um < 20 && xcenter_in_um > 10) 
    

    Matthias

Sign In or Register to comment.