Automate SMath

Automate SMath - Is there a way to automate SMath? - Сообщения

#1 Опубликовано: 27.04.2019 14:31:46
scudelari

scudelari

0 сообщений из 6 понравились пользователям.

Группа: 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 Опубликовано: 28.04.2019 05:54:25
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 28.04.2019 06:21:44
scudelari

scudelari

0 сообщений из 6 понравились пользователям.

Группа: User

Hi Davide,

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

- Rafael
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений