PDA

View Full Version : Diesel code for adding drawing path to RText



ted.evans
2004-09-29, 04:52 PM
We use RTEXT for our plot stamp. I need to add code so the drawing path will appear but can not find the code for this. Is there code and if so where can I find it.

Thanks in advanced

mjfarrell
2004-09-29, 05:34 PM
Ted a search of the help topic (Catalog of DIESEL Functions) will
return all the Diesel functions to you.

You will need a getvar statement $(getvar,dwgname)

rplato
2004-09-29, 05:56 PM
Actually, you need $(getvar, dwgprefix) to get the path.

ted.evans
2004-09-29, 07:27 PM
Got it, thanks guys.

jmctamney
2009-11-10, 05:34 PM
Never thought I'd need help from an 5 year old thread but here goes. I am using RTEXT to add a file name in the title for sections since we have a seperate drawing file for each one and have them xrefed into one "plot sheet". I know, crazy but they are the clients standards. My problem is when xrefing the section into the plot sheet the RTEXT reads the file name of the plot sheet, not the section. Any ideas?

scott.wilcox
2009-11-10, 09:13 PM
Try looking here (http://forums.augi.com/showthread.php?t=11533).

jmctamney
2009-11-10, 10:06 PM
Didn't help. I have the code to do what I want and it works great in the section drawing. I just need to keep it from reading the file name of the plot sheet once the section gets xrefed into it.

irneb
2009-11-12, 09:11 AM
Didn't help. I have the code to do what I want and it works great in the section drawing. I just need to keep it from reading the file name of the plot sheet once the section gets xrefed into it.Unfortunately that's what's going to happen. Fields don't use the XRef DWG file's properties, only the current file's. There's no way of getting around this, sorry.

irneb
2009-11-12, 09:14 AM
What you could do in Fields (don't know about RText) is to use Object properties in the layout drawing, instead of Diesel in the XRef. Then shown the XRef's Path property.

jmctamney
2009-11-12, 12:14 PM
I figured I was S.O.L. using RTEXT just wanted to make sure. Unfortunately the client is using Acad 2k4 so we are not able to use fields unless there is a workaround someone knows about that can make it compatible with 2k4. What I'm trying to do is mainly for our in house coordination to make sure we have the correct files xrefed into the plot sheets and such and it's not even visible when printed but this client is a stickler and doesn't like any sort of deviation from thier standards.

irneb
2009-11-12, 12:29 PM
Does the RText need to update after you've given the DWG file to the client? If not, you could use the Fields and simply convert them to notmal text when preparing the 2004 version DWG ... this could be automated through Lisp.

jmctamney
2009-11-12, 12:35 PM
There is where I'm a little bit confused. It just occured to me that we save all our drawings in 2k4 format (we have a few clients on old versions) and I use fields all the time without any ill effects. To answer your question, no we don't need them to update once they are in the clients hand but, thats a big hassle to open 15-20 sections & details per sheet to convert the fields unless there is a way to do it from the plot sheet. My lisp skills are extremely limited.

irneb
2009-11-12, 12:57 PM
I think it might not even be necessary to "convert" them. You state you save normally to 2004 format ... in which case it "should" be fine as opening the DWG in 2004 simply shows the text and ignores all the dictionary items which constitute the field inside the text.

So maybe I've made a big hoo-haa about nothing, as you probably don't need to do anything. Unfortunately I can't test this to confirm as I've last seen a 2004 version about 3-4 years ago.

jmctamney
2009-11-12, 01:00 PM
only one way to find out I guess. I'll see what our CAD manager feels about it since we're already treading on thin ice with this client. Thanks for the help

edit: Just did a little research and it looks like your right. Accordint to this post (http://forums.augi.com/showthread.php?t=43190&highlight=2004), fields look and act like regular text in r2004 and earlier.