Smath Control

Smath Control - Messages

#1 Posted: 3/14/2012 6:05:01 AM
Infinity

Infinity

3 likes in 30 posts.

Group: User

Andrey,

is there a way how I can force an evaluation of the worksheet trough a function from a plug-in?
I found that within RegionEvaluable there is a function called RequestForEvaluation(). I tried to call this function but did not succeed.

I want to have the ability to force a recalculation of the entire worksheet when a defined condition is met.

Next question: Is there a way to close SMath from a plug-in function?
In my scenario I want to open Smath with a defined worksheet, read input parameters from a file, let SMath do some calculations, write back the results to a file and close SMath.

Thanks for your help in advance and for the great program!

Regards,
Infinity


#2 Posted: 3/18/2012 11:22:47 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello.

Wrote

is there a way how I can force an evaluation of the worksheet trough a function from a plug-in?
I found that within RegionEvaluable there is a function called RequestForEvaluation(). I tried to call this function but did not succeed.

I want to have the ability to force a recalculation of the entire worksheet when a defined condition is met.


Try this:
this.Parent.StartEvaluation(0);

Wrote

Next question: Is there a way to close SMath from a plug-in function?
In my scenario I want to open Smath with a defined worksheet, read input parameters from a file, let SMath do some calculations, write back the results to a file and close SMath.


There is no built-in ability for such actions, but you can always try to kill SMath Studio process from your instance of the plugin.

Regards.
  • New Posts New Posts
  • No New Posts No New Posts