API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.SaveSettings method
Saves document settings that can be recalled later, including Unit, Drawing Origin, curve Precision, Reference Point, PreserveSelection, ShapeEnumdirection, and Apply To Duplicate
Syntax:
Sub SaveSettings(Optional ByVal Tag As String)
Parameters:
Name Type Description
Tag
String
Remarks:
The SaveSettings method saves the properties to the internal stack. You can specify a tag for the saved values. The tag can be used to retrieve specific settings saved earlier. You can use the SaveSettings method to preserve current document settings such as the values of the following document properties: CurvePrecision, DrawingOriginX, DrawingOriginY, ReferencePoint, Unit, PreserveSelection, ShapeEnumDirection, and ApplyToDuplicate.
Examples:
The following VBA example restores the document units to feet. The settings saved by the second SaveSettings method are discarded.
Sub Test()
With ActiveDocument
  .Unit = cdrFoot
  .SaveSettings "Settings1"
  .Unit = cdrMillimeter
  .SaveSettings "Settings2"
  .Unit = cdrAgate
  .RestoreSettings "Settings1"
End With 
End Sub