home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / cad / cadence / 573 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.7 KB  |  65 lines

  1. Newsgroups: comp.cad.cadence
  2. Path: sparky!uunet!noc.near.net!analog.com!paul
  3. From: paul.collins@analog.com
  4. Subject: Re: getting all cellviews
  5. Message-ID: <1993Jan12.231425.15484@analog.com>
  6. Originator: paul@loki
  7. Sender: usenet@analog.com
  8. Organization: Analog Devices, Inc.
  9. References: <1993Jan12.172646.14372@venus.ic.cmc.ca>
  10. Date: Tue, 12 Jan 1993 23:14:25 GMT
  11. Lines: 52
  12.  
  13. In article <1993Jan12.172646.14372@venus.ic.cmc.ca> pas@jupiter.ic.cmc.ca writes:
  14. >In Cadence 4.2 skill, how might one go about
  15. >getting a list of all cells in a library?
  16. >
  17. >For example:
  18. >
  19. >procedure( showCells (lib "t")
  20. >    prog( ( libId ; library db id
  21. >        cells ; list of cells in libId
  22. >      )
  23. >        libId = dmOpenLib( lib nil nil "r")
  24. >    cells = ??????( libId)
  25. >    println( cells)
  26. >    )
  27. >)
  28. >
  29. >Any help appreciated,
  30. >Peter
  31. >
  32.  
  33.  
  34. One good way to answer questions like this is to try it out in your CIW.
  35. The database access operater ( ~> ) followed by question mark, which is
  36. used below, is a very handy trick to learn. 
  37.  
  38. Try entering the following...
  39.  
  40.    (setq libId (dmOpenLib "myLibraryName"))
  41.  
  42. Now you can find out what is 'part' of your library with...
  43.  
  44.    libId~>?
  45.  
  46. Try it and you should see that your library contains 'cells'. Now enter...
  47.  
  48.    libId~>cells
  49.  
  50. to get a list of database objects which are the cells. To get the names...
  51.  
  52.    (foreach cv (libId~>cells) (println cv~>name))
  53.  
  54.  
  55. I hope this helps!!
  56.  
  57. -Paul
  58.  
  59.  
  60. -- 
  61. +-----------------------------------------------------------------------------+
  62.    Paul Collins, CAD Engineer            Internet: Paul.Collins@Analog.Com
  63.    Analog Devices, Norwood, MA 02062     UUNET: uunet!analogdv!paul.collins
  64. +-----------------------------------------------------------------------------+
  65.