|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { Command } from "../../Editor/CommandMachine";
|
|
|
|
|
import { AppToaster } from "../../UI/Components/Toaster";
|
|
|
|
|
import { NestFiler } from "../Common/Filer";
|
|
|
|
|
import { Individual } from "../Core/Individual";
|
|
|
|
|
import { OptimizeMachine } from "../Core/OptimizeMachine";
|
|
|
|
|
import { InitParts, Place } from "./PlaceUtil";
|
|
|
|
|
|
|
|
|
@ -17,6 +19,12 @@ export class Command_TestYH2 implements Command
|
|
|
|
|
m.PutParts(db.Parts);
|
|
|
|
|
m.callBack = async (inv) =>
|
|
|
|
|
{
|
|
|
|
|
let f = new NestFiler();
|
|
|
|
|
inv.WriteFile(f);
|
|
|
|
|
|
|
|
|
|
inv = new Individual(db.Parts);
|
|
|
|
|
inv.ReadFile(f);
|
|
|
|
|
|
|
|
|
|
Place(inv, db.Parts, db.Bin);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|