Message 1 of 4

Not applicable
07-22-2019
07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been trying to make a function do a save as, and rename the drawing to something that contains part of the old drawing name. The code I have been using to save as is this.
(defun saveas () (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (vla-SaveAs doc "abcde.dwg") )
The drawing was previously called "12345 - fghij", and I want to rename it to be "12345 - abcde". I have been trying to use vl-string-translate, but I can't seem to get the syntax right. Any help would be greatly appreciated.
Thanks!
Solved! Go to Solution.