public override void OnActivate() { base.OnActivate(); Document.Transact(); Inputs[InputNames.GeometricSolverPipe].Send(NotificationNames.EnableAll); Inputs[InputNames.SelectionContainerPipe].Send(NotificationNames.Disable); Inputs[InputNames.Mouse3DEventsPipe].Send(NotificationNames.SetPlane, new DataPackage(null)); var pusherInput = Inputs[InputNames.CommandLinePrePusher]; var pusherData = (List <object>)pusherInput.GetData(NotificationNames.GetValue).Data; _shapeHandler = (GenericEditingShapeHandler)pusherData[0]; _editingDocument = (Document)pusherData[1]; pusherInput.Send(NotificationNames.Reset); _builder = new NodeBuilder(_shapeHandler.Node) { Transparency = 0.5, Color = Color.RoyalBlue }; // SetWorkingPlane(_shapeHandler); }
private void SetWorkingPlane(GenericEditingShapeHandler shapeHandler) { var axis = shapeHandler.GetPointLocation(shapeHandler.DraggingIndex); var workingPlane = new gpPln(axis.Location, axis.Direction); //Inputs[InputNames.Mouse3DEventsPipe].Send(NotificationNames.SetPlane, workingPlane); }