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
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