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

GetFileNameNoExt returns empty in CC 2026 SDK

Explorer ,
Nov 13, 2025 Nov 13, 2025

Hi All,

I'm trying to get the active Illustrator document name in my plugin.
The following code works perfectly in Illustrator CC 2024 and CC 2025, but it fails in CC 2026 — GetFileNameNoExt() returns an empty name.

 

    ai::FilePath path;
    ASErr err = sAIDocument->GetDocumentFileSpecification(path);
    if (err == kNoErr && !path.IsEmpty()) {
        ai::UnicodeString name = path.GetFileNameNoExt();
        std::string s = name.as_UTF8();
        if (!s.empty()) return s;
    }

 

Is there something new we are supposed to call before accessing file information?

Any help would be greatly appreciated.

 

Thank you,
Chetan

TOPICS
SDK
74
Translate
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

correct answers 1 Correct answer

Explorer , Nov 13, 2025 Nov 13, 2025

Sorry, my mistake — the issue was on my side.
The files included in my project were accidentally linked to the CC 2025 SDK folder instead of the CC 2026 SDK. After correcting the SDK paths, everything works as expected.

Thanks everyone!

— Chetan

Translate
Adobe
Explorer ,
Nov 13, 2025 Nov 13, 2025
LATEST

Sorry, my mistake — the issue was on my side.
The files included in my project were accidentally linked to the CC 2025 SDK folder instead of the CC 2026 SDK. After correcting the SDK paths, everything works as expected.

Thanks everyone!

— Chetan

Translate
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