Jump to content

Recommended Posts

Posted

Jadeous, please try this:

 

(defun c:reNum  (/ ENT I SS)
 (vl-load-com)
 (or sNum (setq sNum 1)) (or inNum (setq inNum 1))

 (setq sNum  (cond ( (getreal (strcat "\nSpecify Starting Number <" (rtos sNum 2 2) ">: "))) (sNum))
       inNum (cond ( (getreal (strcat "\nSpecify Increment <" (rtos inNum 2 2) ">: "))) (inNum))
       Pref  (getstring t (strcat "\nSpecify Prefix <-None->: "))
       Suff  (getstring t (strcat "\nSpecify Suffix <-None->: ")))
 
 (if (setq i -1 ss (ssget '((0 . "INSERT") (66 . 1))))
   
   (while (setq ent (ssname ss (setq i (1+ i))))
     
     (foreach att (vlax-invoke (vlax-ename->vla-object ent) 'GetAttributes)
       
       (cond (  (eq "POINT" (strcase (vla-get-TagString att)))
                (vla-put-TextString att (strcat Pref (rtos sNum) Suff))
                (setq sNum (+ sNum inNum)))))))
 
 (princ))

 

Its pretty much what I posted above though. :geek:

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • Jadeous

    12

  • Lee Mac

    10

  • ILoveMadoka

    1

  • uddfl

    1

Top Posters In This Topic

Posted Images

Posted

Hello Lee Mac. The first lisp in this thread is the one the worked in 2006. The longer one, not the short one. The short never worked for me. I posted a new thread that has a better explaination.

 

Its called, "Old Lisp Doesn't Work in 2008 ACAD"

Posted
The short never worked for me.

 

What error do you get?

 

Does it still error with the above post?

  • 3 years later...
Posted

I figured I would revisit this older post of mine to thank LeeMac for the above mentioned lisp routine. I have been using it for several years and I love it.

 

Now I have discovered how to attach blocks to Multileaders with attribute text inside them. This is the time I miss my dear Renum lisp. It works on regular blocks and such, but not multileaders...

 

I am working with hundreds of these Weld Joint Number multileaders and I have to change them one by one. It takes quite awhile.

 

I was hoping someone could maybe adjust the current "renum" lisp I have to work on multileaders as well. I have attached the block I am using for the multileader.

 

any help would be great. Thank you.

Weld Joint Number.dwg

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