TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: STEVEDALLAS on January 12, 2011, 11:09:53 AM

Title: Lisp to load a layer state into all drawings in a folder
Post by: STEVEDALLAS on January 12, 2011, 11:09:53 AM
I have a folder with about 150 autocad files in it.
I need to go into each one and load a layer state.
I have seen code for it before, but can not seem to locate it again.
I used to have lisp for it, but can not locate it.

Can anyone help?

Also: The files are setup using STB's not CTB's. If that makes a difference. Not our choice.
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: T.Willey on January 13, 2011, 01:59:04 PM
It looks like it could be done, but I don't have anything written like that, so if you start we can help you along the way.
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: STEVEDALLAS on January 13, 2011, 04:54:17 PM
How do  I run a command on all files in a folder?

i can do it if i know that.
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: Lee Mac on January 13, 2011, 05:00:22 PM
This (http://lee-mac.com/odbxbase.html) may help in that respect - although note the restrictions of ObjectDBX as listed on my site.  :-)
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: T.Willey on January 13, 2011, 05:15:43 PM
If you can't code it up to meet the restrictions of ObjectDBX, then maybe grab one of the script file creators, and have a go for that.
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: David Hall on January 13, 2011, 05:19:54 PM
or as a last resort, just use a script to set everything the way you want.
Title: Re: Lisp to load a layer state into all drawings in a folder
Post by: yarik on January 14, 2011, 12:11:55 PM
May you can use ScriptPro
Im not test it but maybe works

https://sites.google.com/site/yarikmx/kmlimport/ScriptPro.zip?attredirects=0&d=1 (https://sites.google.com/site/yarikmx/kmlimport/ScriptPro.zip?attredirects=0&d=1)