Copy link to clipboard
Copied
I generate new documents with my plugin. I can set its names with IDocument::SetName but this only sets default name when saved. I would also like to set default path. Ideally this would be able to set independent paths for each document. I found IFileDialogPaths so far, this is available from kSessionBoss but SetSaveDialogPath takes ClassID as a parameter and there is no documentation whatsoever and I can't make it to work.
I work with SDK2017.
Copy link to clipboard
Copied
Try this or else look at ISaveFileDialog which has more documentation and example code snippets in the SDK
InterfacePtr<IFileDialogPaths> iFileDialogPaths(GetExecutionContextSession(), UseDefaultIID());
PMString savePath;
iFileDialogPaths->SetSaveDialogPath(kSaveFileDialogBoss, savePath);