home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / cad / cadence / 593 next >
Encoding:
Text File  |  1993-01-21  |  1.6 KB  |  53 lines

  1. Newsgroups: comp.cad.cadence
  2. Path: sparky!uunet!Cadence.COM!keiths
  3. From: keiths@Cadence.COM (Keith Sabine)
  4. Subject: Re: getting all cellviews
  5. Message-ID: <1993Jan20.174238.12325@Cadence.COM>
  6. Sender: Keith Sabine
  7. Organization: Cadence Design Systems, Inc.
  8. References: <1993Jan12.172646.14372@venus.ic.cmc.ca>
  9. Date: Wed, 20 Jan 1993 17:42:38 GMT
  10. Lines: 41
  11.  
  12. In article <1993Jan12.172646.14372@venus.ic.cmc.ca> pas@jupiter.ic.cmc.ca writes:
  13. >In Cadence 4.2 skill, how might one go about
  14. >getting a list of all cells in a library?
  15. >
  16. >For example:
  17. >
  18. >procedure( showCells (lib "t")
  19. >    prog( ( libId ; library db id
  20. >        cells ; list of cells in libId
  21. >      )
  22. >        libId = dmOpenLib( lib nil nil "r")
  23. >    cells = ??????( libId)
  24. >    println( cells)
  25. >    )
  26. >)
  27. >
  28.  
  29.  
  30. Try:
  31.  
  32. procedure( showCells( lib "t")
  33.  let( (libId cell)
  34.    libId =  dmOpenLib( lib nil nil "r")
  35.    foreach( cell libId~>cells
  36.      println( cell~>name)
  37.    )
  38.  )
  39. )
  40.  
  41.  
  42. Keith.
  43.  
  44. *----------------------------------------------------------------------------*
  45. * Keith Sabine                              Phone: (44)-344-360333           *
  46. * Cadence Design Systems UK Ltd,            Fax:   (44)-344-360324           *
  47. * Bagshot Road,                             Email: keiths@cadence.com        *
  48. * Bracknell,                                                                 *
  49. * England RG12 3PH                          Standard Disclaimer:             *
  50. *                                           'Ahem, this is my theory,        *
  51. *                                           which is mine, all mine...'      *
  52. *----------------------------------------------------------------------------*
  53.