By menu I mean ,when I use this lisp this steps should happen
1> It should ask please select the points for JOB 1
>User will select the different multiple points (which are actually center of circles) after selection he will press Enter.
2>Then it will ask "Are their any more Jobs?" with option <Y/N> if user presses Y i.e yes it will ask for JOB2 selection in such wau JOB3,JOB4 etc. until he presses N i.e No.
This selection for different jobs and asking yes no is what I meant like menu driven (Something like menu type)
Yes I want center of the circles. I also have different lisp program to get center coordinates and radius by selecting circles. It will be also fine if we add that menu in it.
This is the code.
(defun c:centest (/ txt opn int sel ent get)
(and
(setq opn (open (strcat (getvar "dwgprefix")(vl-filename-base (getvar "dwgname")) ".pnt") "w"))
(princ
"\nSelect circles to expor Radius & Center values to txt file : "
)
(setq int -1
sel (ssget '((0 . "CIRCLE")))
)
(while (setq int (1+ int)
ent (ssname sel int)
)
(setq get (entget ent))
(write-line
(strcat "R"(rtos (cdr (assoc 40 get)) 2 2)
"\t"
(apply 'strcat
(mapcar '(lambda (q) (strcat (rtos q 2 4) " "))
(cdr (assoc 10 get))
)
)
)
opn
)
)
(close opn)
)
(princ)
)
I will attach the drawing. The small circles are actually the stoppers at the each job profile and I want to extract the center coordinates of all of them differentiated by the Job number.(The format which I showed in main question)