|
|
|
@ -181,10 +181,11 @@ import { Interfere } from './../Add-on/interfere';
|
|
|
|
|
import { ShowKinfeManageModal } from './../Add-on/showModal/ShowKnifeManageModal';
|
|
|
|
|
import { commandMachine } from './CommandMachine';
|
|
|
|
|
import { Command_Dist } from "../Add-on/Dist";
|
|
|
|
|
import { CommandNames } from "../Common/CommandNames";
|
|
|
|
|
|
|
|
|
|
export function registerCommand()
|
|
|
|
|
{
|
|
|
|
|
commandMachine.RegisterCommand("pu", new Command_Purge());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Puge, new Command_Purge());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("end", new Command_EndTempEditor());
|
|
|
|
@ -192,7 +193,7 @@ export function registerCommand()
|
|
|
|
|
commandMachine.RegisterCommand("RestoreColor", new Command_RestoreColor());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("kjl", new Command_KJLImport());
|
|
|
|
|
commandMachine.RegisterCommand("kjlexport", new KjlExport());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.KJLExport, new KjlExport());
|
|
|
|
|
commandMachine.RegisterCommand("clearkjltoken", new ClearKjlToken());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("group", new Command_Group());
|
|
|
|
@ -204,162 +205,162 @@ export function registerCommand()
|
|
|
|
|
commandMachine.RegisterCommand("testRegionParse", new Command_TestRegionParse());
|
|
|
|
|
commandMachine.RegisterCommand("TestBoundaryBox", new Command_TestBoundaryBox());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("insert", new Command_Insert());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Insert, new Command_Insert());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("l", new DrawLine());
|
|
|
|
|
commandMachine.RegisterCommand("u", new Undo());
|
|
|
|
|
commandMachine.RegisterCommand("redo", new Redo());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Line, new DrawLine());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Undo, new Undo());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Redo, new Redo());
|
|
|
|
|
commandMachine.RegisterCommand("ze", new ZoomE());
|
|
|
|
|
commandMachine.RegisterCommand("RECTANG", new DrawRect());
|
|
|
|
|
commandMachine.RegisterCommand("c", new DrawCircle());
|
|
|
|
|
commandMachine.RegisterCommand("el", new DrawEllipse());
|
|
|
|
|
commandMachine.RegisterCommand("spl", new DrawSpline());
|
|
|
|
|
commandMachine.RegisterCommand("pl", new DrawPolyline());
|
|
|
|
|
commandMachine.RegisterCommand("sc", new Command_Scale());
|
|
|
|
|
commandMachine.RegisterCommand("Conver2Polyline", new Command_Conver2Polyline());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("move", new Command_Move());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RECTANG, new DrawRect());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Circle, new DrawCircle());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Ellipse, new DrawEllipse());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Spline, new DrawSpline());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Polyline, new DrawPolyline());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Scale, new Command_Scale());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Convert2Polyline, new Command_Conver2Polyline());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Move, new Command_Move());
|
|
|
|
|
commandMachine.RegisterCommand("m0", new Command_M0());
|
|
|
|
|
commandMachine.RegisterCommand("ro", new Command_Rotate());
|
|
|
|
|
commandMachine.RegisterCommand("Revolve", new Command_DrawRevolve());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Rotate, new Command_Rotate());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Revolve, new Command_DrawRevolve());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("sp", new DrawSphere());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Sphere, new DrawSphere());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("fl", new DrawFloor());
|
|
|
|
|
commandMachine.RegisterCommand("cc", new Command_SwitchCamera());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SwitchCamera, new Command_SwitchCamera());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Erase", new Command_Erase());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Erase, new Command_Erase());
|
|
|
|
|
commandMachine.RegisterCommand("deletecurve", new DeleteCurve());
|
|
|
|
|
commandMachine.RegisterCommand("EraseLineArc", new Command_EraseLineAndArc());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("c0", new DrawCircle0());
|
|
|
|
|
commandMachine.RegisterCommand("break", new Command_Break());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Break, new Command_Break());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testPointParse", new Command_TestPointPickParse());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Stretch", new Stretch());
|
|
|
|
|
commandMachine.RegisterCommand("SelectStretch", new Stretch(true));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Stretch, new Stretch());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SelectStretch, new Stretch(true));
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("fs", new ViewChange(new Vector3(0, 0, -1)));
|
|
|
|
|
commandMachine.RegisterCommand("qs", new ViewChange(new Vector3(0, 1)));
|
|
|
|
|
commandMachine.RegisterCommand("ys", new ViewChange(new Vector3(-1)));
|
|
|
|
|
commandMachine.RegisterCommand("zs", new ViewChange(new Vector3(1)));
|
|
|
|
|
commandMachine.RegisterCommand("backView", new ViewChange(new Vector3(0, -1)));
|
|
|
|
|
commandMachine.RegisterCommand("Swiso", new ViewChange(new Vector3(1, 1, -1), true));
|
|
|
|
|
commandMachine.RegisterCommand("bottomView", new ViewChange(new Vector3(0, 0, 1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FS, new ViewChange(new Vector3(0, 0, -1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.QS, new ViewChange(new Vector3(0, 1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.YS, new ViewChange(new Vector3(-1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ZS, new ViewChange(new Vector3(1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BackView, new ViewChange(new Vector3(0, -1)));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Swiso, new ViewChange(new Vector3(1, 1, -1), true));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BottomView, new ViewChange(new Vector3(0, 0, 1)));
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("grip", new DrawGripStretch());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("fbx", new Fbx());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("hideselect", new Command_HideSelected());
|
|
|
|
|
commandMachine.RegisterCommand("hus", new Command_HideUnselected());
|
|
|
|
|
commandMachine.RegisterCommand("show", new Command_ShowAll());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideSelect, new Command_HideSelected());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideUnSelect, new Command_HideUnselected());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Show, new Command_ShowAll());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("save", new Save());
|
|
|
|
|
commandMachine.RegisterCommand("saveas", new SaveAs());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Save, new Save());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SaveAs, new SaveAs());
|
|
|
|
|
commandMachine.RegisterCommand("saveasbinary", new SaveAsBinary());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("new", new New());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.New, new New());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("open", new Open());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Open, new Open());
|
|
|
|
|
commandMachine.RegisterCommand("reopen", new ReOpen());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("arc", new DrawArc());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Arc, new DrawArc());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ent", new Entsel());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("sky", new DrawSky());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("reg", new DrawRegion());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Reg, new DrawRegion());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ucs", new CustomUcs());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CustomUCS, new CustomUcs());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("reg2", new DrawRegTest());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("copy", new Command_Copy());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Copy, new Command_Copy());
|
|
|
|
|
commandMachine.RegisterCommand("Wblock", new Command_Wblock());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("lisp", new Command_Lisp());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Reverse", new Command_Reverse());
|
|
|
|
|
commandMachine.RegisterCommand("ex", new Command_Extend());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Reverse, new Command_Reverse());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Extend, new Command_Extend());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("tr", new Command_Trim());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Trim, new Command_Trim());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("f", new CommandFillet());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Fillet, new CommandFillet());
|
|
|
|
|
commandMachine.RegisterCommand("testFilletCode", new TestFillet());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("O", new Command_Offset());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Offset, new Command_Offset());
|
|
|
|
|
commandMachine.RegisterCommand("OT", new Command_DynOffset());
|
|
|
|
|
commandMachine.RegisterCommand("TO", new Command_DynOffsetToolPath());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Length", new Command_Length());
|
|
|
|
|
|
|
|
|
|
//绘制灯
|
|
|
|
|
commandMachine.RegisterCommand("ptl2", new DrawPointLight());
|
|
|
|
|
commandMachine.RegisterCommand("ptl", new DrawPointLight2());
|
|
|
|
|
commandMachine.RegisterCommand("sl", new DrawSpotLight());
|
|
|
|
|
commandMachine.RegisterCommand("sl1", new DrawSpotLight2());
|
|
|
|
|
commandMachine.RegisterCommand("rl", new DrawRectAreaLight());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PointLight2, new DrawPointLight());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PointLight, new DrawPointLight2());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SpotLight, new DrawSpotLight());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SpotLight2, new DrawSpotLight2());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RectLight, new DrawRectAreaLight());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ptcopy", new Command_CopyPoint());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("tan", new DrawTangentLine());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("oo", new OffsetX());
|
|
|
|
|
commandMachine.RegisterCommand("div", new CMD_Divide());
|
|
|
|
|
commandMachine.RegisterCommand("pt", new CMD_DrawPoint());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("dal", new DrawAlignedDimension());
|
|
|
|
|
commandMachine.RegisterCommand("dli", new DrawLinearDimension());
|
|
|
|
|
commandMachine.RegisterCommand("dan", new Command_Draw2LineAngularDim());
|
|
|
|
|
commandMachine.RegisterCommand("dco", new Command_DimContinue());
|
|
|
|
|
commandMachine.RegisterCommand("dimrad", new DrawRadiusDim());
|
|
|
|
|
commandMachine.RegisterCommand("dimdia", new DrawDiameterDim());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("text", new DrawText());
|
|
|
|
|
commandMachine.RegisterCommand("int", new IntersectionOperation());
|
|
|
|
|
commandMachine.RegisterCommand("union", new UnionOperation());
|
|
|
|
|
commandMachine.RegisterCommand("sub", new SubsractOperation());
|
|
|
|
|
commandMachine.RegisterCommand("pe", new Pedit());
|
|
|
|
|
commandMachine.RegisterCommand("join", new Command_Join());
|
|
|
|
|
commandMachine.RegisterCommand("sw", new Sweep());
|
|
|
|
|
commandMachine.RegisterCommand("cyl", new DrawCylineder());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Divide, new CMD_Divide());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Point, new CMD_DrawPoint());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AlignDim, new DrawAlignedDimension());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LinearDim, new DrawLinearDimension());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AngleDim, new Command_Draw2LineAngularDim());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DimContinue, new Command_DimContinue());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RadiusDim, new DrawRadiusDim());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DiaDim, new DrawDiameterDim());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Text, new DrawText());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Intersect, new IntersectionOperation());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Union, new UnionOperation());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Substract, new SubsractOperation());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Pedit, new Pedit());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Join, new Command_Join());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Sweep, new Sweep());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Cylineder, new DrawCylineder());
|
|
|
|
|
|
|
|
|
|
//画板件命令
|
|
|
|
|
commandMachine.RegisterCommand("zyc", new DrawLeftRight());
|
|
|
|
|
commandMachine.RegisterCommand("dd", new DrawTopBottomBoard());
|
|
|
|
|
commandMachine.RegisterCommand("bb", new DrawBehindBoard());
|
|
|
|
|
commandMachine.RegisterCommand("cb", new DrawLayerBoard());
|
|
|
|
|
commandMachine.RegisterCommand("lb", new DrawVerticalBoard());
|
|
|
|
|
commandMachine.RegisterCommand("db", new DrawSingleBoard());
|
|
|
|
|
commandMachine.RegisterCommand("skt", new DrawClosingStrip());
|
|
|
|
|
commandMachine.RegisterCommand("door", new DrawDoor());
|
|
|
|
|
commandMachine.RegisterCommand("drillconfig", new DrillConfig());
|
|
|
|
|
commandMachine.RegisterCommand("pz", new DrawDrilling());
|
|
|
|
|
commandMachine.RegisterCommand("yx", new DrawSpecialShapedBoard());
|
|
|
|
|
commandMachine.RegisterCommand("yxlk", new DrawSpecialShapedBoardByContour());
|
|
|
|
|
commandMachine.RegisterCommand("qg", new LinearCutting());
|
|
|
|
|
commandMachine.RegisterCommand("qg2", new NonAssociativeCutting());
|
|
|
|
|
commandMachine.RegisterCommand("qg4", new ReferenceCutting());
|
|
|
|
|
commandMachine.RegisterCommand("jd", new AddPtOnBoard());
|
|
|
|
|
commandMachine.RegisterCommand("sd", new DeletePtOnBoard());
|
|
|
|
|
commandMachine.RegisterCommand("boardfindmodify", new BoardFindModify());
|
|
|
|
|
commandMachine.RegisterCommand("bbs", new LookOverBoardInfos());
|
|
|
|
|
commandMachine.RegisterCommand("boardbatchcurtail", new BoardBatchCurtail());
|
|
|
|
|
commandMachine.RegisterCommand("autodimbrs", new Command_AutoDimBrs());
|
|
|
|
|
commandMachine.RegisterCommand("fastdimbrs", new Command_FastDimBrs());
|
|
|
|
|
commandMachine.RegisterCommand("deletedim", new DeleteDim());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("rotatelybr", new RotateLayerBoard());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("drawer", new DrawDrawrer());
|
|
|
|
|
commandMachine.RegisterCommand("deletedrill", new DeleteDrill());
|
|
|
|
|
commandMachine.RegisterCommand("reversedrillface", new ReverseDrillFace());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LRBoard, new DrawLeftRight());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TBBoard, new DrawTopBottomBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BehindBoard, new DrawBehindBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LayerBoard, new DrawLayerBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.VertialBoard, new DrawVerticalBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SingleBoard, new DrawSingleBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CloseStrip, new DrawClosingStrip());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Door, new DrawDoor());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DrillConfig, new DrillConfig());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Hole, new DrawDrilling());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.YiXing, new DrawSpecialShapedBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.YXLK, new DrawSpecialShapedBoardByContour());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LinearCutting, new LinearCutting());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.NonAssociativeCutting, new NonAssociativeCutting());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ReferenceCutting, new ReferenceCutting());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AddPtOnBoard, new AddPtOnBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeletePtOnBoard, new DeletePtOnBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BoardFindModify, new BoardFindModify());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LookOverBoardInfos, new LookOverBoardInfos());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BoardBatchCurtail, new BoardBatchCurtail());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AutoDimBrs, new Command_AutoDimBrs());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FastDimBrs, new Command_FastDimBrs());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeleteDim, new DeleteDim());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RotateLayerBoard, new RotateLayerBoard());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Drawer, new DrawDrawrer());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeleteHole, new DeleteDrill());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ReverseDrillFace, new ReverseDrillFace());
|
|
|
|
|
commandMachine.RegisterCommand("editorboardTemplate", new EditorBoardTemplate());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("acticitylayerboard", new ActicityLayerBoard());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ActicityLayerBoard, new ActicityLayerBoard());
|
|
|
|
|
|
|
|
|
|
//改板
|
|
|
|
|
commandMachine.RegisterCommand("SetBRXAxis", new Command_SetBRXAxis);
|
|
|
|
@ -369,41 +370,42 @@ export function registerCommand()
|
|
|
|
|
|
|
|
|
|
//提取走刀
|
|
|
|
|
commandMachine.RegisterCommand("testm", new FeedingCommand());
|
|
|
|
|
commandMachine.RegisterCommand("mi", new MirrorCommand());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Mirror, new MirrorCommand());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("topline", new ShowTopLine());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Topline, new ShowTopLine());
|
|
|
|
|
|
|
|
|
|
//酒格
|
|
|
|
|
commandMachine.RegisterCommand("winerack", new ConfigureWineRack());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Winerack, new ConfigureWineRack());
|
|
|
|
|
commandMachine.RegisterCommand("drawwinerack", new DrawWineRack());
|
|
|
|
|
commandMachine.RegisterCommand("editorwinerack", new EditorWineRack());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testfb", new TestFb());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Explode, new Command_Explode());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Explosion, new Command_ExplosionMap());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("lattice", new DrawLattice());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Lattice, new DrawLattice());
|
|
|
|
|
/*******test ↓↓↓*********/
|
|
|
|
|
commandMachine.RegisterCommand("pltest", new Command_PLTest());
|
|
|
|
|
commandMachine.RegisterCommand("tt2", new Command_INsTest());
|
|
|
|
|
commandMachine.RegisterCommand("x", new Command_Explode());
|
|
|
|
|
commandMachine.RegisterCommand("outcur", new TestTargeOnCurve());
|
|
|
|
|
commandMachine.RegisterCommand("close", new Command_ClosePt());
|
|
|
|
|
commandMachine.RegisterCommand("explosionmap", new Command_ExplosionMap());
|
|
|
|
|
//用于测试包围盒
|
|
|
|
|
commandMachine.RegisterCommand("box", new Command_TestBox());
|
|
|
|
|
commandMachine.RegisterCommand("testInt", new TestIntersect());
|
|
|
|
|
commandMachine.RegisterCommand("collison", new TestCollision());
|
|
|
|
|
|
|
|
|
|
//阵列
|
|
|
|
|
commandMachine.RegisterCommand("array", new Command_Array());
|
|
|
|
|
commandMachine.RegisterCommand("outcur", new TestTargeOnCurve());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Array, new Command_Array());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testInt", new TestIntersect());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("copyclip", new CopyClip());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CopyClip, new CopyClip());
|
|
|
|
|
commandMachine.RegisterCommand("copybase", new CopyClip(true));
|
|
|
|
|
commandMachine.RegisterCommand("PasteClip", new PasteClip());
|
|
|
|
|
commandMachine.RegisterCommand("collison", new TestCollision());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PasteClip, new PasteClip());
|
|
|
|
|
|
|
|
|
|
//命令面板
|
|
|
|
|
commandMachine.RegisterCommand("comanp", new Command_CommandPanel());
|
|
|
|
|
//选项
|
|
|
|
|
commandMachine.RegisterCommand("config", new Command_Options());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Config, new Command_Options());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("esc", new Command_Esc());
|
|
|
|
|
commandMachine.RegisterCommand("EraseNoSelect", new Command_EraseNoSelect());
|
|
|
|
@ -412,10 +414,10 @@ export function registerCommand()
|
|
|
|
|
// commandMachine.RegisterCommand("rt", new RevTarget())
|
|
|
|
|
|
|
|
|
|
//视觉样式
|
|
|
|
|
commandMachine.RegisterCommand("Wireframe", new CMD_Wireframe());
|
|
|
|
|
commandMachine.RegisterCommand("Conceptual", new CMD_Conceptual());
|
|
|
|
|
commandMachine.RegisterCommand("Physical", new CMD_Physical());
|
|
|
|
|
commandMachine.RegisterCommand("Physical2", new CMD_Physical2());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Wireframe, new CMD_Wireframe());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Conceptual, new CMD_Conceptual());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Physical, new CMD_Physical());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Physical2, new CMD_Physical2());
|
|
|
|
|
|
|
|
|
|
//导入导出配置
|
|
|
|
|
commandMachine.RegisterCommand("downloadconfig", new DownLoadDConfig());
|
|
|
|
@ -423,25 +425,25 @@ export function registerCommand()
|
|
|
|
|
commandMachine.RegisterCommand("downloadholeconfig", new DownloadHoleOption());
|
|
|
|
|
commandMachine.RegisterCommand("uploadholeconfig", new UploadHoleOption());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("cd", new ChaiDan());
|
|
|
|
|
commandMachine.RegisterCommand("cbcd", new ChaiDanJB());
|
|
|
|
|
commandMachine.RegisterCommand("ckyh", new ShoWYouHua());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ChaiDan, new ChaiDan());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ChaiDanJB, new ChaiDanJB());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowYouhua, new ShoWYouHua());
|
|
|
|
|
|
|
|
|
|
//批量修改封边排钻
|
|
|
|
|
commandMachine.RegisterCommand("batchmodify", new BatchModify());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BatchModify, new BatchModify());
|
|
|
|
|
//自动设置孔面
|
|
|
|
|
commandMachine.RegisterCommand("zdkm", new AutoHoleFaceSetting());
|
|
|
|
|
|
|
|
|
|
//绘制复合实体
|
|
|
|
|
commandMachine.RegisterCommand("combine", new Command_CombineEntity());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Combine, new Command_CombineEntity());
|
|
|
|
|
|
|
|
|
|
//Template
|
|
|
|
|
commandMachine.RegisterCommand("template", new ShowTemplate());
|
|
|
|
|
commandMachine.RegisterCommand("templatedesign", new ShowTemplateDesign());
|
|
|
|
|
commandMachine.RegisterCommand("TemplateSearch", new Command_TemplateSearch());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Template, new ShowTemplate());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TemplateDesign, new ShowTemplateDesign());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TemplateSearch, new Command_TemplateSearch());
|
|
|
|
|
commandMachine.RegisterCommand("templateDelete", new Command_DeleteTemplate());
|
|
|
|
|
commandMachine.RegisterCommand("templatecheck", new Command_TemplateSearch(true));
|
|
|
|
|
commandMachine.RegisterCommand("SplitTemplate", new Command_SplitTemplate());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TemplateCheck, new Command_TemplateSearch(true));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SpliteTemplate, new Command_SplitTemplate());
|
|
|
|
|
commandMachine.RegisterCommand("SplitTemplateX", new Command_SplitTemplateByDir(0));
|
|
|
|
|
commandMachine.RegisterCommand("SplitTemplateY", new Command_SplitTemplateByDir(1));
|
|
|
|
|
commandMachine.RegisterCommand("SplitTemplateZ", new Command_SplitTemplateByDir(2));
|
|
|
|
@ -453,58 +455,59 @@ export function registerCommand()
|
|
|
|
|
commandMachine.RegisterCommand("testPlace", new Command_TestPlace());
|
|
|
|
|
commandMachine.RegisterCommand("testYH", new Command_TestYHWorker());
|
|
|
|
|
commandMachine.RegisterCommand("editorlattice", new EditorLattice());
|
|
|
|
|
commandMachine.RegisterCommand("print", new Print());
|
|
|
|
|
commandMachine.RegisterCommand("extrude", new DrawExtrude());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("drilltemplate", new ShowDrillingTemplate());
|
|
|
|
|
commandMachine.RegisterCommand("checkmodeing", new CheckModeling());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Print, new Print());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Extrude, new DrawExtrude());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HoleTemplate, new ShowDrillingTemplate());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckModeling, new CheckModeling());
|
|
|
|
|
|
|
|
|
|
//导出数据
|
|
|
|
|
commandMachine.RegisterCommand("exportdata", new Command_ExportData());
|
|
|
|
|
commandMachine.RegisterCommand("exportview", new Command_ExportView());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ExportData, new Command_ExportData());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ExportView, new Command_ExportView());
|
|
|
|
|
commandMachine.RegisterCommand("EnableSyncData", new Command_EnableSyncData());
|
|
|
|
|
commandMachine.RegisterCommand("DisableSyncData", new Command_DisableSyncData());
|
|
|
|
|
commandMachine.RegisterCommand("toggleSyncData", new Command_ToggleSyncData());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ToggleSyncData, new Command_ToggleSyncData());
|
|
|
|
|
|
|
|
|
|
//加工组
|
|
|
|
|
commandMachine.RegisterCommand('showprocessgroup2', new Command_ShowProcessingGroupModal2());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowProcessingGroupModal2, new Command_ShowProcessingGroupModal2());
|
|
|
|
|
|
|
|
|
|
//测试csg
|
|
|
|
|
commandMachine.RegisterCommand("TestDrawEdgeGeometry", new Command_TestDrawEdgeGeometry());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Text2Curve", new Text2Curve());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Text2Curve, new Text2Curve());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("drawvsbox", new DrawVisualSpaceBox());
|
|
|
|
|
commandMachine.RegisterCommand("align", new Align());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DrawVSBOX, new DrawVisualSpaceBox());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Align, new Align());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("buymaterial", new BuyMaterial());
|
|
|
|
|
commandMachine.RegisterCommand("interfere", new Interfere());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BuyMaterial, new BuyMaterial());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Interfere, new Interfere());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testw", new Command_TestTape());
|
|
|
|
|
commandMachine.RegisterCommand("showknifeMg", new ShowKinfeManageModal());
|
|
|
|
|
commandMachine.RegisterCommand("showdoors", new Command_SwitchDoor(true));
|
|
|
|
|
commandMachine.RegisterCommand("hidedoors", new Command_SwitchDoor(false));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowDoor, new Command_SwitchDoor(true));
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideDoor, new Command_SwitchDoor(false));
|
|
|
|
|
//线条变矩形
|
|
|
|
|
commandMachine.RegisterCommand("curve2rec", new Command_Curve2Polyline());
|
|
|
|
|
commandMachine.RegisterCommand("r2b", new Polyline2Board());
|
|
|
|
|
commandMachine.RegisterCommand("curve2vsbox", new Command_Curve2VSBox());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Curve2Rect, new Command_Curve2Polyline());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.R2b, new Polyline2Board());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Curve2VSBox, new Command_Curve2VSBox());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("SetSmoothEdge", new SetSmoothEdge());
|
|
|
|
|
commandMachine.RegisterCommand("clearrelevance", new DeleteRelevance());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SetSmoothEdge, new SetSmoothEdge());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ClearRef, new DeleteRelevance());
|
|
|
|
|
commandMachine.RegisterCommand("exportobj", new Command_ExportObj());
|
|
|
|
|
commandMachine.RegisterCommand("exportobj2", new Command_ExportObj2());
|
|
|
|
|
commandMachine.RegisterCommand("ExportSTL", new Command_ExportSTL());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("updateboardinfos", new UpdateBoardInfos());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.UpdateBoardInfos, new UpdateBoardInfos());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ToggleUI", new Command_ToggleUI());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ToggleUI, new Command_ToggleUI());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("boardRepaceTemplate", new BoardReplaceTempate());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BoardReplaceTempate, new BoardReplaceTempate());
|
|
|
|
|
|
|
|
|
|
//迁移自定义命令数据
|
|
|
|
|
commandMachine.RegisterCommand("upgradedata", new UpgradeData());
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("dist", new Command_Dist());
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Dist, new Command_Dist());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|