beautypg.com

2 igenoptions::save, Saves generation options into the specified file, Parameters – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 91: Return values, Remarks, Example, Igenoptions::save

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

86

6.1.2 IGenOptions::Save


HRESULT Save (

[in] BSTR file_name )


Saves generation options into the specified file.

Parameters

file_name

String that provides the full pathname to the generation options file

Return values

ANALYZERCOMERROR_UNABLEOPENFILE

Unable to open file

Remarks

If the specified file does not exist, it is created; if it exists, it is overwritten.

Example


WSH:

CurrentDir = Left( WScript.ScriptFullName, InstrRev( WScript.ScriptFullName, “\” ) )
Set Analyzer = WScript.CreateObject( “CATC.PETracer” )
Set GenOptions = Analyzer. GetGenerationOptions
GenOptions.Save( CurrentDir & "Input\gen_options.gen" )

C++: