Search the Community
Showing results for tags 'automation batch process'.
-
Could anyone help me with it?? I am trying to install Global Attribute Extractor & Editor (http://www.lee-mac.com/macatt.html) on a colleague's computer which has Windows 10 inside. When I run extractor or editor, Autocad let me to state all the blocks and the files. However, when i press ok button it send me a error with automatisation problem. Did you have something similar?
-
- problems with autolisp
- lisp
- (and 3 more)
-
We were using this routine to update/redefine blocks inside a drawings in a directory (ei. 200 drawings) without user input upon invoking the "red" command" The routine reads the dd_list.txt created from a batch file. dir /b *.dwg > dd_list.txt then R&W the list with Open, qSave, close command and loops thru the list until its done & creates the final script to execute. AttDia 0 AttReq 0 -insert "blockname=block path\drawing name.dwg" 0,0,0 1 1 0 (entdel(entlast)) AttReq 1 AttDia 1 ; please do suggest a better way or the fastest to achive the same routine. cheers (defun c:red ( / ddlist red o_red d1 d2 dn) (setq ddlist (findfile "dd_list.txt")) (setq o_red (open "red.scr" "w")) (setq red (findfile "red.scr")) (setq d1 (open ddlist "r")) (setq d2 (open red "a")) (setq dn (read-line d1)) (while (/= dn nil) (princ "open" d2) (princ "\n" d2) (write-line dn d2) (princ "qsave" d2) (princ "\n" d2) (princ "close" d2) (princ "\n" d2) (setq dn (read-line d1)) ) (close d1) (close d2) (close o_red) (command "script" "red") )