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