Search the Community
Showing results for tags 'lee mac'.
-
Lee helped me out a while ago, Thanks Lee. now I find myself pushing further how do I modify or add to his code "ObjectDBXWrapper" to select sub directories?
-
Morning Lee, on 1/13/2012 you created a LISP routine which help enormously. I'm wondering if i could trouble you to show me what needs to change in the code below to apply the LISP to the Y & Z axis of a block too. I poked around on this page: http://www.lee-mac.com/ssget.html but could not put together the logic. ;01/13/2012 this routine was written by Lee Mac on behalf of a request by Chris Hildebran ; ;OBJECTIVE*** ;The purpose of this routine is to find blocks with a negative "x" scale, invert the ; scale and rotate 180 degrees from the original rotation value (defun c:blkscalrot (/ e i s) (if (setq s (ssget "_X" '((0 . "INSERT") (-4 . "<") (41 . 0.0)))) (repeat (setq i (sslength s)) (setq e (entget (ssname s (setq i (1- i)))) e (subst (cons 41 (abs (cdr (assoc 41 e)))) (assoc 41 e) e) e (subst (cons 50 (+ pi (cdr (assoc 50 e)))) (assoc 50 e) e)) ;_ end of setq (entmod e)) ;_ end of repeat ) ;_ end of if (princ)) ;_ end of defun ;|«Visual LISP© Format Options» (72 2 40 0 T "end of " 60 9 0 0 nil nil nil nil T) ;*** DO NOT add text below the comment! ***|;
-
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.- 6 replies
-
- standards
- project name
-
(and 3 more)
Tagged with:
-
I 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?
- 1 reply
-
- lee mac
- layer director
-
(and 1 more)
Tagged with: