aecobjexplode - command line troubles

Daron Denton

Usenet Archive
Joined
Jul 21, 2003
Messages
55
Reaction score
0
i'm trying to use aecobjexplode in lisp. it doesn't like the 'if' statement testing for the presence of more than one viewport, to satisfy the view option.

in a drawing with a paperspace viewport, the following fails... (progn (command ".-aecobjexplode" "y" ) (if (and (ssget "x" (list'(0 . "VIEWPORT"))) (> (sslength (ssget "x" (list'(0 . "VIEWPORT")))) 1) ) (command "c") ;..view ) ) ;... returns "Invalid option keyword."

but this works...
(progn
(command ".-aecobjexplode" "y" )
(command "c") ;..view
)

could someone please verify?
thank you
daron
 
Daron,

don't have adt installed, but have you try to implement the use of cmdactive?

(while (= 0 (getvar "cmdactive")) (command "c"))

hth.
 
there are 5 to 8 more varying responses after "c" also depending on the presence or absence of other objects, so that won't work in this case.

thank you though. :o)
daron
 
Back
Top