How can I select with single click? (entget (ssname (ssget '((0 . "CIRCLE")))

Status
Not open for further replies.

abevlad

Usenet Archive
Joined
Aug 20, 2001
Messages
37
Reaction score
0
I want to get the radius of this circle with a single selection. the following allows me to do it with 2 clicks (one mouse click and one enter).
Any ideas?

(setq radius (cdr (assoc 40 (entget (ssname (ssget '((0 . "CIRCLE")))
0)))))

entsel instead of ssget does not work.
 
Actually, (entsel) *will* do it with a single click:

(defun C:RAD (/ r)
(setq r (cdr (assoc 40 (entget (car (entsel "\nPick a circle: ")))))) (alert (strcat "The radius is " (rtos R) ".")) (princ) )
___

"abevlad" wrote:

I want to get the radius of this circle with a single selection. the following allows me to do it with 2 clicks (one mouse click and one enter).
Any ideas?

(setq radius (cdr (assoc 40 (entget (ssname (ssget '((0 . "CIRCLE")))
0)))))

entsel instead of ssget does not work.
 
Status
Not open for further replies.

Latest threads

Back
Top