How to call to open another plugin programatically

This topic has been viewed 2816 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
MarioDLCO
Posts: 7
Joined: Tue Jan 14, 2025 2:04 pm
Country: México

How to call to open another plugin programatically

Post by MarioDLCO »

How do you call another installed plugin to run via code?
Regards.
Every Day is for Learn...
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: How to call to open another plugin programatically

Post by Daniels118 »

This isn't possible through public APIs. You may use Java reflection to access private code and reach other plugins.
If the plugins which have to communicate are both yours, you may use the classes in the package it.ld.sh3d.messaging, which you can find in the plugins Wirings and 3D dimension lines, they provide a pub/sub style API for cross-plugins communication.
MarioDLCO
Posts: 7
Joined: Tue Jan 14, 2025 2:04 pm
Country: México

Re: How to call to open another plugin programatically

Post by MarioDLCO »

Daniels, thanks.
I will try.
Every Day is for Learn...
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest