Author Topic: layer reactor help  (Read 13076 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: layer reactor help
« Reply #15 on: April 25, 2008, 05:05:40 PM »
I didn't wade through the code, I'm sure it's good, but the problem sounds like the reactor is firing no matter what command is ran (which it should), and as such is setting the layer back to the on before the command was invoked (even if the command is not listed in the command list, which I think is not a desired result).  It looks like Alan got it though by the code revision index.
Tim

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

Please think about donating if this post helped you.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: layer reactor help
« Reply #16 on: April 25, 2008, 05:33:55 PM »
Good catch Tim, that's exactly what was happening.  8-)
The revised code should have fixed the problem
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: layer reactor help
« Reply #17 on: April 25, 2008, 10:11:12 PM »
SUCCESS!!!

you are truely my hero!
thank you thank you thank you!
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

mig20

  • Guest
Re: layer reactor help
« Reply #18 on: September 13, 2013, 01:13:37 PM »
I know I'm resurrecting an old thread but it ALMOST does exactly what I'm looking for.

I regularly work between four different CAD standards with their own layer sets, and I use Lee Mac's LayerDirector with layer lists for each standard but have to reload the right one manually when I switch projects.

It's not the end of the world having to do this but I'd like to roll it out to other users to help enforce the correct layer usage, however I'd like it automated so they don't have to load the LayerDirector themselves.

My first thought was a variable in the drawing to identify the standard to be used (I thought PROJECTNAME would do it) and then LayerDirector would know what layer list to use, or set a project search path load the correct lisp.

Upon searching to see if it had been done already, I came across the code in this thread which pretty much does it for multiple users so I am wondering if a modification and setting an in-drawing variable would work for me?

Any advice or assistance would very welcome!

thanks :)




Well I finally figured out the problem. And a solution.
Try this:
Code: [Select]
;  ----------------

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: layer reactor help
« Reply #19 on: September 13, 2013, 03:52:35 PM »
Welcome to the Swamp. 8)
The routine can be modified to use quite a few methods of detection.
Global Variable
Black Board Variable
Drawing name
Layers already in use
Text file with Drawing name

just to name a few.

I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

mig20

  • Guest
Re: layer reactor help
« Reply #20 on: September 16, 2013, 01:01:18 PM »
Welcome to the Swamp. 8)
The routine can be modified to use quite a few methods of detection.
Global Variable
Black Board Variable
Drawing name
Layers already in use
Text file with Drawing name

just to name a few.

Thanks for the welcome, and the pointers CAB, i'll investigate those further and see what I come up with  ;-)