Beena Posted March 23, 2010 Posted March 23, 2010 I want to find perticular text in autocad drawing(master plan) showing with leader line because some other persons also want to see this, if you have any lisp for this please suggest and help me, Thanks Quote
BearDyugin Posted March 24, 2010 Posted March 24, 2010 If I understand correctly, you need to find a text that is associated with leader Type in command line (sssetfirst nil (ssget "_X" '((0 . "MTEXT") (102 . "{ACAD_REACTORS")))) Quote
alanjt Posted March 24, 2010 Posted March 24, 2010 If I understand correctly, you need to find a text that is associated with leaderType in command line (sssetfirst nil (ssget "_X" '((0 . "MTEXT") (102 . "{ACAD_REACTORS")))) LoL Not at all how I read it. Quote
fixo Posted March 24, 2010 Posted March 24, 2010 I want to find perticular text in autocad drawing(master plan) showing with leader line because some other persons also want to see this, if you have any lisp for this please suggest and help me,Thanks Just a hint (vl-load-com) (defun C:demo(/) (setq oldString "Yes" newString "No");<-- change the desired values here (setq ss (ssget "X" '((0 . "LEADER")))) (setq obj_list (mapcar 'vlax-ename->vla-object (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))))) (foreach leader_obj obj_list (if (vlax-property-available-p leader_obj 'Annotation) (progn (setq anno_text (vla-get-annotation leader_obj)) (if (eq oldString (vla-get-textstring anno_text)) (progn (vla-put-textstring anno_text newString) (vla-update leader_obj))))) ) (princ) ) ~'J'~ Quote
BearDyugin Posted March 24, 2010 Posted March 24, 2010 I really have a problem with English. Accordingly, I did not understand that alanjt meant Not at all how I read it. I think something offensive. Of course, there are many programs that are attached to the text of the reactor, but in the pure AutoCAD it doing only Leader Quote
alanjt Posted March 24, 2010 Posted March 24, 2010 I really have a problem with English.Accordingly, I did not understand that alanjt meant I think something offensive. Of course, there are many programs that are attached to the text of the reactor, but in the pure AutoCAD it doing only Leader I just meant that I completely misread what he was asking. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.