jgardner.79905
2005-10-21, 04:47 PM
I am currently putting together a routine which will change the textoverride of all dimension in a drawing that equal 3.5" to be a space, so no text is displayed in that dimension. The routine below is what I have put together and it seems to be working great for dimension that are exactly 3.5", but our dimension precision is set to 1/32" of an inch. So I was hoping someone could help me with how I could put a small range in the if statement.
(defun c:dblank ()
(setq ssSelection (ssget "X" (list (cons 0 "dimension"))))
(repeat (setq intCount (sslength ssSelection))
(setq intCount (1- intCount)
entSelection (ssname ssSelection intCount)
objSelection (vlax-ename->vla-object entSelection)
)
(if (= (vla-get-measurement objSelection) 3.5)
(vla-put-TextOverride objSelection " ")
)
(princ)
)
)[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
Thanks for any help
Jason
(defun c:dblank ()
(setq ssSelection (ssget "X" (list (cons 0 "dimension"))))
(repeat (setq intCount (sslength ssSelection))
(setq intCount (1- intCount)
entSelection (ssname ssSelection intCount)
objSelection (vlax-ename->vla-object entSelection)
)
(if (= (vla-get-measurement objSelection) 3.5)
(vla-put-TextOverride objSelection " ")
)
(princ)
)
)[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
Thanks for any help
Jason