diff --git a/Machining/DemoUseMachiningProject.cs b/Machining/DemoUseMachiningProject.cs index 4e1aa71..47ed66e 100644 --- a/Machining/DemoUseMachiningProject.cs +++ b/Machining/DemoUseMachiningProject.cs @@ -50,7 +50,7 @@ public static class DemoUseMachiningProject }; Console.WriteLine($"Set machining step event."); //show MRR. - localProjectService.RuntimeApi.SessionStepBuilt += (preStep, curStep) => + localProjectService.SessionShell.SessionStepBuilt += (preStep, curStep) => { var sourceCommand = curStep.SourceCommand; var indexedFileLine=sourceCommand?.GetSentence()?.FirstIndexedFileLine; @@ -65,13 +65,13 @@ public static class DemoUseMachiningProject Console.WriteLine($"Session begin."); localProjectService.BeginSession(); - localProjectService.RuntimeApi.MachiningResolution_mm = 1; - localProjectService.RuntimeApi.EnableCollisionDetection = true; - localProjectService.RuntimeApi.EnablePauseOnFailure = false; - localProjectService.RuntimeApi.EnablePhysics = false; + localProjectService.SessionShell.MachiningResolution_mm = 1; + localProjectService.SessionShell.EnableCollisionDetection = true; + localProjectService.SessionShell.EnablePauseOnFailure = false; + localProjectService.SessionShell.EnablePhysics = false; //the path from Shell-API is relative by project directory. - localProjectService.RuntimeApi.PlayNcFile("NC/side.ptp"); - localProjectService.RuntimeApi.PlayNcFile("NC/circle.ptp"); + localProjectService.SessionShell.PlayNcFile("NC/side.ptp"); + localProjectService.SessionShell.PlayNcFile("NC/circle.ptp"); localProjectService.EndSession(); Console.WriteLine($"Session end."); #endregion