ILoveMadoka 发表于 2022-7-6 14:35:39

Explode a SS? I don't und

Is it possible to explode a selection set assigned to a variable?
I'm debugging a routine and am having a problem with this code.
If I create a selection set with several MTEXT entities
it only explodes the last one the way it's written here.
I must really misunderstand how the explode command works.
It asks for a selection set but I cannot return it as a variable!
Once upon a time (ie:version) was the Explode command one of the
commands that returned "Select Object:" vs "Select Objects:" ???
 
This is only a subroutine I've pulled out of a larger proggie I'm working on.. I feel stupid that I can't figure this one out. Help Please!!
 
(defun c:XM4 ( )
(setq t (ssget))
(setq mtss (ssget "P" '((0 . "MTEXT"))))
(if mtss
    (progn
      (command "explode" mtss "")
    )
)
(princ))
 
Thank you to all the code masters who inspire us posers!
(^_^)

lpseifert 发表于 2022-7-6 15:59:33

try putting
(setvar "qaflags" 1) after the (defun c:... line
页: [1]
查看完整版本: Explode a SS? I don't und