GetFileNameNoExt returns empty in CC 2026 SDK
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
