scaling  block by height and width in autolisp

scaling  block by height and width in autolisp

Anonymous
Not applicable
1,049 Views
2 Replies
Message 1 of 3

scaling  block by height and width in autolisp

Anonymous
Not applicable

scaling  block by height and width

0 Likes
Accepted solutions (1)
1,050 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

X scale version. Similarly Y.

 

(defun c:BScaleX ( / scl sel i ent)

  (if (and (setq scl (getreal "\nX scale factor: "))
	   (setq sel (ssget "_:L" '((0 . "INSERT"))))
	   )
    (repeat (setq i (sslength sel))
      (setq ent (ssname sel (setq i (1- i))))
      (setpropertyvalue ent "ScaleFactors/X" (* scl (getpropertyvalue ent "ScaleFactors/X")))))
  (princ)
  )
0 Likes
Message 3 of 3

Sea-Haven
Mentor
Mentor

I can see the next question scale about which point, eg text has 12 points of reference. Middle of block, insertion point ?

0 Likes