Jump to content
SunnyTurtle

Open Drawing with Vault lisp

Recommended Posts

SunnyTurtle

Hi i want to replace the _open command this works on my old PC but when i go to install on another it just run the default open

 

is there some variable that stops defun from redefining standard autocad commands

;	variables set
(setq tilemodevar (getvar "tilemode"))
(setq varCPROFILE (getvar "CPROFILE")) 
;	close windows
(COMMAND "EXTERNALREFERENCESCLOSE")
(COMMAND "LAYERCLOSE")
(COMMAND "PROPERTIESCLOSE")
(COMMAND "ADCCLOSE")
;	Open drawing from vault
(if (= varCPROFILE "Vault_r2014_Acad")
 (progn
   (defun c:_open	()
     (command 
       "_vltopen"
       ""
     ) ;_ end of command
   );_ end of defun
 ) ;_ end of progn
) 
;	autocad variables unset
(setvar "FILEDIA" FILEDIAvar)

Edited by SunnyTurtle

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...