ActionDelta.RemoveAllItems

ActionDelta.RemoveAllItems

説明

ActionDelta からすべてのActionDeltaItemを削除します。

C#構文

ActionDelta.RemoveAllItems();

スクリプト構文

ActionDelta.RemoveAllItems();

JScript の例

/*

	This example demonstrates how to remove all ActionDeltaItem 

*/

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);

// Translate the 3D Objects

Translate(oCube, 3.0, 3.0, 0.0, siRelative, siView, siObj, siXYZ, null, null, null, null, null, null, null, null, null, 0, null);

// Get the Delta object

var oDelta = Dictionary.GetObject("Model.Delta");

// Add an action of type siModificationDeltaConstraint

var oActionDelta = oDelta.ActionDeltas(0);

// Print the name of the ActionDelta

Application.Logmessage(oActionDelta.Name); 

// Remove all ActionDeltaItems

oActionDelta.RemoveAllItems();

// Output of above script:

//INFO : StoredPositions

関連項目

ActionDelta.RemoveItem Delta.RemoveAction