selecting one entity

Martin (archive)

Usenet Archive
Joined
Aug 1, 2000
Messages
245
Reaction score
0
I have a lisp which selects some polylines then performs some actions on them one by one, what i do is use the (ssget+sslenght+ssname) then (ssget) again to select one item with the filter set to use the entity name code (-1), but i get a nul selection set, what is wrong with the code and ae there other methods to do that (ssget+sslenght+ssname+entget) (setq b (assoc -1 (objectlist)) ,everything is fine till here

(setq b1 (ssget "X" (list b))) ,returns nul
,which means i can not perform a command on the previous set supposed to have been created in the previous step (command "whatever" "p")

,and it does work if i would choose (setq b (assoc 8 (objectlist)), but then i get many objects in the selection set instead of only one any idea's.
martin
 
Martin,

-1 enames won't work with ssget, but then why?

If you really need a selection set, then

(setq b1 (ssadd))
(ssadd b1 b)

(ssget "P") works on Previsous

Why can't you feed the ename directly to the function?

-David
 
i have tried the (ssadd) to create a new selection set of one object from the main selection set but still "P" refers to main set if i use the command "move" "p" martin
 
if you're saying you did this
(setq setx(ssadd))
(setq setx(ssadd entx setx))
then you could do this
"move" setx
or if you just wanted to move entx why not
"move" entx
 

Latest threads

Back
Top