PDA

View Full Version : SSGET returns error - bad SSGET list


tany0070
2007-03-09, 05:46 AM
hi, i'm having a little problem with my ssget command so can someone please help. the code is as follows:

(setq s1 (ssget))
(command "_mirror" s1 "" cent ang270 "n")

(setq ss1 (entget (ssname s1 0)))
(setq sst1 (cdr (assoc 8 ss1)))
(setq s2 (ssget "X" '((sst1))))

what the code is suppost to do is mirror the the selected lines and than it will select all lines mirrored and original (all in the same layer thus the code) for further manipulation. personnally i am doing array command to generate an image. the error show is [error: bad SSGET list].

please help, thanks

[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]

kennet.sjoberg
2007-03-09, 08:07 AM
hi, i'm having a little problem . . .
replace your last line of code with (setq s2 (ssget "X" (list (cons 8 sst1))))

: ) Happy Computing !

kennet

tany0070
2007-03-09, 08:26 AM
replace your last line of code with (setq s2 (ssget "X" (list (cons 8 sst1))))

: ) Happy Computing !

kennet
thank you very much