View Full Version : Dynamically linking Text
keng000
7th Nov 2008, 07:26 am
Would anyone know how to make text linked between two “Layouts” I’m trying to setup a drawing that uses one Layout for tables. I then want to reference (dynamically link) the data within a Cell to update text on other Layouts?
Can this be done; I’m going prematurely gray on the few hairs I have left.
Thanks, Ken :?
Dipali
7th Nov 2008, 08:38 am
I am not sure because have not used full version for a while. but if you use attributes for your data, than you can use field in other layout, linked with attributes in previous layout.:huh:
Some one please corrent me If I am wrong.
asos2000
7th Nov 2008, 08:55 am
http://www.cadtutor.net/forum/showthread.php?t=28660
Post #2
nocturne00
7th Nov 2008, 09:09 am
http://www.cadtutor.net/forum/showthread.php?t=28660
Post #2
Dont think it works.
OP is trying to create a link between a value in a table cell to a Text(w/c I think a Field would accomplish) in another layout, Problem is, I cant find an available field expression that targets the value on a specific table cell. I was having the same thoughts as Dipali on using an Attribute as a Cell value but cant find a way to insert an attribute in a table.
I think a specific Field or Diesel could do this with the right code :?
keng000
7th Nov 2008, 08:18 pm
The idea (link) above works only within the same layout or if contained in the same model. Any other ideas?
Targeting between layouts seems to be the major problem.
keng000
7th Nov 2008, 08:21 pm
How about doing it with just text? Sorry for the delay in responding, I'm in the US (Boulder, Colorado).
Thoughts?
keng000
7th Nov 2008, 09:01 pm
Had another thought. Is it possible to embed a variable within a drawing? This way it could be referenced throughout. It would require a method for updating the source.
Possible Procedure:
1) Text/table with data value
2) Create new drawing Variable or update from #1 above
3) Then I could reference the variable with Field function throughout.
So… does anyone know how to create a variable that is isolated to a drawing on the fly?
asos2000
8th Nov 2008, 08:07 am
Hello all
I'll not post any reply until be sure that is correct
see attached,
A file has 3 links between model and 2 layouts using the same way
make the change in text
and you can copy and past that linked text at other drawing and match proprietaries too
May be your AutoCAD has a special setting we don't know
Hasan
keng000
10th Nov 2008, 05:57 pm
It looks like that did the trick. Correct me if needed.
This is how it works. Field | Objects | [select object] | Contents [copy formula, paste as text]
Detailed procedure:
1. Create text to be referenced in ANY Layout/Model space.
2. Go through the motions of creating a field, referencing the text in step #1. Copy the formula created when selecting the Object, this will retrieve the object's ID.
3. Switch to the desired/target Layout/Model space.
4. Enter the formula as "text".
It seems so simple, now that you got it working. :D
As a note, it also works with table cells. See below where the desired data is from CELL “B6”. Field | Objects | Formula | Cell [select table cell | copy formula, paste as text]
e.g. %<\AcExpr (Table(%<\_ObjId 2129832472>%).B6)>%
Thanks
asos2000
10th Nov 2008, 07:18 pm
Yes Keng000
and there are system variables are useful for dealing with the field
- fieldeval
Controls how fields are updated. The setting is stored as a bitcode using the sum of the following values:
Controls how fields are updated.
0 Not updated
1 Updated on open
2 Updated on save
4 Updated on plot
8 Updated on use of ETRANSMIT
16 Updated on regeneration
- FIELDDISPLAY
Controls whether fields are displayed with a gray background. The background is not plotted.
0 Fields are displayed with no background
1 Fields are displayed with a gray background
Find attached a several sample for field
Hasan Asos
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.