home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.cad.cadence
- Path: sparky!uunet!noc.near.net!analog.com!paul
- From: paul.collins@analog.com
- Subject: Re: getting all cellviews
- Message-ID: <1993Jan12.231425.15484@analog.com>
- Originator: paul@loki
- Sender: usenet@analog.com
- Organization: Analog Devices, Inc.
- References: <1993Jan12.172646.14372@venus.ic.cmc.ca>
- Date: Tue, 12 Jan 1993 23:14:25 GMT
- Lines: 52
-
- In article <1993Jan12.172646.14372@venus.ic.cmc.ca> pas@jupiter.ic.cmc.ca writes:
- >In Cadence 4.2 skill, how might one go about
- >getting a list of all cells in a library?
- >
- >For example:
- >
- >procedure( showCells (lib "t")
- > prog( ( libId ; library db id
- > cells ; list of cells in libId
- > )
- > libId = dmOpenLib( lib nil nil "r")
- > cells = ??????( libId)
- > println( cells)
- > )
- >)
- >
- >Any help appreciated,
- >Peter
- >
-
-
- One good way to answer questions like this is to try it out in your CIW.
- The database access operater ( ~> ) followed by question mark, which is
- used below, is a very handy trick to learn.
-
- Try entering the following...
-
- (setq libId (dmOpenLib "myLibraryName"))
-
- Now you can find out what is 'part' of your library with...
-
- libId~>?
-
- Try it and you should see that your library contains 'cells'. Now enter...
-
- libId~>cells
-
- to get a list of database objects which are the cells. To get the names...
-
- (foreach cv (libId~>cells) (println cv~>name))
-
-
- I hope this helps!!
-
- -Paul
-
-
- --
- +-----------------------------------------------------------------------------+
- Paul Collins, CAD Engineer Internet: Paul.Collins@Analog.Com
- Analog Devices, Norwood, MA 02062 UUNET: uunet!analogdv!paul.collins
- +-----------------------------------------------------------------------------+
-