Results 1 to 5 of 5

Thread: Reload current drawing

  1. #1
    Member
    Join Date
    2017-09
    Posts
    3
    Login to Give a bone
    0

    Default Reload current drawing

    Hello everyone!
    Please tell me how to programmatically reload the current drawing with the request to save changes.
    It is necessary that the drawing is closed and immediately opened, I repeat, with a request to save the changes or not.
    Thanks to everyone who will help.

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    561
    Login to Give a bone
    0

    Default Re: Reload current drawing

    You could try a simple script, writing the script as required so the dwg name is relevant. last line in the lisp etc is (command "script" "close-open")

    Code:
    Close Y
    open dwgname

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Reload current drawing

    Quote Originally Posted by BIG-AL View Post
    You could try a simple script, writing the script as required so the dwg name is relevant. last line in the lisp etc is (command "script" "close-open")

    Code:
    Close Y
    open dwgname
    maybe:
    Code:
    (or vl-bb-set (load "blackboard.lsp"))(vl-bb-set 'dwgpath (strcat(getvar "dwgprefix")(getvar "dwgname")))
    Close Y
    (vl-load-com)(vla-activate(vla-open (vla-get-documents (vlax-get-acad-object))(vl-bb-ref 'dwgpath) :vlax-false))
    Last edited by Tom Beauford; 2017-09-18 at 06:22 PM.

  4. #4
    All AUGI, all the time
    Join Date
    2010-06
    Posts
    962
    Login to Give a bone
    0

    Default Re: Reload current drawing

    Hi,

    If you have the Express Tools installed on your system along with AutoCAD then you can use the command Revert but you need to install the VBA related link and the command would give you the link if its not already installed.

    Personally I use this command a lot.

  5. #5
    Member
    Join Date
    2017-09
    Posts
    3
    Login to Give a bone
    0

    Default Re: Reload current drawing

    Quote Originally Posted by Tom Beauford View Post
    maybe:
    Code:
    (or vl-bb-set (load "blackboard.lsp"))(vl-bb-set 'dwgpath (strcat(getvar "dwgprefix")(getvar "dwgname")))
    Close Y
    (vl-load-com)(vla-activate(vla-open (vla-get-documents (vlax-get-acad-object))(vl-bb-ref 'dwgpath) :vlax-false))
    Hello Tom.
    This is a good way, only the active drawing is not closed, but opens again without the possibility to edit it.
    I'm using Autocad Civil 3d 2017 rus

Similar Threads

  1. 2014: Apply a type current - reload into project - watch what happens
    By CADMama in forum Revit Architecture - Families
    Replies: 13
    Last Post: 2014-11-12, 09:29 PM
  2. Open Local Does Not Reload Current Central Information
    By Dimitri Harvalias in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 4
    Last Post: 2007-09-12, 05:44 AM
  3. Linked CAD Drawing Disappears on Reload
    By ian.117632 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2006-08-28, 09:42 PM
  4. Xref drawing will not update (reload)
    By stephen.coff in forum AutoCAD General
    Replies: 7
    Last Post: 2006-05-15, 04:46 PM
  5. Can't reload edited drawing in Sheet set !!!
    By Sargimo in forum AutoCAD Sheet Set Manager
    Replies: 2
    Last Post: 2006-04-11, 09:40 AM

Posting Permissions

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