Skip to main content
Participating Frequently
January 3, 2013
Question

Illustrator Events not available in VB.NET

  • January 3, 2013
  • 1 reply
  • 1502 views

I'm trying to utilize the Illustrator CS6 Type Library (COM) from VB.NET. I tried creating a basic object and accessing its events as I would other COM objects:

Private WithEvents _aiApp As Illustrator.Application

Private WithEvents _aiDoc As Illustrator.Document

Private WithEvents _aiDocs As Illustrator.Documents

This didn't work. And when I scanned the Object Browser in Visual Studio I wasn't able to find any accessible events in this type library. Does anyone know if this is on purpose because I'm outside the application's context? Is it a consequence of using VB.NET over C# or C++?

If you know please let me know.

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
January 3, 2013

sorry, no events are exposed in Illustrator using scripting, inside or outise of the application context.

Participating Frequently
January 3, 2013

Thanks for the quick reply have you attempted a workaround for this problem to observe a collection or monitor changes to an active document?

CarlosCanto
Community Expert
Community Expert
January 3, 2013

I haven't, are there workarounds to try? I've no clue as what to try.