[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: Alexor 
Forum » Process Simulator » English » Ideas discussion
Ideas discussion
AlexorDate: Friday, 27.04.2012, 15:05 | Message # 1
Major general
Group: Administrators
Messages: 275
Reputation: 1
Status: Offline
Welcome!
 
MuxDate: Thursday, 04.12.2014, 21:31 | Message # 2
Private
Group: Users
Messages: 2
Reputation: 0
Status: Offline
Hello,

Thanks for this great soft.

Could you add a function to import/export the value of all the items to a file.
We could save the state, do some test, restore the previous values, do some other test, .....
 
AlexorDate: Saturday, 06.12.2014, 15:59 | Message # 3
Major general
Group: Administrators
Messages: 275
Reputation: 1
Status: Offline
Welcome,

Already was thinking about this function. May be next year.

You may use Script.CSharp with something like this:

if((bool)'Internal.Init' == true)
{
    'Internal.Init' = false;
    
    // All values you need to initialize   
    'Internal.Value1' = 324;
    'Internal.Value2' = 7655;
}

Where 'Internal.Init' is internal Item to make initialization works only once. Button panel for this Item also may be useful.
 
MuxDate: Saturday, 06.12.2014, 16:18 | Message # 4
Private
Group: Users
Messages: 2
Reputation: 0
Status: Offline
Thank you for your answer.
I found a way to do it in a simulation object with the API. I use the function mItemBrowser.TotalItemNames to enumerate all the Items and mItemBrowser.readItemValue to read the value. I write all of them to an xml file.
I added two function in the context menu to import & export.
 
AlexorDate: Saturday, 06.12.2014, 18:00 | Message # 5
Major general
Group: Administrators
Messages: 275
Reputation: 1
Status: Offline
Yes, you are right :)! Creating your own simulation object is also the way. Do not hesitate to ask any question about ProcessSimulator and API.

Function, you are asking for, is in my "To do" list now.
 
AlexorDate: Friday, 26.12.2014, 15:19 | Message # 6
Major general
Group: Administrators
Messages: 275
Reputation: 1
Status: Offline
There is new tool - Snapshot,  in version 2.2.5472.
 
rrussinovDate: Sunday, 14.06.2015, 18:27 | Message # 7
Private
Group: Users
Messages: 1
Reputation: 0
Status: Offline
Hi Alex,

Is there an API manual or at least object model diagram for the Simulator?

Regards,

Rosen
 
AlexorDate: Sunday, 14.06.2015, 19:32 | Message # 8
Major general
Group: Administrators
Messages: 275
Reputation: 1
Status: Offline
Welcome!

No, only example on the site. Ask here, if you have any question.
 
Forum » Process Simulator » English » Ideas discussion
Page 1 of 11
Search: