Jump to content

Recommended Posts

Posted

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

Posted

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"))))

2127fd5e2df6.gif

Posted
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"))))

 

LoL

Not at all how I read it.:wacko:

Posted
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'~

Posted

I really have a problem with English.

Accordingly, I did not understand that alanjt meant

lol.gif

Not at all how I read it. :wacko:

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

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...