NoDocumentErr when creating new art

New Here ,
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

71

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

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

Likes

Translate

Translate
Jump to answer Jump to answer
Participant ,
Jan 19, 2021

Copy link to clipboard

Copied

Did you establish app context?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
MerlinDE AUTHOR LATEST
New Here ,
Jan 23, 2021

Copy link to clipboard

Copied

Retrieving app context did actually fix this. Thank you!

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more