Print Page | Close Window

LISP routine to change drawing name

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10600
Printed Date: 19.Apr.2026 at 12:41


Topic: LISP routine to change drawing name
Posted By: jasonb_880
Subject: LISP routine to change drawing name
Date Posted: 05.Aug.2014 at 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




Print Page | Close Window