Canada
Asked — Edited

Interaction With Other Forms In ARC

Hello,

Let me preface this article by saying I am very new to C#, and it is very likely I am missing something very basic.

I have been playing around with the SDK in an attempt to make a plugin interact with other forms in the ARC. The idea was for the plugin to save some input as variables and start user defined script using the script form.

Adding the variables was fairly easy using the following method:

EZ_Builder.Scripting.VariableManager.SetVariable("$variable", "input"); 

I hit a roadblock when trying to find a way to interact with another form or window in EZ_Builder. To achieve this, I explored the EZ_Builder namespace to no avail.

My first question is there a way of interacting with a form in ARC through the EZ_Builder namespace and, if so, how?

My second idea was to send a ControlCommand to the other window, but I struggled to find the methodology. I did look at "Tutorial 52 - ARC Script Interface Client" but it seemed focused on using TCP connections and not interaction with the client itself.

I would appreciate any guidance the community can give me.


ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

PRO
Synthiam
#1  

The SDK is not used for plugins. Have you seen the plugin tutorial? There is a ControlCommand section on how it works.

If you want to send a ControlCommand to another window, you can use


      EZ_Builder.EZBManager.FormMain.SendFormCommand()

The EZBManager has mostly everything you need.

Here's the link to the plugin tutorial: https://synthiam.com/Tutorials/UserTutorials/146/1

Also, all of my plugins are open source. It might be useful to take a look at some of them to see how i do things.

#2  

Thanks DJ,

Very quick response, I figured it was something easy that I was missing.

[Edit]I will look at your plugins for future reference as well[/Edit]

PRO
Synthiam
#3  

no prob. ask any time as well!