Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Scudelari  
#1 Posted : 27 April 2019 20:31:46(UTC)
Scudelari

Rank: Newbie

Groups: Registered
Joined: 27/04/2019(UTC)
Posts: 6
Luxembourg

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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 28 April 2019 11:54:25(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
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
Offline Scudelari  
#3 Posted : 28 April 2019 12:21:44(UTC)
Scudelari

Rank: Newbie

Groups: Registered
Joined: 27/04/2019(UTC)
Posts: 6
Luxembourg

Hi Davide,

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

- Rafael
Users browsing this topic
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.