Author Topic: Lisp to load a layer state into all drawings in a folder  (Read 2756 times)

0 Members and 1 Guest are viewing this topic.

STEVEDALLAS

  • Guest
Lisp to load a layer state into all drawings in a folder
« 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.
« Last Edit: January 12, 2011, 11:16:32 AM by STEVEDALLAS »

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Lisp to load a layer state into all drawings in a folder
« Reply #1 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.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

STEVEDALLAS

  • Guest
Re: Lisp to load a layer state into all drawings in a folder
« Reply #2 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.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Lisp to load a layer state into all drawings in a folder
« Reply #3 on: January 13, 2011, 05:00:22 PM »
This may help in that respect - although note the restrictions of ObjectDBX as listed on my site.  :-)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Lisp to load a layer state into all drawings in a folder
« Reply #4 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.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lisp to load a layer state into all drawings in a folder
« Reply #5 on: January 13, 2011, 05:19:54 PM »
or as a last resort, just use a script to set everything the way you want.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

yarik

  • Newt
  • Posts: 32
Re: Lisp to load a layer state into all drawings in a folder
« Reply #6 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