Home > Community > Forums > Custom IC SKILL > Getting list of objects in a database

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Getting list of objects in a database 

Last post Tue, Jan 20 2009 8:42 AM by ahamlett. 9 replies.
Started by archive 19 Dec 2007 09:43 AM. Topic has 9 replies and 3214 views
Page 1 of 1 (10 items)
Sort Posts:
  • Wed, Dec 19 2007 9:43 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Getting list of objects in a database Reply

    Say I have this code which opens a cell view and assigns the database id to test.
    test = dbOpenCellViewByType("library" "cellname" "view")
    Is there a way to get a list of all the available objects in this database?
    Right now, I loop through each object and print its name.

    foreach(i test~>instances
                println(i~>cellName)
    )

    For debugging I would like to be able to print a tree of the heirachy of the database. Is this possible?
    Does the dbFindProp() function have something to do with this?


    Originally posted in cdnusers.org by ahamlett
    • Post Points: 0
  • Wed, Dec 19 2007 10:27 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Design->Hierarchy->Tree has already got all the info apart from top level shapes which can be accessed using:
    test~>shapes

    Raj


    Originally posted in cdnusers.org by rairaj
    • Post Points: 0
  • Wed, Dec 19 2007 10:29 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Sourcelink has some examples:

    http://sourcelink.cadence.com/docs/files/Application_Notes/2002prev/Framework_Application_Notes/Database_Traversal.html

    -Derek


    Originally posted in cdnusers.org by dmay
    • Post Points: 0
  • Wed, Dec 19 2007 10:34 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Posted By rairaj on 12/19/2007 10:27 AM
    Design->Hierarchy->Tree has already got all the info apart from top level shapes which can be accessed using:
    test~>shapes

    Raj
    That gives me the hierarchy of cells, but I want objects such as test~>libName.
    I need a list of all the data objects available inside the test database such as libName, cellName, layerName etc.


    Originally posted in cdnusers.org by ahamlett
    • Post Points: 0
  • Wed, Dec 19 2007 10:36 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Try the attached code. I think you'll find it useful...

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 20
  • Wed, Dec 19 2007 10:40 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    test~>? gives you all the attributes
    test~>?? gives all the attributes and their values

    But remember that some of the values could be db ID's so a further foreach will be required.

    dataBrowser.il will give you a graphic represenation of database so you can drill down by just a click.


    Originally posted in cdnusers.org by rairaj
    • Post Points: 0
  • Wed, Dec 19 2007 10:57 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Posted By adbeckett on 12/19/2007 10:36 AM
    Try the attached code. I think you'll find it useful...

    Regards,

    Andrew.

    Thank you!

    Posted By rairaj on 12/19/2007 10:40 AM
    test~>? gives you all the attributes
    test~>?? gives all the attributes and their values

    But remember that some of the values could be db ID's so a further foreach will be required.

    dataBrowser.il will give you a graphic represenation of database so you can drill down by just a click.
    Thank you too!

    This was exactly what I have been looking for :)


    Originally posted in cdnusers.org by ahamlett
    • Post Points: 0
  • Wed, Dec 19 2007 11:02 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Getting list of objects in a database Reply

    Posted By adbeckett on 12/19/2007 10:36 AM
    Try the attached code. I think you'll find it useful...

    Regards,

    Andrew.


    I didn't even have to load dataBrowser.il because TI had already loaded it into Cadence!

    I can learn a lot from that source code. Thanks!


    Originally posted in cdnusers.org by ahamlett
    • Post Points: 0
  • Sat, Jan 17 2009 12:44 PM

    • wferguss
    • Not Ranked
    • Joined on Sat, Jan 17 2009
    • Posts 1
    • Points 20
    RE: Getting list of objects in a database Reply

    Can someone please upload dataBrowser.il again?

    It seems to be missing from the forums.

     

    Walter

    • Post Points: 20
  • Tue, Jan 20 2009 8:42 AM

    • ahamlett
    • Top 500 Contributor
    • Joined on Wed, Jul 16 2008
    • Dallas, TX
    • Posts 31
    • Points 585
    Re: RE: Getting list of objects in a database Reply
    • Post Points: 5
Page 1 of 1 (10 items)
Sort Posts:
Started by archive at 19 Dec 2007 09:43 AM. Topic has 9 replies.