find_shape
find_shape [ -layers_layerExpr] [ -purposes_purposeExpr] [ -setd_setObj| -window_idi_windowID] [ -region {f_xlof_ylof_xhif_yhi} | {{f_x1f_y1} {f_x2f_y2} … {f_xnf_yn}} ] [ -use_regions_on_scratch_layer i_scratchID ] [ -ignore_case ] [ -depth i_level ] [ -fully_enclosed [ true | false ] ] [ -granularity [shape | route | route_only | net] ] [ -no_net ] [ -no_wildcard ] [ -on_net ] [ -shape_types {[rectangle ] [octagon] [polygon] [routevia] [routeseg] [guide ] [annotation] [text]} ] [ -silent ]
Description
Searches for shapes matching the given criteria.
The GUI equivalent for this command is Edit—Find (Shape).
Arguments
|
Specifies the depth of the hierarchy to search. A value of 0 chooses the top-level only and is the default value. |
||
|
When |
||
|
When a routing shape is found by this command, this argument chooses the objects to include in the return set. |
||
|
Chooses the routing shape’s net. This is the same functionality as interactive Routing Object Granularity—Entire Net. |
||
|
Chooses the routing shape’s route, including connected pins or terms under the route. |
||
|
Chooses the routing shape’s route. This is the same functionality as interactive Routing Object Granularity—Entire Route. |
||
|
(Default) Chooses the shape. This is the same functionality as interactive Routing Object Granularity—Shape or Via. |
||
|
Finds all shapes existing on layers whose names match the given expression. The expression can include special characters described in Pattern Matching. If this argument is not specified, all shapes on all layers within the specified scope meet the criteria. |
||
|
Restricts search to shapes that have no nets assigned to them. |
||
|
Finds all shapes existing on layer purposes whose names match the given expression. The expression can include special characters described in Pattern Matching. If this argument is not specified, all shapes names on all purposes within the specified scope meet the criteria. |
||
|
|
||
|
Specifies the search area using either the lower-left (f_xlo, f_ylo) and the upper-right (f_xhi, f_yhi) bounding box coordinates, or the x and y coordinate points for a polygon boundary. If you use the |
||
|
|
||
|
Specifies one or more shape types to search for. If this argument is not given, all shapes are considered. |
||
|
Suppresses informational messages, such as the number of items found. By default, these messages are output. |
||
|
Finds shapes that overlap or are fully enclosed (if |
||
Value Returned
|
Returns the identifier for a set containing all shapes that meet the criteria within the specified set or cellview. |
Examples
The following example searches for shapes on layer met1 with purpose wire:detail and saves the found shaped in the set named met_wire_detail.
set met_wire_detail [find_shape -layer met1 -purpose wire:detail -cell_view_id [get_cell_view_id]]
Related Topics
Return to top