Home > Community > Forums > Custom IC SKILL > How to check if a particular view of a cell exists?

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: *

 How to check if a particular view of a cell exists? 

Last post Mon, Jun 21 2010 2:25 PM by Ronen Cohen. 2 replies.
Started by Ronen Cohen 21 Jun 2010 12:17 PM. Topic has 2 replies and 1424 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Jun 21 2010 12:17 PM

    • Ronen Cohen
    • Not Ranked
    • Joined on Tue, Feb 9 2010
    • Cupertino, CA
    • Posts 2
    • Points 25
    How to check if a particular view of a cell exists? Reply
    Hi, I was using the following command to check if a view of a cell exists: >> if((NewCellId = dbOpenCellViewByType(MyLibName myCell newView nil "r")) then >> .... It doesn't work. It will always create a dbId for that view even if that is the first time. Is there a different way to check if the cells exist? Thanks in advance, Ronen.
    • Post Points: 20
  • Mon, Jun 21 2010 1:36 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,598
    • Points 16,075
    Re: How to check if a particular view of a cell exists? Reply

    Hi Ronen,

    You can use the ddGetObj() function to check for the existence of a cellview in the file system. I think your parentheses are misplaced in the above example, the then and associated code needs to be before the close paren - dbOpenCellViewByType will return nil if the cellview doesn't exist, but you might also get a warning, so the ddGetObj method might be preferable.

    Best regards,

    Lawrence.

    • Post Points: 5
  • Mon, Jun 21 2010 2:25 PM

    • Ronen Cohen
    • Not Ranked
    • Joined on Tue, Feb 9 2010
    • Cupertino, CA
    • Posts 2
    • Points 25
    Re: How to check if a particular view of a cell exists? Reply
    Thanks Lawrence,
    It worked as I intended using the ddGetObj().
    Ronen.
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Ronen Cohen at 21 Jun 2010 12:17 PM. Topic has 2 replies.