The following functions let you control the display and logging of 3ds Max Asserts. Available in 3ds Max 2015 and higher.
<bool>SetMaxAssertDisplay <bool>
When the argument is True, 3ds Max Asserts will be displayed to the user in an interactive dialog.
When the argument is False, 3ds Max Asserts will not be displayed but will be logged to the 3ds Max Assert Log file specified using the methods below.
<filename>GetMaxAssertLogFileName()
Returns the 3ds Max Assert Log filename.
Default value is "C:\Program Files\Autodesk\3ds Max 20XX\3dsmax.assert.log" where XX is the 3ds Max version number.
<void>SetMaxAssertLogFileName <filename>
Sets the 3ds Max Assert Log filename to the path specified by the argument. Returns OK.