Automate SMath

Automate SMath - Is there a way to automate SMath? - Mensajes

#1 Publicado: 27/4/2019 14:31:46
scudelari

scudelari

0 me gusta en 6 mensajes.

Grupo: User

Hello Everyone,

First of all, congratulations for such an amazing program.

I would like to ask if there is a way to automate SMath through an external code. I would like to, from a C# .Net program:
1- Open a SMath sheet.
2- Change some input variables.
3- Calculate it.
4- Acquire back the value of some variables.
5- Possibly print the sheet to PDF.

Is there, at least, a way to control (i.e. do these things) the program programatically using the plugins? Because if this is possible, then one may create a listener plugin that would expose this functionality to other programs.

Thank you for the assistance.
#2 Publicado: 28/4/2019 5:54:25
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

My suggestion is to act like for the Run plugin:

  • Create your SMath worksheet with entry data from files, return data calculated by SS to files;
  • Run the worksheet using command prompt (Process.Start in C#);
  • In the external programs, create and read the input/output files;


Alternatively, you can deal with the xml code of the worksheet like done by ghMath plugin.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Publicado: 28/4/2019 6:21:44
scudelari

scudelari

0 me gusta en 6 mensajes.

Grupo: User

Hi Davide,

Thank you so much for that. It was really what I was looking for!

- Rafael
  • Nuevos mensajes
  • Sin mensajes nuevos