Whenever I call any of AIDocumentSuite->GetDocument(), AIArtSuite->NewArt() or AIArtSuite->GetInsertionPointForCurrentDrawingMode() I get NoDocumentErr in return. I run these calls inside a callback function that is called upon user input in a text field inside a panel.
Reading through the SDK documentation I would expect Illustrator to execute any activities on the current open document. I wonder what I could have missed.
My current code is based on the EmptyPanel from SDk samples.