cellview_exists
cellview_exists
-lib s_libName
[ -cell s_cellName ]
[ -view s_viewName ]
Description
Checks for the existence of a library, cell, or cellview.
Arguments
|
-cell s_cellName
|
Specifies the name of the cell. If -view is not specified, a match occurs if the given cell exists in the given library.
|
|
-lib s_libName
|
Specifies the name of the library. If this is the only argument given, a match occurs if the given library exists.
|
|
-view s_viewName
|
Specifies the name of the view. A match occurs if a cellview exists with the given library, cell and view names.
|
Value Returned
|
0
|
A cellview exists with the given argument values.
|
|
-1
|
A cellview with the given argument values does not exist.
|
Examples
The following example checks for the existence of the myLib library.
cellview_exists -lib myLib
The following example checks for the existence of the myLib/myCell/layout cellview.
cellview_exists -lib myLib -cell myCell -view layout
Related Topics
File Commands
get_occurrence
Return to top