- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Very new to lisp and just kind of pieced this lisp file together from what little I understand and what I could find online. It allows me to run the txt2mtxt command and quickly change the formatting of the line spacing by clicking the mtext object after creating it. The problem is that I am unable to figure out how to do a selection set type of selecting as opposed to selecting one object at a time. I have tried multiple variations but I am clearly not understanding something because my selection set tends to skip the paragraph line spacing correction or perform the command out of order. Any help with fixing this lisp routine would be great. Thanks in advance!!
(defun C:t2m();
(command "txt2mtxt")
(while (= 1 (getvar "cmdactive"))
(command pause))
(setq vla_mtext (vlax-ename->vla-object (setq mymtext (car
(entsel)))))
(vla-put-LineSpacingFactor vla_mtext 0.9)
)
Solved! Go to Solution.