View Full Version : Calling for a variable in an Attributed Block?
stusic
2006-06-26, 07:42 PM
I am looking to see if there is a way to call for a variable in an attributed block.
I've got a sheet border and in it, it must contain the CAD filename. I normally do a "Saveas" and append the filename with my current version (similar to the way 3DS will do an incremental save). I was hoping there would be a way to call for the filename in the attributed block we use.
Any help or suggestions would be great.
Thanks All,
Since FIELDS did not become available until 2005, you may need to use RTEXT.
T.Willey
2006-06-26, 08:02 PM
Or you can write a routine to update the attribute per the drawing name. I have one that does this per our title block.
Or you can write a routine to update the attribute per the drawing name. I have one that does this per our title block.
Do you execute this routine manually or is it executed via a reactor?
T.Willey
2006-06-26, 08:11 PM
I do it manually. It's easy to type, and we don't change our drawing names really, and if we do, I just run it in a script, since I have had trouble with attribute when using ObjectDBX.
I guess you could setup a reactor to check it when closing, or saving, and then update if needs be.
stusic
2006-06-26, 08:35 PM
Since FIELDS did not become available until 2005, you may need to use RTEXT.
I don't want to run a routine, because for it to be updated, whoever would need to make sure to include that routine when print it (I can see many other problems arising from that).
What is this RTEXT? I've never heard of it and AutoCAD Help doesn't say anything about it...
T.Willey
2006-06-26, 08:38 PM
Rtext is from express tools. I have never used it though.
Rtext is from express tools. I have never used it though.
I don't use it either, but since you are not on a newer version, I suggested it.
stusic
2006-06-26, 09:16 PM
Since FIELDS did not become available until 2005, you may need to use RTEXT.
After a bit of figuring it out, I used RTEXT with Diesel to make it retrieve the variables I need (filename and layout tab) and it works like a charm. It's not attributed, but it doesn't really need to be. I just added it to the same attributed block. Easy as pie. Just wish I could justify it the way I want; oh well, you can't have everything...
Check it out if you want - insert it into a drawing and do a "saveas" and rename your tab (insert it in paperspace). Do a regen and *poof*! Done!
Thanks!
After a bit of figuring it out, I used RTEXT with Diesel to make it retrieve the variables I need (filename and layout tab) and it works like a charm. It's not attributed, but it doesn't really need to be. I just added it to the same attributed block. Easy as pie. Just wish I could justify it the way I want; oh well, you can't have everything...
Check it out if you want - insert it into a drawing and do a "saveas" and rename your tab (insert it in paperspace). Do a regen and *poof*! Done!
Thanks!
You're welcome. I didn't see that you needed a program to do what RTEXT already provided.
Thanks for posting what you came up with.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.