Saves the Delta (all modifications on the reference model) to the specified file. This file can be used later as external storage or when importing a delta.

C# Syntax

Delta.Save( String in_bstrFile );

Scripting Syntax

Delta.Save( Filename );


Parameter Type Description
Filename String The filename to save.


JScript Example

	This example demonstrates how to save a delta
NewScene(null, false);
// Create a reference model from a cube
var oRoot = Application.ActiveProject.ActiveScene.Root;
var oCube = oRoot.AddGeometry("Cube", "MeshSurface");
var emdlFileRefModel = XSIUtils.BuildPath(Application.InstallationPath(siProjectPath), "Models", "MyModel.emdl"); 
CreateModelAndConvertToRef(oCube, emdlFileRefModel );
// Add the Delta object
var oDelta = AddDelta(oCube.Model);
// Add an action of type siModificationDeltaStaticValue
var oDeltaAction = oDelta.AddAction(siModificationDeltaStaticValue);
// Add the Static value item	
var oActionDeltaItem = oDeltaAction.AddStaticValueItem(oCube + "", 10);
// To apply the modification
// File to save delta
var deltaFile = XSIUtils.BuildPath(Application.InstallationPath(siProjectPath), "Deltas", "");

See Also

ApplyDelta ExportDelta