Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi gurus,
I am working on a little lisp that manipulates ltscale of all polylines on a certain layer.
I have the parts that set them all to 1. I'm trying to set them all to a variable value instead of 1.
(setq dscl_math (/ (atoi lay_name_scale) (getvar "dimscale")));;variable
;;;;this sets to 1, instead of 1 i need to use "dscl_math"
((lambda (/ ss i)
(if (setq ss (ssget "x" (list (cons 0 "LWPOLYLINE") (cons 8 new_layer))))
(repeat (setq i (sslength ss))
(entmod (append (entget (ssname ss (setq i (1- i)))) '((48 . 1.))))
)
)
(princ)
)
)
I'm keep screwing it up??
dc
Solved! Go to Solution.