Hello again everyone.
Okay, I'm trying to learn how to put the folder name + dwg name into a string and then have the user place it in the prper position on a drawing. We currently use DTEXT and type the same folder name over and over again in hundreds of drawings. Is this somehting that I can easily do or is it a task not worth investigating?
Thanks in advance !
Xi
Ok, I can see that "Field" can be used. I just upgraded to 2007 so i was not aware of this command.
How could I customize the command so that I have the folder name & drawing name (minus the prefix) with a "-" spearating the 2 names?
Thanks,
Xi
This might get you started. A Simple solution showing functions.
(setq a (getvar "dwgprefix"))
(setq b (getvar "dwgname"))
(setq c (strcat a b))
(setq d (vl-filename-directory c))
(setq e (vl-filename-base d))
(setq f (vl-filename-base c))
(setq g (strcat e "-" f))