PDA

View Full Version : Text linking whithin autocad 2006 ?



Nippon
20th Jul 2006, 01:14 pm
Is there a function that I can use as a text variable within the same drawing? What I would like is a text variable that I can use in blocks, in text lines and so on.

So when I change the text in one location all other location with that variable changes automatically.

Of course it would be nice if only the text changed, not the format/size of the text.

The plan is to use variables like this on a lot of blocks/text in the same drawing.

Is there a function that can solve this, included in 2006. Or do I need something extra?

Maybe this is easy.... :)

Nippon

TTALBOT
20th Jul 2006, 01:42 pm
You can always use Find and Replace command. It's located under the edit pulldown under Find. It allows you to find and replace text in a selection set, or the entire drawing. I think that might help you. For example, if you have a sheet number S1.01 that you want to change throughout the drawing to S2.01 you can use find and replace.

Nippon
20th Jul 2006, 02:05 pm
Tanks for your feedback TTALBOT.

But what I'm looking for is text variable function like in VB.

Let say I have 2 text variables. One named A and the other B.

A is used in 100 different locations on the same drawing and B in 200 different locations on the same drawing.

So my wish is that when I change the content of the text variable A, it will automatically change on all other locations on the drawing. Inside blocks, text boxes and so on.

The same for B but of course independently of A

Is this possible?

Hope so... :)

Nippon

TTALBOT
20th Jul 2006, 02:09 pm
Sounds like you need a LISP command. One of the more experienced LISP guys might be able to tell you where you can pick that up, or just how to write your own. AFRALISP.net is a good place to start. I'm still learning myself.

CyberAngel
20th Jul 2006, 02:23 pm
Maybe I'm oversimplifying or overlooking something, but couldn't you use a block consisting of your text? Change the block, change the text, and all the instances change.

Alan Cullen
24th Jul 2006, 12:16 am
Use BEDIT to change what you want in the block. All instances of the block will be changed similarly.
But....remember your original block will be changed.

Nippon
24th Jul 2006, 07:07 am
Use BEDIT to change what you want in the block. All instances of the block will be changed similarly.
But....remember your original block will be changed.

But I need text outside blocks to change also. So the question is how to make a variable that I can use for this...

Nippon

gcp310
24th Jul 2006, 07:40 am
Sounds like the FEILDS command might come in handy for you.

you can make your own custom FEILDS. I use them in my titleblocks and they save me a heap of time.

G

f700es
24th Jul 2006, 01:06 pm
Sounds like the FEILDS command might come in handy for you.

you can make your own custom FEILDS. I use them in my titleblocks and they save me a heap of time.

G

Hey G, could you go into furthur detail on this? I would like an auto date field in a title block. Could this be done?
Thanks

gcp310
24th Jul 2006, 10:36 pm
Hey G, could you go into furthur detail on this? I would like an auto date field in a title block. Could this be done?
Thanks

:geek:

Well F7, to answer your question, yes, auto date and auto file location are just a few of the benefits of using Feilds. By using Feilds in attributes and titleblocks, it speeds up an otherwise time consuming process.

Other things like Viewport scale, User ID and Plottted date can all be used as a Feild.

Look up Fields in the autocad help section for details

:lol:

G

Nippon
27th Jul 2006, 01:04 pm
Sounds like the FEILDS command might come in handy for you.

you can make your own custom FEILDS. I use them in my titleblocks and they save me a heap of time.

G

Yes this works! Tanks! :)

But one thing more: Is it possible to format the field text so it shows in two or more lines?

The problem I have now is that I have no room for the long text string.

Is there a way of changing the content of the field text without going in to drawing properties?

Chrisjpritchard
28th Feb 2007, 08:50 pm
Hi

Did you get any solution to your question as I want to do the same thing

Seann
28th Feb 2007, 11:50 pm
Hi

Did you get any solution to your question as I want to do the same thing

Try here:
http://heidihewett.blogs.com/my_weblog/2006/03/automating_text.html

This will give you some ideas on what they were talking about.