Femtet Macro Help/Manual
 

Home / CFemtet Class / CFemtet / Method / SavePDT

SavePDT Method

Syntax

SavePDT(PDTFile As String, bForce As Boolean) As Boolean

Return Value

True   Success
False   Failure (if the saving is failed or file already exists when bForce=False)

Parameters

PDTFile   Mesh/Results file name (pdt file)
bForce   Sets whether to overwrite the existing pdt file (yes if true; no if false).

Notes

Saves mesh/results file. Specify the file extension (.pdt) too.

Example

Dim Femtet As New CFemtet

If Femtet.LoadProject("C:\Test\test.femprj", True) = False Then
Femtet.ShowLastError
End If



If Femtet.Solve = False Then
Femtet.ShowLastError
End If

If Femtet.SavePDT("C:\test\test.pdt", True) = False Then
Femtet.ShowLastError
End If