Results 1 to 10 of 10

Thread: Save using Visual LISP

  1. #1
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Save using Visual LISP

    Does anyone know how to call the save command using visual lisp? I have an autosave routine that fires on a reactor, so I cant use "command" but I would like to save a copy of the current drawing, without overwriting the original file, just in case we are in a file and dont want to save any changes that we make.

  2. #2
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    Quote Originally Posted by ccowgill View Post
    Does anyone know how to call the save command using visual lisp? I have an autosave routine that fires on a reactor, so I cant use "command" but I would like to save a copy of the current drawing, without overwriting the original file, just in case we are in a file and dont want to save any changes that we make.
    Maybe THIS THREAD will help?

  3. #3
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    possibly, but I am a little confused, I want to use the .SAVE functionality as RK suggests, but because I am using a reactor I cant use "command", I need some sort of a VLISP alternative.

  4. #4
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    Quote Originally Posted by ccowgill View Post
    possibly, but I am a little confused, I want to use the .SAVE functionality as RK suggests, but because I am using a reactor I cant use "command", I need some sort of a VLISP alternative.
    Well...because I know very little about vlisp, you probably still have a valid problem.
    I just recognized a similar question and linked you to it, hoping it would help.

    Maybe someone else will have actual information for you

    Good Luck dude

  5. #5
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    Quote Originally Posted by tedg View Post
    Well...because I know very little about vlisp, you probably still have a valid problem.
    I just recognized a similar question and linked you to it, hoping it would help.

    Maybe someone else will have actual information for you

    Good Luck dude
    Thanks for the link, it may be that there is a solution, maybe RK or Opie can explain how to get either method to work in my case.

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

    Default Re: Save using Visual LISP

    You might be able to use the saveas method of the activedocument or document object.
    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

  7. #7
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    Quote Originally Posted by Opie View Post
    You might be able to use the saveas method of the activedocument or document object.
    from help on the saveas method:
    FileName
    String; input-only
    The full path and file name, or valid URL address, for the file. The active document takes on the new name.
    what about the export method? can the selectionset contain objects that are frozen? can it have a dwg extension, or does it have to be one of the ones listed in help?
    Thanks, for your input.

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

    Default Re: Save using Visual LISP

    It doesn't look like your original request is possible.

    The Save method overwrites the original file and, as you stated, the SaveAs method changes the current drawing file name to the new file. The export method exports to a dxf file among other extensions.
    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

  9. #9
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    Are you stuck with lisp and/or vba? I wonder if this is possible in .NET?
    R.K. McSwain | CAD Panacea |

  10. #10
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Save using Visual LISP

    the only reason I am stuck with Vlisp is its the only language I know, I would be open to using another programming language to accomplish what I am trying to do.

Similar Threads

  1. visual lisp editor should be like visual studio
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2011-11-17, 05:33 PM
  2. Save with Visual Fidelity for Annotative Objects
    By robgraham31 in forum AutoCAD General
    Replies: 3
    Last Post: 2009-07-23, 06:03 AM
  3. Programacion en Lisp y Visual Lisp
    By ralmavar in forum AutoCAD General
    Replies: 7
    Last Post: 2009-06-15, 01:52 PM
  4. Replies: 2
    Last Post: 2008-02-01, 09:05 PM
  5. Save Visual Style from Dashboard
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-10-26, 04:59 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
  •