07-31-2008 12:04 AM
07-31-2008 12:29 AM
Hi,
You can try StationOptions.DisableResults.
Alhough I don't really understand your question.
Do you want to stop the reporting of the results that have just been collected from a test run?
Regards
Ray Farmer
07-31-2008 01:23 AM
07-31-2008 02:22 AM
Hi,
StationOptions.DisableResults should do the trick.
Regards
Ray Farmer
07-31-2008 03:59 AM
07-31-2008 04:23 AM
07-31-2008 04:16 PM
Hi,
What I believe you need to do is actual alter the TestStandModelReportOptions file.
The Tag is [ReportOptions] and the item is DisableReportGeneration=True to disable report.
I think you need to get a reference to the ConfigFile using Engine.ConfigFile.
As it getting late, I'll check this out tomorrow.
Regards
Ray Farmer
08-01-2008 03:47 AM - edited 08-01-2008 03:47 AM
08-06-2008 03:25 PM - edited 08-06-2008 03:26 PM
Hi,
Looking at changing the DisableReportGeneration boolean in the Report Options.
You could use the PropertyObject.ReadEx method to load the configuration data into memory, change the Disable ReportGeneration to True then call the PropertyObject.Write method to save the changed value. (see attached picture - this I have done in a Sequence by calling the ReadReportOptionsDefaultEx() in modelsupport2.dll and then calling WriteReportOptionsDefaultEx(). I copied the first step from Get Report Options sequence found in the ProcessModel sequence file "SequentialModel.seq")
I believe you want to do this in your UI. Therefore your would need to call the relavant API calls that are performed in the DLL. Have a look at report.c. I'll let you convert to C#
Hope this helps
Regards
Ray Farmer