• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

NoDocumentErr when creating new art

Explorer ,
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

223

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?

Votes

Translate

Translate
Adobe
Participant ,
Jan 19, 2021 Jan 19, 2021

Copy link to clipboard

Copied

Did you establish app context?

Votes

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

Copy link to clipboard

Copied

LATEST

Retrieving app context did actually fix this. Thank you!

Votes

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