(ssget list) not working

(ssget list) not working

nychoe1
Advocate Advocate
636 Views
2 Replies
Message 1 of 3

(ssget list) not working

nychoe1
Advocate
Advocate

 

I edited a lisp, but not working

what is wrong?  let me know.

 

(defun c:test ()
(setq pt (getpoint))
(setq ss (ssget "c" pt (list "@500.0 -500.0") (list (cons 0 "circle") ))) ; I want to get other corner @Anonymous,-500 from pt.
(command "change" ss "" "p" "c" "6" "")
)

 

maybe, it problem is  ->>  (list "@500.0 -500.0") ???

0 Likes
637 Views
2 Replies
Replies (2)
Message 2 of 3

kerry_w_brown
Advisor
Advisor

Perhaps try something like this :

(defun c:doit ( / pt ss )
  (if (and (setq pt (getpoint "\nSelect work point :"))
           (setq ss (ssget "c"
                           pt
                           (mapcar '+ (list 500.0 -500.0 0.0) pt)
                           (list (cons 0 "circle"))
                    )
           )
      )
    (vl-cmdf "_change" ss "" "p" "c" "6" "")
  )
)

// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 3 of 3

nychoe1
Advocate
Advocate
oh, it is good working thanks KerryBrown.
0 Likes