TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jlogan02 on October 07, 2021, 04:53:07 PM
-
Quick piece of code to change selected text to green and then edit selected text.
When I run it, it lets me select multiple text objects and changes all of them to green but only allows editing of the last text
object selected.
(defun c:Appred
( / sel1
)
)
)
)
)
(if (setq sel1 (ssget))
-
Quick piece of code to change selected text to green and then edit selected text.
When I run it, it lets me select multiple text objects and changes all of them to green but only allows editing of the last text
object selected.
(defun c:Appred
( / sel1
)
)
)
)
)
(if (setq sel1 (ssget))
One thing .. if you're wanting to select text you should filter for them and also use (vl-remove-if 'listp ...
-
Quick piece of code to change selected text to green and then edit selected text.
When I run it, it lets me select multiple text objects and changes all of them to green but only allows editing of the last text
object selected.
(defun c:Appred
( / sel1
)
)
)
)
)
(if (setq sel1 (ssget))
One thing .. if you're wanting to select text you should filter for them and also use (vl-remove-if 'listp ...
It's those little things that always get me. I either read (comprehend) wrong, or in this case didn't know.
Thanks RonJonp