Get Freeze Status in a given Named View ?

Discussion in 'AutoCAD' started by ECCAD, Mar 11, 2005.

  1. ECCAD

    ECCAD Guest

    I hope someone can help me to get the 'status' e.g. Frozen or Thawed, for a particular Layer, within a named View.
    So far, I can get the View Names in a list, but cannot seem
    to get the status of a particular Layer - within the selection
    set of: (setq ss (ssget 'x' '(0 . "VIEWPORT"))))
    I have drilled down to the entity list to see all the (1003 . "Layername") dxf entries, but cannot 'associate' them
    with the particular named View.

    Thanks for any help.

    Bob
     
    ECCAD, Mar 11, 2005
    #1
  2. Bob,

    I have not examined this in any depth but it appears
    (at first glance) that you might need to dig through
    the layer state that is associated with the view.

    Here is a dump of a view named "test". Notice the
    layer state property.


    ; IAcadView2: A graphical representation of a 2D drawing or 3D model from a
    specific location (viewpoint) in space
    ; Property values:
    ; Application (RO) = #<VLA-OBJECT IAcadApplication 00b9d604>
    ; CategoryName = ""
    ; Center = (17.9405 18.2699)
    ; Direction = (0.0 0.0 1.0)
    ; Document (RO) = #<VLA-OBJECT IAcadDocument 0d997320>
    ; Handle (RO) = "1F5"
    ; HasExtensionDictionary (RO) = -1
    ; HasVpAssociation = 0
    ; Height = 10.8411
    ; LayerState = "ACAD_VIEWS_test"
    ; LayoutId = 2115497200
    ; Name = "test"
    ; ObjectID (RO) = 2115396456
    ; ObjectName (RO) = "AcDbViewTableRecord"
    ; OwnerID (RO) = 2115497008
    ; Target = (0.0 0.0 0.0)
    ; Width = 13.8417
    ; Methods supported:
    ; Delete ()
    ; GetExtensionDictionary ()
    ; GetXData (3)
    ; SetXData (2)
    T


    Hope that helps.

    --
    Autodesk Discussion Group Facilitator



    a particular Layer, within a named View.
    dxf entries, but cannot 'associate' them
     
    Jason Piercey, Mar 11, 2005
    #2
  3. ECCAD

    ECCAD Guest

    Jason,
    Great. Now, how exactly did you get the Object ?
    Where are the 'views' kept (as objects) ?
     
    ECCAD, Mar 11, 2005
    #3
  4. ECCAD

    Jeff Mishler Guest

    Hi Bob,
    Not Jason, but this should keep you going.....

    (setq views (vla-get-views (vla-get-activedocument (vlax-get-acad-object))))
    (setq view (vla-item views "test"))
     
    Jeff Mishler, Mar 11, 2005
    #4
  5. ECCAD

    ECCAD Guest

    Jeff,
    Thanks.
    I'll check it out.

    Bob
    :)
     
    ECCAD, Mar 12, 2005
    #5
  6. ECCAD

    ECCAD Guest

    Jason,
    For some reason, I don't get all the items in your list.
    Missing are:
    CatagoryName
    HasVpAssociation
    LayerState
    LayoutId

    I have (developer's edition R2004)
    What's the scoop.
    Bob
     
    ECCAD, Mar 12, 2005
    #6
  7. ECCAD

    Jeff Mishler Guest

    Heh, me again Bob..... methinks that those didn't come into being until
    R2005......
    Wait a minute.....are you saying that you can have layers that are
    frozen/thawed in individual Views (not just PSViewports)? For some reason I
    thought that, too, was a feature of R2005+
     
    Jeff Mishler, Mar 12, 2005
    #7
  8. Same as Jeff, I am now slightly confused about
    the question. I got the impression that you were
    using 2005.
     
    Jason Piercey, Mar 12, 2005
    #8
  9. ECCAD

    ECCAD Guest

    Jeff, Jason,
    Yeah. I have R2004 and R2005, didn't try R2005 yet.
    In R2004, you can Freeze a given Layer in PaperSpace,
    in a given Named View. Works fine. But, I cannot locate
    the 'sticky' bit that tells me if that particular Layer is
    Frozen in that particular View.
    I can see all the 'info' except the 'LayerState' - which is what
    I think I need.
    The customer has R2004, so I can't use R2005 for code.
    Blah.
    Bob
     
    ECCAD, Mar 12, 2005
    #9
  10. ECCAD

    ECCAD Guest

    Well,
    I'm 'baked' today, will check back tomorrow.

    Bob
     
    ECCAD, Mar 12, 2005
    #10
  11. I don't have 2004 installed here to try and simulate
    what you are describing (our office skipped 2004,
    so I am that much less familiar with it's feature set).

    Can you provide step by step instructions on how
    you are creating these views?
     
    Jason Piercey, Mar 12, 2005
    #11
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.