This might be another way to approach it, rather than using the dimedit command:
Code:
(defun c:balls ( / a d )
(initget 6)
(setq a (itoa (cond ((getint "\nEnter the Number of Balls <1>: ")) ( 1 ))))
(while
(progn (setvar 'ERRNO 0) (setq d (car (entsel "\nSelect Dimension: ")))
(cond
( (= 7 (getvar 'ERRNO))
(princ "\n--> Missed, Try Again.")
)
( (eq 'ENAME (type d))
(if (wcmatch (cdr (assoc 0 (setq d (entget d)))) "*DIMENSION")
(entmod (subst (cons 1 (strcat a " @270 CTS= <>")) (assoc 1 d) d))
(princ "\n--> Invalid Object Selected.")
)
)
)
)
)
(princ)
)