fix SoftNcRunner GM code normalization.
This commit is contained in:
parent
6139c84ff9
commit
af599f36e6
@ -50,7 +50,7 @@ public static class DemoUseMachiningProject
|
|||||||
};
|
};
|
||||||
Console.WriteLine($"Set machining step event.");
|
Console.WriteLine($"Set machining step event.");
|
||||||
//show MRR.
|
//show MRR.
|
||||||
localProjectService.RuntimeApi.SessionStepBuilt += (preStep, curStep) =>
|
localProjectService.SessionShell.SessionStepBuilt += (preStep, curStep) =>
|
||||||
{
|
{
|
||||||
var sourceCommand = curStep.SourceCommand;
|
var sourceCommand = curStep.SourceCommand;
|
||||||
var indexedFileLine=sourceCommand?.GetSentence()?.FirstIndexedFileLine;
|
var indexedFileLine=sourceCommand?.GetSentence()?.FirstIndexedFileLine;
|
||||||
@ -65,13 +65,13 @@ public static class DemoUseMachiningProject
|
|||||||
|
|
||||||
Console.WriteLine($"Session begin.");
|
Console.WriteLine($"Session begin.");
|
||||||
localProjectService.BeginSession();
|
localProjectService.BeginSession();
|
||||||
localProjectService.RuntimeApi.MachiningResolution_mm = 1;
|
localProjectService.SessionShell.MachiningResolution_mm = 1;
|
||||||
localProjectService.RuntimeApi.EnableCollisionDetection = true;
|
localProjectService.SessionShell.EnableCollisionDetection = true;
|
||||||
localProjectService.RuntimeApi.EnablePauseOnFailure = false;
|
localProjectService.SessionShell.EnablePauseOnFailure = false;
|
||||||
localProjectService.RuntimeApi.EnablePhysics = false;
|
localProjectService.SessionShell.EnablePhysics = false;
|
||||||
//the path from Shell-API is relative by project directory.
|
//the path from Shell-API is relative by project directory.
|
||||||
localProjectService.RuntimeApi.PlayNcFile("NC/side.ptp");
|
localProjectService.SessionShell.PlayNcFile("NC/side.ptp");
|
||||||
localProjectService.RuntimeApi.PlayNcFile("NC/circle.ptp");
|
localProjectService.SessionShell.PlayNcFile("NC/circle.ptp");
|
||||||
localProjectService.EndSession();
|
localProjectService.EndSession();
|
||||||
Console.WriteLine($"Session end.");
|
Console.WriteLine($"Session end.");
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user