How to get the Bounds of Art and get the current active document in illustrator 2019 cc SDK.
I am new to plugin development for illustrator 2019 CC SDK. I got matching through
sAIMatchingArt->GetMatchingArt(&pathSpec, 1, &matching, &artCount); and traversed it to get Art.
I made a type check on the Art: sAIArt->GetArtType(art, type) != kNoErr, indicating that this is an invalid Art. So I cannot get the Bounds of this Art.
At the same time, when I want to get the current active document, the returned result is "doc" error. AIDocumentHandle activeDoc = nullptr;
ASErr err = sAIDocument->GetDocument(&activeDoc);
The result of err is "doc", which means I cannot get the current active document.
