See the top rated post in this thread. Click here

Page 4 of 13 FirstFirst 12345678 ... LastLast
Results 31 to 40 of 130

Thread: Automatically Open Drawings From Previous Session

  1. #31
    Certifiable AUGI Addict robert.1.hall72202's Avatar
    Join Date
    2004-07
    Location
    Detroit Michigan
    Posts
    2,508
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Quote Originally Posted by RobertB
    Set AcadLspAsDoc=0. Place all the code that you need to run in every drawing in AcadDoc.lsp. Leave only my 3 lines in Acad.lsp.

    There is absolutely no compelling reason to have AcadLspAsDoc=1. When it is set to 0, you are then able to do stuff only upon inital AutoCAD startup viad Acad.lsp, instead of forcing stuff to happen in every drawing. Leave AcadDoc.lsp to do that work.

    makes no difference

  2. #32
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Robert,

    Why have the VBA code autoload? Why not have the code in the acad.dvb and then execute the vba with a lisp loaded at the end of the Autocad initialization procedures? Will that resolve part of the problem?

    Also, I have not reviewed or executed your code. So if this is a dumb idea, just ignore it.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #33
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Quote Originally Posted by richardl.25628
    Why have the VBA code autoload? Why not have the code in the acad.dvb and then execute the vba with a lisp loaded at the end of the Autocad initialization procedures? Will that resolve part of the problem?
    Good ideas, but ones that I already considered and tested. Placing the code in Acad.dvb avoids a load statement in the Acad.lsp file, true. However, it makes no difference in the issues that I'm trying to circumvent.

    Also, I figured it was easier for someone to remove the code if it was a separate .dvb file. (As a CAD Manager I know I'd prefer it if 3rd party stuff stayed out of my Acad.dvb!)

    I'm almost ready to post a final update. I'm reduced to waiting for the command prompt to be available as AutoCAD is just too unstable that early in the game.

  4. #34
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Quote Originally Posted by rhall.72202
    makes no difference
    I need step-by-step issues from you, in order to understand what is going on at your end. It works as expected for Tod, vferrara, and I.

  5. #35
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Quote Originally Posted by RobertB
    ... I'm reduced to waiting for the command prompt to be available as AutoCAD is just too unstable that early in the game.
    Is that for making the "last active" current, closing "drawing1", both, neither?
    I almost asked if there was a time delay that could be set...

  6. #36
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Making last active is not a problem. There is no way to get rid of Drawing1, since the code starts in Drawing1.

    Autodesk thought that an Acad.dvb and AcadStartup procedure would avoid that issue, until I proved to them that is is a problem anyway. Maybe this will be fixed in the future. <sigh>

  7. #37
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Smile Re: Automatically Open Drawings From Previous Session

    Here is the latest version (v1.2).

    The biggest change was in the code to be placed in the Acad.lsp file. There was a few minor edits to the ReadSnapshot procedure.

    Remember, AcadLspAsDoc should be set to 0!
    Last edited by RobertB; 2007-09-12 at 10:52 PM. Reason: Removed old version

  8. #38
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    can not close because command still active error
    Last edited by madcadder; 2005-08-16 at 06:56 PM.

  9. #39
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    I'm also getting the following error:
    Code:
     Command: ze
     'zoom
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     Specify corner of window, enter a scale factor (nX or nXP), or
     [All/Center/Dynamic/Extents/Previous/Scale/Window] <real time>: e Regenerating 
     model.
     
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     ARX_ERROR: eNotThatKindOfClass
     Command:
     Zoom Extents Complete:

  10. #40
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Automatically Open Drawings From Previous Session

    Quote Originally Posted by todw
    can not close because command still active error
    That's odd, as I'm not closing anything. Are you sure you don't have old stuff hanging around?

    BTW, your 2nd post shows some zoom commands being executed. Was that you, or some automation?

Page 4 of 13 FirstFirst 12345678 ... LastLast

Similar Threads

  1. Replies: 1
    Last Post: 2007-09-19, 03:40 PM
  2. Previous Command Available Across Drawings
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-05-02, 01:44 PM
  3. Replies: 5
    Last Post: 2006-10-09, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •