Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Autocad > script to savea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3369 of 3467
Post > Topic >>

script to saveas

by nicolas_copernico2003@[EMAIL PROTECTED] Feb 15, 2008 at 04:21 AM

hello i wanted to write a script to copy the entire drawing to a new
dwg and then save it with the same name as the original, my problem is
at the end of the script, when i wanted to save it with the previous
name. what could it be, i would let yo see my scr if you see something
wrong.
Thank you very much.
nicolas_copernico2003"at"yahoo.com.ar

filedia
0
lispinit
0
(defun c:border_update(/ dn pa pawb md panbdn aux panbdn2)
(setq dn (getvar "dwgname"))
(setq pa (getvar "dwgprefix"))
(setq aux (strcat pa "Original_"))
(setq panbdn2(strcat aux dn))
(setq panbdn(strcat pa dn));i save the name becouse then i would TRY
save the new file with this name (but i cant :S)
(command "SAVEAS" 2000 panbdn2) ;Here i save the original file with
another name.
)
filedia
0
-lman
save
Original
Export
"C:\Docume nts and Settings\nuser\Escritorio\original.lay"
yes

-layer
on
*
unlo ck
*
thaw
*

_copybase
0,0,0
all

new;HERE I CREATE A NEW FILE TO PASTE ALL THE PREVIOUS DRAWING
Yes

(command "SAVEAS" 2000 panbdn) ;HERE IS MY PROBLEM!! THIS DOESNT WORK
_pasteclip
0,0,0
-lman
Import
"C:\Documents and Settings\nuser\Escritorio\original.lay"
Restore
Original
delete
ori ginal

lispinit
1




 1 Posts in Topic:
script to saveas
nicolas_copernico2003@[EM  2008-02-15 04:21:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 4 21:39:33 CDT 2008.