Message 1 of 11

Not applicable
05-26-2017
12:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to incorporate a function into my existing routine that selects all of the polylines and sets them to a global width of 2. I'm about new as they come to writing lisp coding so I figured I'd enlist the help of the pros. My existing routine is below. This centers the drawing, sends all hatch to the back, selects all text and changes it to legend. Now all I need is to add the polyline global width coding.
(defun c:minex () (command"_ZOOM""_E") ;zooms to extents (command"_HATCHTOBACK") ;sends all hatching to back of drawing order (if (setq tss (ssget "_X" '((0 . "*TEXT")))) (repeat (setq n (sslength tss)) (setq tdata (entget (ssname tss (setq n (1- n))))) (entmod (subst '(7 . "LEGEND") (assoc 7 tdata) tdata)) ); repeat ); if ); defun (if (setq ss (ssget "_x" '((0 . "*TEXT")))) (repeat (setq i (sslength ss)) (setq ent (entget (ssname ss (setq i (1- i))))) (entmod (subst (cons 40 150) (assoc 40 ent) ent)) ) (princ) )
Solved! Go to Solution.