BIGAL Posted May 26, 2016 Posted May 26, 2016 I got around the first problem of having file names & directories with spaces in them by using Vla-open and it works fine for single dwgs. I need to do a script process, the script opens a dwg makes it the default but then stops and does not run the preloaded defun or use of a (Load "xxxx") it just returns command to the current drawing. Any ideas very frustrating, 128 individual directories. Lisp (defun openblk (blkname / adocs) (setq acDocs (vla-get-documents (vlax-get-acad-object))) (vla-open acDocs blkname) (vla-activate (vla-item acdocs 1)) ;(vla-put-activedocument (vlax-get-acad-object) (vla-item acdocs 1)) ) script Filedia 0 (openblk "P:/2014 Projects/2014073/Design/basin 1/2014073-1") (plotbasin) CLOSE N Quote
rlx Posted May 26, 2016 Posted May 26, 2016 Hi BigAL, I assume both openblk and plotbasin are automaticly / pre-loaded? Gr.Rlx Quote
bababarghi Posted May 26, 2016 Posted May 26, 2016 I am big fan of Lee Mac's programs. 99.99% of the times, I use his Script Writer for scripts. If all of your drawings reside in a single folder, try it then. Quote
BIGAL Posted May 27, 2016 Author Posted May 27, 2016 Thanks guys solved the problem it was not actually a problem with the dwg names but rather a typo on the last line of the lisp program, this would cause an error so script stops, the lisp when ran would work and I was overlooking the error that occured. Quote
David Bethel Posted May 27, 2016 Posted May 27, 2016 I would think replacing the space with an underscore would work in plain script lines as well. -David open p:/2014_projects/ .... -David Quote
BIGAL Posted May 28, 2016 Author Posted May 28, 2016 David your correct but 128 directories and files to rename, fixed the lisp and had a couple of fails which were drawing problems now sorted, the original draftee missed a number which I put in script, produced 148 pdf's around 4 secs per dwg. Quote
samifox Posted May 31, 2016 Posted May 31, 2016 is there a way to override open dialog? (aka -open)? Quote
dbroada Posted May 31, 2016 Posted May 31, 2016 is there a way to override open dialog? (aka -open)? look at BigAl's script, Filedia 0 Quote
samifox Posted May 31, 2016 Posted May 31, 2016 look at BigAl's script, Filedia 0 Thanx. what else has no command version (no -commend)? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.