NoDocumentErr when creating new art

New Here ,
Jan 15, 2021 Jan 15, 2021

Copy link to clipboard

Copied

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.

TOPICS
SDK

Views

102

Likes

Translate

Translate

Report

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

Participant , Jan 19, 2021 Jan 19, 2021
Did you establish app context?

Likes

Translate

Translate
Participant ,
Jan 19, 2021 Jan 19, 2021

Copy link to clipboard

Copied

Did you establish app context?

Likes

Translate

Translate

Report

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
New Here ,
Jan 23, 2021 Jan 23, 2021

Copy link to clipboard

Copied

LATEST

Retrieving app context did actually fix this. Thank you!

Likes

Translate

Translate

Report

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