Copy link to clipboard
Copied
Hi All,
I have a custom C++ plugin that loads in Illustrator CC 2017.
I have another application in C# and I am able to call Illustrator methods by including type library (tlb) in my project. This works fine.
Now I want to call the methods of custom C++ plugin from C# application. Is there a way to update type library so that it includes methods from my plugin? Or any other way to call custom methods of plugin.
Thanks for any help,
VG
Copy link to clipboard
Copied
This is not really an Illustrator SDK question. You would probably get better answers asking in a C# forum:
I have a C++ dll and a C# application. How do I call functions in the C++ dll from the C# application? Do I need to create a type library?
Copy link to clipboard
Copied
Thanks for the input.
I have been working in c# application and using COM interface to do certain things in illustrator but I am seeing some performance issue.
I found out that there is a method DoJavaScriptFile which is used to call the script. so I am wondering may be there is a way to call the plugin methods.
Copy link to clipboard
Copied
You can use sendScriptMessage, see third reply:
Copy link to clipboard
Copied
Thanks! I will try this.