Rank: Newbie
Groups: Registered
Joined: 27/04/2019(UTC) Posts: 6
|
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.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/04/2019(UTC) Posts: 6
|
Hi Davide,
Thank you so much for that. It was really what I was looking for!
- Rafael
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.