Hide Table of Contents

System Options > Backup/Recover


Get/Set Methods

Return value


Auto-recover - Save auto-recover info every

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swAutoSaveEnable) ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swAutoSaveEnable, <OnFlag>)

Boolean value

Specifies whether auto-recovery is enabled

Auto-recover - Save auto-recover info every - <n>

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swAutoSaveInterval) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swAutoSaveInterval, <Value>)

Integer value:

  • 0 = Turn off auto-recovery

  • non-0 = number of operations between auto-recoveries, up to 120


Auto-recover - Save auto-recover info every - <units>

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swAutoSaveIntervalMode) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swAutoSaveIntervalMode, swAutoSaveIntervalMode_e.<Value>)

See swAutoSaveIntervalMode_e for valid options

Specifies auto-recover mode

Auto-recover - Auto-recover folder


ISldWorks::SetUserPreferenceStringValue(swUserPreferenceStringValue_e.swAutoSaveDirectory, <Value>)

String value


Backup - Number of backup copies per document

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swBackupEnable) ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swBackupEnable, <OnFlag>)

Boolean value

Specifies whether backup copies of the document are created before any changes to the document are made

Backup - Number of backup copies per document - <n>


ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceStringValue_e.swBackupCopiesPerDocument, <Value>)

Integer value: 1 - 10

Specifies number of backup copies per document

Backup - Backup folder

Backup - Save backup files in the same location as the original

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swSaveBackupFilesInSameLocationAsOriginal) ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swSaveBackupFilesInSameLocationAsOriginal, <OnFlag>)

Boolean value:

  • True: Specifies to save backup files in same location as original file

  • False: Specifies to save backup files in the folder specified in Backup folder


Backup - Backup folder - <folder>


ISldWorks::SetUserPreferenceStringValue(swUserPreferenceStringValue_e.swBackupDirectory, <Value>)

String value

Specifies the  folder where to save backup files

Backup - Remove backups older

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swBackupRemoveEnable) ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swBackupRemoveEnable, <OnFlag>)

Boolean value

Specifies whether  backup documents older than the specified days are removed when you start up SolidWorks

Backup - Remove backups older than <n> days


ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceStringValue_e.swBackupRemoveInterval, <Value>)

Integer value: 1 - 30

Specifies the number of days when to remove backup copies of a document

Save notification - Show reminder if document has not been saved for

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swSaveReminderEnable) ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swSaveReminderEnable, <OnFlag>)

Boolean value

Specifies whether to display a reminder if document has not been saved

Save notification - Show reminder if document has not been saved for - <n>

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSaveReminderInterval) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSaveReminderInterval, <Value>)

Integer value from 1 to 60

Specifies save notification reminder interval

Save notification - Show reminder if document has not been saved for - <units>

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSaveReminderIntervalMode) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSaveReminderIntervalMode, swSaveReminderIntervalMode_e, <Value>)

See swSaveReminderIntervalMode_e for valid options



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   System Options > Backup/Recover
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.