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

Where is the type library for Illustrator?

Community Beginner ,
Sep 08, 2023 Sep 08, 2023

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?

TOPICS
Scripting , SDK
804
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 ,
Sep 08, 2023 Sep 08, 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

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 ,
Sep 08, 2023 Sep 08, 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.

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 ,
Sep 08, 2023 Sep 08, 2023

awesome, are you using C# then? 

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 ,
Sep 08, 2023 Sep 08, 2023
LATEST

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.

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