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

Error while building SDK Sample Project in Windows System

Community Beginner ,
Jul 06, 2023 Jul 06, 2023

Hi all,

           While running the “DrawArt” sample project from Adobe Illustrator 2023 SDK using Visual Studio in windows system, getting error as “DrawArt.aip” is not a valid Win32 application as shown in below screenshot.

 

I m using,

Python 3.10 

Adobe Illustartor 2023

Visual Studio 2022

Windows 10 Pro with 64-bit operating system

 

Can someone please help!

TOPICS
SDK
548
Translate
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
Adobe
Community Expert ,
Jul 06, 2023 Jul 06, 2023

HI @RASHMI27093105mst7,

It seems you are trying to run the aip file produced by compiling the project. This is not how it works, the aip file is a plugin which is executed within the Illustrator application. So what you need to do is copy this aip file and place it within the Plugins folder of the Illustrator application installation folder and then launch Illustrator.

If you want to then debug your plugin, you can attach the debugger from Visual Studio to attach to Illustrator.

https://learn.microsoft.com/en-us/visualstudio/debugger/attach-to-running-processes-with-the-visual-...

-Manan

Translate
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
Community Beginner ,
Jul 07, 2023 Jul 07, 2023

Hi Manan Joshi,

Thank you for the update!

While building the “DrawArt” project in Visual Studio 2022, getting error as “DrawArt.aip is not a valid Win32 application”.  But “DrawArt.aip” file will get created inside Output folder of Adobe Illustrator 2023 SDK. Then i have copy this aip file and place it within the Plugins folder of the Illustrator application installation folder. After this, if i open Illustrator at that time Illustrator was quitting.

Please let me know how can i solve this problem!

 

Translate
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
Community Expert ,
Jul 08, 2023 Jul 08, 2023
LATEST

How do you build the project? Can you post the steps, some screenshots etc. It seems you are building and then running the project which is causing the debugger to try and launch the aip file(due to the executable path not set to the Illustrator exe) and hence the error.

What is the size of this aip file. Does any other projects output load for you. Also, make sure that you are using the recommended version of Visual Studio and the build toolset/sdk.

-Manan

Translate
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
LEGEND ,
Jul 07, 2023 Jul 07, 2023

You cannot "run" a plug-in. You have to build it, then install the plug-in to Illustrator in the usual way. Then you run Illustrator, and if you have built it correctly, your plug-in loads and can add menus etc. to Illustrator.

Translate
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