Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

automaticaly open and save DWT to template searchpath

1 REPLY 1
Reply
Message 1 of 2
The_Caddie
365 Views, 1 Reply

automaticaly open and save DWT to template searchpath

Hi

 

I left my big book of codes and lisps at home, In it I have a lisp routine to open a dwt file and save it automatically in the current drawing template search path.

 

Could anyone help with this routine (its popped up as a priority job, otherwise I would of waited till tomorrow)

1 REPLY 1
Message 2 of 2
pbejse
in reply to: The_Caddie

Heres a simple one

 

(defun c:_DWTToPath (/ DwtFile)
(vl-load-com)
(setq DwtFile (getfiled "Select Template File" "" "DWT" 0))
(vl-file-copy DwtFile (strcat (GetEnv "TemplatePath") "\\"
                        (vl-filename-base DwtFile) ".dwt"))
(princ)
      )

 

It will not open the template, it will make a copy of the DWT file to template folder

 

Try it

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost