SaveCase Function: Sample Code
Microsoft® Visual Basic for Applications
' Save the case as a PWB file
Output = SimAuto.SaveCase("c:\casedirectory\b7opfcopy.pwb", "PWB", true)
' Save the case as a PTI file
Output = SimAuto.SaveCase("c:\casedirectory\b7opfcopy.raw", "PTI", true)
Matlab®
% Setup name of PWB file to write
filenamepwb = 'c:\casedirectory\b7opfcopy.pwb';
% Setup name of PTI file to write
filenamepti = 'c:\casedirectory\b7opfcopy.raw';
% Make the SaveCase call for the PWB file
Output = SimAuto.SaveCase(filenamepwb, ‘PWB’, true);
% Make the SaveCase call for the PTI file
Output = SimAuto.SaveCase(filenamepti, ‘PWB’, true);