Jump to content

formula in text to add


Recommended Posts

Posted

Hi. I'm using AutoCAD 2008. I have a schematic drawing that looks like:

C01-N01

C01-N02

C01-N03

C01-N04

 

Sometimes the C# changes and sometimes the N# doesn't start with 1.

 

Can I put a formula in subsequent text to add 1 so if I change the first line from C01 to C02 all other text with C01 will change to C02?

 

I've been searching and coming up with no answers. Time to turn to the experts. :)

Posted

I have a few VBA & LISP routines I use depending on what I want the final result to be but I haven't found a way to do it directly. One of my routines puts an array of incrementing numbers down which is ideal for numbering terminal blocks. In another you can click a piece of text and the routine will add a value in a particular position. A further one concatenates two pieces of text and copies it to a third piece.

 

More often I just type it by hand. What I keep thinking of doing is a routine where you set the first piece of text and its "rules" and then just click where you want the text to appear. mmmm, maybe I should do it now. No, too busy. I am sure Lee will be along with something as soon as his exams are over.

Posted

AutoCAD's built in Find/Replace should be able to change all the C01s in C02s. Unless if I missed the question.

Posted

I would be inclined to agree with Fuccaro,

Unless we are missing something.

 

If not, maybe this will help you:

http://www.cadtutor.net/forum/showthread.php?t=35234

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