fix SoftNcRunner GM code normalization.
This commit is contained in:
parent
da83e59432
commit
523d1b6733
@ -58,7 +58,7 @@ namespace Sample.Machining
|
||||
localProjectService.WorkpieceService.IdealGeom = new StlFile(stlFile_CylinderR19, projectDir);
|
||||
localProjectService.Workpiece.InitResolution = resolution_mm;
|
||||
|
||||
RuntimeApi runtimeApi = localProjectService.RuntimeApi;
|
||||
SessionShell runtimeApi = localProjectService.SessionShell;
|
||||
runtimeApi.SetNcResolutionFixed(9999, 15);
|
||||
runtimeApi.EnableCollisionDetection = false;
|
||||
runtimeApi.EnablePhysics = false;
|
||||
@ -111,7 +111,7 @@ namespace Sample.Machining
|
||||
static void RunSession(LocalProjectService localProjectService, double resolution_mm)
|
||||
{
|
||||
var project=localProjectService.MachiningProject;
|
||||
RuntimeApi runtimeApi = localProjectService.RuntimeApi;
|
||||
SessionShell runtimeApi = localProjectService.SessionShell;
|
||||
|
||||
localProjectService.BeginSession();
|
||||
double radius = 20;
|
||||
|
||||
@ -33,7 +33,7 @@ namespace Sample.Machining
|
||||
localProjectService.LoadProject(projectPath);
|
||||
MachiningProject machiningProject = localProjectService.MachiningProject;
|
||||
|
||||
localProjectService.RuntimeApi.SessionStepSelected += (MachiningStep step) =>
|
||||
localProjectService.SessionShell.SessionStepSelected += (MachiningStep step) =>
|
||||
{
|
||||
var sourceCommand = step.SourceCommand;
|
||||
var indexedFileLine = sourceCommand.GetSentence().FirstIndexedFileLine;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user