• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to set default save path

New Here ,
Jul 18, 2018 Jul 18, 2018

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.

TOPICS
SDK

Views

408

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 19, 2018 Jul 19, 2018

Copy link to clipboard

Copied

LATEST

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines