Display full version of the post: LISP routine to change drawing name

jasonb_880
05.08.2014, 15:06
Hi,I'm looking for some help with creating a routine to do a "save as" command to a specific location as per floor number and zone which can be found on the title section of the drawing as plain text.I've been messing around with vlax-get-property 'TextString but I'm having no luck as yet.Previously I have used commands similar to this:(command "_.saveas" "2010" (strcat "A:\\Folder\\Folder\\"(GETVAR 'DWGNAME)))But what I need is the drawing to save as A:\\Folder\\Level "levelno"\\DWG-"zone"-"levelno"-"revisionnumber".dwg(info as on title block)hope that makes sense!Any help is much appreciated.Thanks