Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more