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

Call custom C++ plugin methods from C# application.

Contributor ,
Aug 29, 2017 Aug 29, 2017

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

TOPICS
SDK
1.1K
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
Advocate ,
Aug 30, 2017 Aug 30, 2017

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?

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
Contributor ,
Aug 31, 2017 Aug 31, 2017

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.

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
Advocate ,
Aug 31, 2017 Aug 31, 2017

You can use sendScriptMessage, see third reply:

sendScriptMessage

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
Contributor ,
Aug 31, 2017 Aug 31, 2017
LATEST

Thanks! I will try this.

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