Jump to content
Developer Wiki and Function Reference Links Read more... ×
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×