Disabling file name selection in file save dialog

Disabling file name selection in file save dialog

Anonymous
Not applicable
424 Views
1 Reply
Message 1 of 2

Disabling file name selection in file save dialog

Anonymous
Not applicable

I'm using the file dialog snippet as the foundation for a save as dialog box for saving a new copy of my template assembly to a project folder. Is there a way to disable the ability to click on a file in the window which puts that filename in the input box? The assembly file name is standardized and pre-"calculated" by my code and its a decent hassle if you accidentally click another file because the user would either have to rewrite the file name by hand, or cancel out of the dialog box and re-navigate to the project folder.

 

 

0 Likes
425 Views
1 Reply
Reply (1)
Message 2 of 2

Vladimir.Ananyev
Alumni
Alumni

If document file name is pre-"calculated" you don’t have to use Save As dialog box.  You may set Document.FullFilename property with calculated full file path and call Save method.

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes