dfII view type

Discussion in 'Cadence' started by Sam, Nov 26, 2004.

  1. Sam

    Sam Guest

    Hello all,

    How is it possible to get cell dfII view type of a view defined into dfII?
    For example I have a "text" view available in my library browser, and I would
    be able to get its type (defined in data.reg file) trough a skill command. How
    can I do this?

    Thanks,

    Sam.
     
    Sam, Nov 26, 2004
    #1
  2. Sam

    Erik Wanta Guest

    Sam:
    Probably not the best way, but ...

    objid=ddGetObj("lib" "cell" "view")

    foreach(file objid~>files
    when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
    viewType=ddMapGetFileViewType(file)
    ) ; when
    ) ; foreach
     
    Erik Wanta, Nov 28, 2004
    #2
  3. Sam

    fogh Guest

    Hi Sam,
    Do you mean this:
    geGetEditCellView()->cellViewType
    ?
     
    fogh, Nov 29, 2004
    #3
  4. A better way:

    objId=ddGetObj("lib" "cell" "view" "*")
    viewType=objId && ddMapGetFileViewType(objId)

    The "*" argument tells ddGetObj to access the file referenced by the
    master.tag.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2004
    #4
  5. That won't work with anything other than CDBA/OA viewtypes - i.e. stuff that
    can be opened in a graphics editor. See my previous posting with a solution
    for this.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2004
    #5
  6. Sam

    Sam Guest

    Thanks for your precious answer Erik;

    Sam.
     
    Sam, Nov 29, 2004
    #6
  7. ; First open the window and get the window:ID
    wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

    ; Get the database ID of the cell inside that window
    cv = geGetWindowCellView( wid )

    ; Then get the cellViewType
    cellViewType = cv~>cellViewType

    Hope this help!

    Stefan Robert
    Universite de Sherbrooke
     
    Stefan Robert, Dec 10, 2004
    #7
  8. But as I mentioned in previous solutions, this approach won't work for a
    textual cellView, because you can't do the geOpen(). Sam was asking
    about "text" views.

    I gave a solution for this in a previous post in this thread (in fact I then
    wrote this up as a sourcelink solution too).

    Nice try though ;-)

    Best Regards,

    Andrew.
     
    Andrew Beckett, Dec 11, 2004
    #8
  9. Yeah I saw your message after my post.

     
    Stefan Robert, Dec 13, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.