Smath Control

Smath Control - Сообщения

#1 Опубликовано: 14.03.2012 06:05:01
Infinity

Infinity

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

Группа: 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 Опубликовано: 18.03.2012 11:22:47
Andrey Ivashov

Andrey Ivashov

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

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений