Home > Community > Forums > Custom IC SKILL > Cellviews default application

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

 Cellviews default application 

Last post Mon, Mar 4 2013 9:03 AM by Andrew Beckett. 8 replies.
Started by psill 27 Sep 2012 09:38 AM. Topic has 8 replies and 1597 views
Page 1 of 1 (9 items)
Sort Posts:
  • Thu, Sep 27 2012 9:38 AM

    • psill
    • Top 500 Contributor
    • Joined on Sun, Mar 25 2012
    • Posts 24
    • Points 420
    Cellviews default application Reply

    Is there a skill command to get a cellview default application?

    I want to search a library and report the default or current application of a cellview.

     

    psill 

    • Post Points: 20
  • Tue, Oct 2 2012 2:58 AM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 79
    • Points 1,075
    Re: Cellviews default application Reply
    What do u mean application?
    -How-
    • Post Points: 20
  • Tue, Oct 2 2012 4:01 AM

    Re: Cellviews default application Reply

     You can get the viewType easily enough - maybe that's what you mean?

    given a library name:

    procedure(CCFshowViewTypes(libName)
    let((masterObj)
      foreach(cell ddGetObj(libName)~>cells
        foreach(view cell~>views
          ; the * in the file arg gives the "master" file
          masterObj=ddGetObj(libName cell~>name view~>name "*")
          when(masterObj
             printf("%s/%s/%s has viewType %L\n"
             libName cell~>name view~>name
             ddMapGetFileViewType(masterObj)
           )
         )
        )
      )
      t
    ))

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, Oct 2 2012 8:16 AM

    • psill
    • Top 500 Contributor
    • Joined on Sun, Mar 25 2012
    • Posts 24
    • Points 420
    Re: Cellviews default application Reply

    Sorry I did not clarify the question better.

    I want to search the library and see which application the opens cellview.

    Does the cellview open L, XL, or GXL?

    psill 

    • Post Points: 20
  • Tue, Oct 2 2012 10:08 PM

    Re: Cellviews default application Reply

    If the default application has been overridden for a cellView, that is done by setting the viewSubType on the cellView. This can only be done for "db" cellViews (e.g. schematics, symbols, layouts), and can be found by looking at:

    cv~>viewSubType

    I'll leave the rest for you...

    Andrew.

    • Post Points: 20
  • Wed, Oct 3 2012 10:02 AM

    • psill
    • Top 500 Contributor
    • Joined on Sun, Mar 25 2012
    • Posts 24
    • Points 420
    Re: Cellviews default application Reply

    When I drop geGetWindowCellView()~>viewSubType I get nil.

    I also tried  hiGetCurrentWindow(), ddGetobj(lib cell view), and dbOpenCellViewByType(lib cell view masklayout r).

    I tried some of the examples on source link but get the same result from different cellviews and sessions.

    I would like to get an value similar to the function deGetViewType() outputs, without opening the cell.

     My version 6.1.5.500.11

    psill 

    • Post Points: 20
  • Wed, Oct 3 2012 3:33 PM

    Re: Cellviews default application Reply

    The viewSubType will be nil if the default application has not been set specifically for that cellView; if there's no viewSubType, the viewType is the actual viewType of the cellView.

    You can also set the global default application by using these three cdsenv vars:

    graphic maskLayoutDefaultApp
    graphic schematicDefaultApp
    graphic schematicSymbolDefaultApp

    So the way you'd have to code it to do what you want is to first use the approach I described initially to get the base viewType of the cellView using ddGetObj approach - this can be done without opening the cellView. Then if the viewType is maskLayout, schematic, or schematicSymbol, you'd have to open the cellView using cv=dbOpenCellViewByType(lib cell view) and then check if cv~>viewSubType has been set - if so, you know the subViewType and hence the application used. If it's not set, you'd need to check the cdsenv to see if the global default app has been overridden.

    I'll leave it to you to glue all this together, because what you're trying to do seems a fairly unusual requirement and probably specific to your needs rather than something general purpose.

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Mar 4 2013 8:55 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Cellviews default application Reply
    On the virtuoso documentation in order to set the default Application for a Schematic or Symbol Cellview, to use the following variable in .cdsenv

    graphic schematicDefaultTier string "XL"

    I tried it but every time I want to open a schematic it opens it in L.

    Thanks
    • Post Points: 20
  • Mon, Mar 4 2013 9:03 AM

    Re: Cellviews default application Reply

    If you type:

    envGetVal("graphic" "schematicDefaultTier")

    in the CIW, what does it say?

    Andrew.

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by psill at 27 Sep 2012 09:38 AM. Topic has 8 replies.