You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found it's good that when I use save_as(... overwrite=True) ,the DisplayFileAlerts will be auto set to be False.
But when I export stp format with command export_data (... overwrite=True), the DisplayFileAlerts won't be set to be False.
It is easy to change below codes in document.py file
line 476 if overwrite is False and file_name.is_file():
line 477 raise FileExistsError(f'File: {file_name} already exists. '
line 478 f'Set overwrite=True if you want to overwrite.')
to:
if overwrite is False:
if path_file_name.is_file():
raise FileExistsError(f'File: {path_file_name} already exists. '
f'Set overwrite=True if you want to overwrite.')
else:
self.document.Application.DisplayFileAlerts = False
The text was updated successfully, but these errors were encountered:
Hello, I found it's good that when I use
save_as(... overwrite=True)
,theDisplayFileAlerts
will be auto set to beFalse
.But when I export
stp
format with commandexport_data (... overwrite=True)
, theDisplayFileAlerts
won't be set to beFalse
.It is easy to change below codes in
document.py
fileto:
The text was updated successfully, but these errors were encountered: