VP Layers - 2002 vs 2004

Discussion in 'AutoCAD' started by Jeff Mishler, Jan 30, 2004.

  1. Jeff Mishler

    Jeff Mishler Guest

    Has the method of storing viewport frozen layers changed from 2002 to 2004?
    I have a routine I wrote in for copying frozen vp layers in 2002 that
    another user cannot get to work in 2004. I've tried everything I can think
    of without having 2004 to try it on.

    In 2002, I could save the layers frozen in a viewport by getting the (assoc
    341) of the VP entity. This no longer seems to be the case. Can someone
    verify/debunk this? If it's verified, what might I use to get this info.?

    Thanks,
    Jeff
     
    Jeff Mishler, Jan 30, 2004
    #1
  2. Jeff Mishler

    rdi Guest

    rdi, Jan 31, 2004
    #2
  3. Jeff Mishler

    Doug Broad Guest

    It does seem strange that they have changed that.
    I've always used the xdata for the viewport regardless.
    It returns layer names rather than layer entities, which
    IMO is more directly useful.

    (entget (car(entsel))(list "acad"))

    HTH
     
    Doug Broad, Jan 31, 2004
    #3
  4. Jeff Mishler

    Jeff Mishler Guest

    RDI,
    It's Jeff, not Russ....but that's OK. I answer to just about
    anything......;-)

    Thanks for the link. I'd searched for that, and knew it existed because I've
    been there before, but just didn't find it for some reason.

    If they didn't change things like this, how would we ever get errors in our
    code????? ;-)

    Jeff
     
    Jeff Mishler, Jan 31, 2004
    #4
  5. Jeff Mishler

    Jeff Mishler Guest

    Thanks for this tip, Doug.

    I have used this in the past and now I don't remember why I didn't continue
    using it.....aren't there other things that save data under "ACAD" using the
    1003 code?

    Well I'll modify my code to use this and see what happens....

    Thanks again,
    Jeff
     
    Jeff Mishler, Jan 31, 2004
    #5
  6. Jeff Mishler

    rdi Guest

    Sorry about that "Russ" er Jeff. :)

    I had just read one of "Kiwi Russ's" posts a few minutes before.
     
    rdi, Feb 1, 2004
    #6
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.