Jump to content

revising text.


Lt Dan's legs

Recommended Posts

The wording changes from job to job

 

lets say i've entsel the wording for this text Largest rectangle -- x --.

 

once I've retrieve this how do I change the text to Largest rectangle -- x

 

wording changes from job to job but the -- x --. stays the same.

Link to comment
Share on other sites

Just written quickly:

 

(defun c:revtxt nil
 (
   (lambda ( s i / e a l ) (vl-load-com)
     (if s
       (while (setq e (ssname s (setq i (1+ i))))
         (if (wcmatch (setq a (cdr (assoc 1 (setq l (entget e))))) "*x*")
           (entupd
             (cdr
               (assoc -1
                 (entmod
                   (subst
                     (cons 1 (substr a 1 (1+ (vl-string-position 120 a)))) (assoc 1 l) l
                   )
                 )
               )
             )
           )
         )
       )
     )
   )
   (ssget "_:L" '((0 . "TEXT"))) -1
 )
 (princ)
)

Link to comment
Share on other sites

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