Attach the named file to the text window, such that all text added to the window is also added to the file
filename | string | absolute or relative pathname of the file |
captureExisting | optional boolean | Copy the existing contents of the window to the file? If not specified, assumed to be true |
Return value | none |
Example
To capture all of the text currently in the window to a file
call textWin.attachLogFile("C:\temp\myFile", true)
call textWin.closeLogFile
To capture only the meshing warning messages to a file
call textWin.attachLogFile("C:\temp\myFile")
call database.updateMesh()
call textWin.closeLogFile()
See also closeLogFile
Back to TextWindow
Back to Overview