Message 1 of 10

Not applicable
03-29-2017
06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'd be really gratefull for some help
I need some lisp code that will change the hatch scale of a specific pattern.
I need to change all ANSI31 to a scale of 100 in multiple drawings.
With some recycling of code found on here I've got the below but cannot get it to run - I think it's close but not close enough!
Could anyone point me in the right direction please?
Many thanks in advance!
(defun c:hatchup ( / ss e ei)
(repeat (sslength (setq ss (ssget "x" '((0 . "HATCH")(2 . "ANSI31")))))
(setq e (ssname ss 0) ei (entget e))
(ssdel e ss)
(entmod (subst '( 41 . "100") (assoc 2 ei) ei))
)
(princ))
Solved! Go to Solution.