Jump to content
LauRum

Save File As

Recommended Posts

I made a dialog were the User should push a button an browse for the desired folder and can type in the name of the file he wants to save. Is there something like a standard 'Save As Dialog' i can use that will return path and/or filename? I tried GetFileN but it'll only find existing files.

thank you in advance!

Share this post


Link to post

Thanks! That's what I was looking for.  vs.PutFile(commentStr, defaultStr): return fileName    returns a complete Path. Is there a known reason why i can't use   vs.SaveActiveDocument(filePath):  with this Path?  I know I can't use SaveActiveDocument inside the Dialog, so I've put this line in the Main part, after the dialog is closed with OK.

Share this post


Link to post

Hello, speaking about SaveActiveDocument, this is from my own notes from VW 12 (now is 24, so it was 12 versions ago):

It corresponds to "save as" but without dialog. Saving on the same file path name doesn't work (returns -1), only if the file path is different (returns 0).

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...