PDA

View Full Version : The _SAVE command



Patriiick
2006-10-22, 02:56 PM
In the AUGI wishlists ballots, one suggestion is to Save as a copy:

The ability to save a drawing using the saveas command, and keep the old drawing open, saving the new drawing as a copy of the old drawing
Submitted By: Brenda Richardson

But this feature already exists, it's the command line _SAVE

Opie
2006-10-22, 03:32 PM
The intent of the wish is to save the current drawing with a new name AND keep the original and the new drawings open. The _SAVE command only keeps the original drawing open.

rkmcswain
2006-10-22, 09:10 PM
The intent of the wish is to save the current drawing with a new name AND keep the original and the new drawings open.

...and I sent a lisp example of how to do this to Brenda as the thread was closed....

Here you go.



(defun C:SAVE2 (/ test *acad-docs* i fn)
(if (eq 0 (getvar "SDI"))
(progn
(vl-load-com)
(setq *acad-docs*
(vla-get-Documents (vlax-get-acad-object))
i 1
)
(while (not test)
(setq fn (strcat (getvar "dwgprefix")
"Copy "
(itoa i)
" of "
(getvar "dwgname")
)
)
(if (not (findfile fn))
(setq test T)
(setq i (1+ i))
)
)
(command "._SAVE" fn)
(vlax-invoke-method *acad-docs* "Open" fn)
(vlax-release-object *acad-docs*)
(princ)
)
)
)

BrenBren
2006-10-23, 12:19 PM
^^ what they said :)

Seriously, yes, I wanted to be able to keep both the original drawing and the copy of the original drawing open, and RK's routine does just that and has, over the past few weeks, worked well for me and saved me time :)

Patriiick
2006-10-25, 01:21 PM
The intent of the wish is to save the current drawing with a new name AND keep the original and the new drawings open. The _SAVE command only keeps the original drawing open.

No this is not what she said, read again her message...

BrenBren
2006-10-25, 01:23 PM
No this is not what she said, read again her message...

From the original wish


Description: I would like an option to save a copy as. This would work similar to the saveas command, but it would keep both the original and the new drawing open.


I'm not sure how there can be any misunderstanding about this. It is quite clear.

I wanted a routine that would save a drawing as a new drawing and keep both drawings open.

I was the original poster, I know what I would like, but thanks. The routine that RK worked fine, and it is still on the wish list as it is not included in AutoCAD.

You can read through the thread attached to the wish for any clarifications.

Thanks

Opie
2006-10-25, 02:11 PM
No this is not what she said, read again her message...
I have read her wish. I have also been in contact with her on her wish to verify what she wants. It is not currently a feature of AutoCAD and is therefore an approved wish for voting.

Patriiick
2006-10-28, 11:34 AM
I have read her wish. I have also been in contact with her on her wish to verify what she wants. It is not currently a feature of AutoCAD and is therefore an approved wish for voting.

The wish summary does not states that she wished both drawings are left open. The wish description states it but the check box to vote for this wish is near the summary, not the description. I therefore suggest either to display the description and the summary or to indicate clearly that reading the description is needed. This will avoid future confusions, thanks.

jaberwok
2006-10-28, 11:44 AM
Hi Patrick.
I pointed out at the time that the summary did not match the full description.
~shrugs~
Just one of those things.

BrenBren
2006-10-28, 06:44 PM
The wish summary does not states that she wished both drawings are left open. The wish description states it but the check box to vote for this wish is near the summary, not the description. I therefore suggest either to display the description and the summary or to indicate clearly that reading the description is needed. This will avoid future confusions, thanks.

The summary is just that, a quick summary of what the wish is. If I were to include the complete description in the summary, it wouldn't be a summary, would it? The point of having the summary is to get an idea about the wish, and if you want to see further about it, you click the link and it opens the thread, where you can find additional information about the wish - always a good idea to know all the facts first.