We're using ACAD2002 with Windows XP Professional.
My enclosed balloon or item indicator routine has been working fine for the last year or more on several PC's here at work.
(defun c:bln-a (/ cc in is)
(prompt "Balloon")
(command "dimasz" ".09375")
(command "LAYER" "SET" "DIM" "")
(command "dimldrblk" ".")
(setq cmd (getvar "cmdecho"))
(setvar "osmode" 512)
(setvar "cmdecho" 0)
(terpri)(setq is (getpoint "Start point of Leader:"))
(terpri)(setq cc (getpoint is "Center of Balloon:"))
(terpri)(setq ds (getvar "dimscale"))
(terpri)(setq th (getvar "dimtxt"))
(terpri)(setq cd (getvar "dimdli"))
(terpri)(setq rad (* th 3))
(terpri)(setq txt (* th ds))
(terpri)(setq dia (* rad ds))
(command ".circle" cc "d" dia)
(COMMAND "-STYLE" "STANDARD" "" "" "" "" "" "" "")
(command "Qleader" is (polar is (angle is cc)
(-(distance is cc)(/ dia 2))) c^c^)
(terpri)(setq in (getstring "Text in Balloon:"))
(command ".text" "m" cc txt 0 in)
(setvar "cmdecho" cmd)
(setvar "osmode" 47)
(princ)
)
Recently a problem has developed when using this routine.
When the routine inserts the text in the bubble, (new developement) it doesn't always place it centered in the circle.
What seems to make the difference is how far the user is zoomed in or out at the moment of text placement. It doesn't matter where the mouse or cross-hairs are position. When the routine doesn't work properly, we end up with the text inserted on a quadrant of the circle or end point of the leader. It's as if zooming out affects the magnetic strength of an osnap that's not even active at the time.
This doesn't matter if it's a new drawing, old drawing, or who's PC is being used. We all have individual menus and lisp routines. Not network shared. After careful checking, the only common denominator I can find is - an outdated CAD program coupled with Windows operating system updates.
Any ideas to help find a solution would be greatly appreciated.
And yes, I've already thought of the Sledge-omatic!
Thanks