Skip to main content
Known Participant
July 6, 2023
Question

Error while building SDK Sample Project in Windows System

  • July 6, 2023
  • 2 replies
  • 881 views

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!

This topic has been closed for replies.

2 replies

Legend
July 7, 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.

Community Expert
July 7, 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-studio-debugger?view=vs-2022

-Manan

-Manan
Known Participant
July 8, 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!

 

Community Expert
July 9, 2023

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

-Manan