Jump to content
MTRobin

Save File with Script

Recommended Posts

Can someone walk me through how to use a script to save a file to a user defined location? I am creating a script and the last piece of the puzzle is to save a copy of the current file. I would like a pop up window to appear so the user can select the file destination.

 

I have tried all the procedures and functions and I cannot get it to work.

 

Thank you

 

Maxwell

Share this post


Link to post

That worked great! Thank you. Do you know of a way I could save as, and it will save the new document with a new name in the same location as the current one?

Share this post


Link to post

I think your best bet for that would be to use Python. There are a bunch of options for working with file and folder structure using os (https://docs.python.org/3/library/os.html).

 

I wrote a script to snapshot an open file to a subfolder in the current directory using os. You can definitely do what you're looking for, but not necessarily with Vectorscript.

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...