private void BoxAnimation(gpAx1 axis, double height, Point3D secondPoint) { // First build a rectangle var rectangleBuilder = new NodeBuilder(Dependency.AnimationDocument, FunctionNames.Rectangle); rectangleBuilder[0].Axis3D = new Axis(axis); rectangleBuilder[1].TransformedPoint3D = secondPoint; rectangleBuilder.EnableSelection = false; rectangleBuilder.ExecuteFunction(); // Extrude the rectangle built var builder = new NodeBuilder(Dependency.AnimationDocument, FunctionNames.Extrude); builder[0].ReferenceData = new SceneSelectedEntity(rectangleBuilder.Node); builder[1].Integer = (int)ExtrusionTypes.ToDepth; builder[2].Real = height; builder.Color = Color.White; builder.Transparency = 0.3; builder.EnableSelection = false; builder.ExecuteFunction(); Dependency.AnimationNodeBuilder = builder; // Add also a dimension animation NodeUtils.DisplayTemporaryDimension(Dependency.AnimationDocument, builder.Node, false); }