Jump to content

Recommended Posts

Posted

Hi there! I've been looking for a way to sequentially renumber a block attribute on multiple layouts and do the same thing on my other drawings for the same project. I am thinking of running it on a batch program like scriptpro to save some time. I wonder if there's anybody out there who can give me an idea on how to do it. A code perhaps that remembers or save the last attribute value it has changed from the first drawing, increment it by 1 and use that new value for the next drawing and so on to complete the sequential numbering of all the drawings. Any suggestions?

Posted

Just set the increment variable as global and use 1+ to increment.

 

eg.

(setq *Increment* 0)


(setq *Increment* (1+ *Increment*))

Posted

Thanks alanjt for your suggestion.

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