Skip to main content
Participant
September 8, 2023
Question

Where is the type library for Illustrator?

  • September 8, 2023
  • 4 replies
  • 844 views

I follwed a link to a page where I downloaded the latest Adobe Illustrator 2023 SDK. The page also has a download for VBScript. The SDK doesn't include a type library which I want to use to write some code to automate AI on a Windows machine. The VBScript download button just opens a Scripting Reference document.

Where can I find the type library?

This topic has been closed for replies.

4 replies

CarlosCanto
Community Expert
Community Expert
September 8, 2023

the type library is in this file

"C:\Program Files\Adobe\Adobe Illustrator 2023\Plug-ins\Extensions\ScriptingSupport.aip"

 

are you planning on writing vbscripts? have a look at the included sample scripts

C:\Program Files\Adobe\Adobe Illustrator 2023\Scripting\Sample Scripts\Visual Basic

Participant
September 8, 2023

Hi Carlos. One of my coworkers has Illustrator on their box. So, I was able to use Visual Studio (they have it too) and create a quick .NET app. I added a COM reference to the Illustrator lib. That let me find the ScriptingSupport.aip file. I can run OleView and view it as a type library after pulling it to my box along with all the other .aip files in the folder.

 

I had to register the typelib on my box and after that I was able to add the reference to my project. So, I am on my way.

 

I am writing a tool that finds all the .ai files in a folder and subfolder which it will then use AI to convert to .svg using the Export API. We have a lot of those files in our company so automating the task is desriable. I am waiting for my download (subscription) to Illustrator but I'm impatient. I have code in place that fires up Illustrator and makes the Open and Export calls but without the reference it won't compile, of course. I'll be compiling shortly now tat I have the reference to the typelib added.

CarlosCanto
Community Expert
Community Expert
September 8, 2023

awesome, are you using C# then?