build nc controller wpf.

This commit is contained in:
iambossTC 2025-05-15 19:09:16 +08:00
parent 953711bf01
commit 455890c681
3 changed files with 9 additions and 7 deletions

View File

@ -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.

View File

@ -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";

View File

@ -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