Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
awesome, are you using C# then?
Copy link to clipboard
Copied
I am for this. And, now I'm done with the tool. By the way, I was asking about the SDK. I shouldn't have to install Illustrator to write a bit of code. It wasn't in the SDK I downloaded surely the .aip files are available for downloading. Testing is another matter, of course.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now