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

Save File !!!

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
206 Views, 3 Replies

Save File !!!

Please,

How make to create a Lisp for save drawing in only one local ???
Example: ( save as "c:\ new \ cad.dwg" )

Como posso criar uma rotina para salvar desenhos em um mesmo local, onde
apenas digito o nome do novo desenho após o comando???

Fabricio
3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: Anonymous

Hi Fabricio,

try this...

(defun c:MySaveas (/ fld ndwg)
(vl-load-com)
(setq fld (getvar "filedia"))
(setvar "filedia" 0)
(setq ndwg (getstring
(strcat "\nEnter new drawing name : ")
)
)
(setq ndwg (strcat "c:/test/" ndwg ".dwg")) ;Modify the path...
(command "_saveas" "" ndwg "")
(setvar "filedia" fd)
(princ)
)

Cheers

Henrique

P.S. Boa sorte...

EESignature

Message 3 of 4
Anonymous
in reply to: Anonymous

The Lisp function is very good.....

Thank you, Henrique ....

A Lisp funcionou beleza, apenas ajustei ela como necessito....
Obrigado, Henrique.

Fabricio - Brasil

escreveu na mensagem news:5388804@discussion.autodesk.com...
Hi Fabricio,

try this...

(defun c:MySaveas (/ fld ndwg)
(vl-load-com)
(setq fld (getvar "filedia"))
(setvar "filedia" 0)
(setq ndwg (getstring
(strcat "\nEnter new drawing name : ")
)
)
(setq ndwg (strcat "c:/test/" ndwg ".dwg")) ;Modify the path...
(command "_saveas" "" ndwg "")
(setvar "filedia" fd)
(princ)
)

Cheers

Henrique

P.S. Boa sorte...
Message 4 of 4
hmsilva
in reply to: Anonymous

You're welcome, Fabricio...

EESignature

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report