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 Infinity  
#1 Posted : 14 March 2012 13:05:01(UTC)
Infinity


Rank: Member

Groups: Registered
Joined: 19/01/2012(UTC)
Posts: 12
Man

Was thanked: 3 time(s) in 2 post(s)
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


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

Offline Andrey Ivashov  
#2 Posted : 18 March 2012 18:22:47(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Hello.

Infinity 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:
Code:
this.Parent.StartEvaluation(0);


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