Search the Community
Showing results for tags 'layer director'.
Found 2 results
LayerDirector for multiple CAD standards - use PROJECTNAME?
mig20 posted a topic in AutoLISP, Visual LISP & DCL**I've posted this question on another site which a lot of people here frequent as well so I apologise in advance and don't expect an answer to both forums.** I regularly work between four different CAD standards with their own layer sets, and I use Lee Mac's LayerDirector (Thanks Lee ) 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. Any advice or assistance would very welcome! thanks ps. I don't know whether to start another thread or not as it is a similar question but I currently have a tool palette for each of the CAD standards which are almost identical and allow me to run the same lisps/scripts but modified slightly for each standard. If could set a project search path which is recognised in each drawing, then I'd only need to maintain one version of the tool palette and it would find the right version of the lisp/script accordingly.
Lee Mac's Layer Director tweak
Dadgad posted a topic in AutoLISP, Visual LISP & DCLI love this lisp of Lee's. Can't recommend it highly enough. I have set it to create a new layer when using the INSERT command, the name of which, I would like to be, the name of the XREF being inserted. All layer properties to match layer 0, as shown in the image. No problem getting it to create the new layer named Xref, but how to extract the name from the object being inserted and add it to the layer name? Is that possible?