Jump to content
Developer Wiki and Function Reference Links ×

Saving a Document - Save a Copy As


Recommended Posts

Is it possible to save a document to a different file without user intervention that will work in the background?   I currently have one, File Name - Master.vwx which is my WIP always current version.   I'm writing a script that will update the Revision # & Date in the title block (I have this working), but then I want it to save the document with File Name - V#.vwx in a /revisions folder or similar.    

 

I can get it to sort of do this with the SaveActiveDocument function, however, Vectorworks automatically opens the new file,  which I don't want.  I want to keep the Master WIP version loaded.   I tried adding a second SaveActiveDocument call after this to re-save the original file name and re-open it,  but this fails.  I assume it fails because that document already exists and you can't overwrite it.    Is it possible to force the function to overwrite an existing document?

 

Basically I want the functionality of Save A Copy As without user intervention if possible.     Anyone have any suggestions? 

Edited by Wes Burrows
  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...