• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

extract the full name of the current file

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
I would like to be able to extract, through lisp, the full name of the file currently open in autocad. to be able to dispose of it at will.
for example to make a copy of it.
Thank you.
 
I reply to myself having found the solution:
Code:
 (defunc c:filecurrent copy(/)

(setq currentfile (strcat (getvar "dwgprefix") (getvar "dwgname"))
(vl-file-copy currentfile "c:/autocadsupport/varies/filecopy.dwg" t)

);

ciao
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top