build nc controller wpf.
This commit is contained in:
parent
953711bf01
commit
455890c681
@ -25,7 +25,7 @@ namespace Sample.MachineTool
|
|||||||
{
|
{
|
||||||
static DemoBuildMachineTool()
|
static DemoBuildMachineTool()
|
||||||
{
|
{
|
||||||
XFactory.Default.Regs.Add(XName, (xml, baseDirectory, relFile, res) => new DemoBuildMachineTool());
|
XFactory.Regs.Add(XName, (xml, baseDirectory, relFile, res) => new DemoBuildMachineTool());
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generates an XYZ-ABC machine tool instance from embedded resources.
|
/// Generates an XYZ-ABC machine tool instance from embedded resources.
|
||||||
|
@ -4,7 +4,6 @@ using Hi.MachiningProcs;
|
|||||||
using Hi.Mech.Topo;
|
using Hi.Mech.Topo;
|
||||||
using Hi.Milling.Apts;
|
using Hi.Milling.Apts;
|
||||||
using Hi.Milling.Cutters;
|
using Hi.Milling.Cutters;
|
||||||
using Hi.MongoUtils;
|
|
||||||
using Hi.NcMech.Fixtures;
|
using Hi.NcMech.Fixtures;
|
||||||
using Hi.NcMech.Workpieces;
|
using Hi.NcMech.Workpieces;
|
||||||
using Hi.NcMech.Xyzabc;
|
using Hi.NcMech.Xyzabc;
|
||||||
@ -12,13 +11,16 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System;
|
using System;
|
||||||
using Hi.NcMech.Holders;
|
using Hi.NcMech.Holders;
|
||||||
using Hi.Licenses;
|
|
||||||
using Hi.Machining;
|
using Hi.Machining;
|
||||||
using Hi.MillingMech.MillingTools;
|
using Hi.MillingMech.MillingTools;
|
||||||
using Hi.HiNcKits;
|
using Hi.HiNcKits;
|
||||||
|
|
||||||
namespace Sample.Machining
|
namespace Sample.Machining
|
||||||
{
|
{
|
||||||
|
/// <remarks>
|
||||||
|
/// ### Source Code
|
||||||
|
/// [!code-csharp[SampleCode](~/../Hi.Sample/Machining/DemoBuildGeomOnlyMachiningProject.cs)]
|
||||||
|
/// </remarks>
|
||||||
public static class DemoBuildGeomOnlyMachiningProject
|
public static class DemoBuildGeomOnlyMachiningProject
|
||||||
{
|
{
|
||||||
internal static MillingCutter CreateGeomOnlyMillingCutter()
|
internal static MillingCutter CreateGeomOnlyMillingCutter()
|
||||||
@ -84,7 +86,7 @@ namespace Sample.Machining
|
|||||||
};
|
};
|
||||||
|
|
||||||
machiningProject.MachiningEquipment.MachiningChain
|
machiningProject.MachiningEquipment.MachiningChain
|
||||||
= XFactory.Default.GenByFile<CodeXyzabcMachineTool>(
|
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||||
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", GenMode.Default);
|
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", GenMode.Default);
|
||||||
machiningProject.MachiningEquipment.MachiningChainFile = "PMC-B1/PMC-B1.mt";
|
machiningProject.MachiningEquipment.MachiningChainFile = "PMC-B1/PMC-B1.mt";
|
||||||
|
|
||||||
|
@ -203,16 +203,16 @@ namespace Sample.Machining
|
|||||||
InitGeom = new Box3d(0, 0, -50, 70, 50, 0),
|
InitGeom = new Box3d(0, 0, -50, 70, 50, 0),
|
||||||
IdealGeom = null,
|
IdealGeom = null,
|
||||||
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
|
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
|
||||||
MillingPara = XFactory.Default.GenByFile<ICuttingPara>(
|
MillingPara = XFactory.GenByFile<ICuttingPara>(
|
||||||
"Resource/CuttingParameter", "Al6061T6.mp", GenMode.Default),
|
"Resource/CuttingParameter", "Al6061T6.mp", GenMode.Default),
|
||||||
WorkpieceMaterial = XFactory.Default.GenByFile<WorkpieceMaterial>(
|
WorkpieceMaterial = XFactory.GenByFile<WorkpieceMaterial>(
|
||||||
"Resource/WorkpieceMaterial", "Al6061T6.WorkpieceMaterial", GenMode.Default),
|
"Resource/WorkpieceMaterial", "Al6061T6.WorkpieceMaterial", GenMode.Default),
|
||||||
};
|
};
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ConfigureMachineChain
|
#region ConfigureMachineChain
|
||||||
machiningProject.MachiningEquipment.MachiningChain
|
machiningProject.MachiningEquipment.MachiningChain
|
||||||
= XFactory.Default.GenByFile<CodeXyzabcMachineTool>(
|
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||||
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", GenMode.Default);
|
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", GenMode.Default);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user