Class AddObjectToSketchWorldRootCommand
Add a new object to the sketch world root. The sketch object is deleted when undoing this command.
Inheritance
System.Object
AddObjectToSketchWorldRootCommand
Implements
Namespace: VRSketchingGeometry.Commands
Assembly: VRSketchingGeometry.dll
Syntax
public class AddObjectToSketchWorldRootCommand : ICommand
Remarks
Original author: tterpi
Constructors
AddObjectToSketchWorldRootCommand(SelectableObject, SketchWorld)
Declaration
public AddObjectToSketchWorldRootCommand(SelectableObject newObject, SketchWorld sketchWorld)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectableObject | newObject | |
| SketchWorld | sketchWorld |
Methods
Execute()
Declaration
public bool Execute()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Redo()
Declaration
public void Redo()
Undo()
Declaration
public void Undo()