|
|
@ -0,0 +1,837 @@
|
|
|
|
|
|
|
|
import { Vector3 } from "three";
|
|
|
|
|
|
|
|
import { Command_FlipZMatrix } from "../../Common/CommandFlipZMatrix";
|
|
|
|
|
|
|
|
import { CommandNames } from "../../Common/CommandNames";
|
|
|
|
|
|
|
|
import { Command_SetLineOCS } from "../../Common/CommandSetLineOCS";
|
|
|
|
|
|
|
|
import { IsTest } from "../../Common/Deving";
|
|
|
|
|
|
|
|
import { TemplateArray, TemplateAttach, TemplateAttach2 } from "../../DatabaseServices/Template/TemplateTest";
|
|
|
|
|
|
|
|
import { commandMachine } from "../../Editor/CommandMachine";
|
|
|
|
|
|
|
|
import { Command_GizmoCSSwith, Command_SetGizmoMode } from "../../Editor/TranstrolControl/Command_SetGizmoMode";
|
|
|
|
|
|
|
|
import { TransMode } from "../../Editor/TranstrolControl/TransformServices";
|
|
|
|
|
|
|
|
import { userConfig } from "../../Editor/UserConfig";
|
|
|
|
|
|
|
|
import { RenderType } from "../../GraphicsSystem/RenderType";
|
|
|
|
|
|
|
|
import { Command_HeadCeilingContourManage } from "../../UI/Components/HeadCeiling/HeadCeilingContourManageCommand";
|
|
|
|
|
|
|
|
import { Command_HeadCeilingInfoConfigPanel, Command_HeadCeilingMaterialPanel } from "../../UI/Components/HeadCeiling/HeadCeilingInfoConfigPanelCommand";
|
|
|
|
|
|
|
|
import { EOptionTabId } from "../../UI/Components/Modal/OptionModal/ConfigDialog";
|
|
|
|
|
|
|
|
import { Align } from "../Align";
|
|
|
|
|
|
|
|
import { Command_DrawArcBoard } from "../ArcBoard/DrawArcBoard";
|
|
|
|
|
|
|
|
import { Command_Area } from "../Area";
|
|
|
|
|
|
|
|
import { Command_Array } from "../Array";
|
|
|
|
|
|
|
|
import { AutoHoleFaceSetting } from "../AutoHoleFaceSetting";
|
|
|
|
|
|
|
|
import { BackgroundSwitching } from "../BackgroundSwitching";
|
|
|
|
|
|
|
|
import { FindModeingKnifeRadius } from "../Batch/FindModeingKnifes";
|
|
|
|
|
|
|
|
import { CuttingByFace, CuttingByRectFace } from "../BoardCutting/CuttingByFace";
|
|
|
|
|
|
|
|
import { DeleteRelevance } from "../BoardCutting/DeleteRelevance";
|
|
|
|
|
|
|
|
import { Command_ChangeBoardColorByPBFace } from "../BoardEditor/ChangeBoardColorByPBFace";
|
|
|
|
|
|
|
|
import { Command_ClearBoard2DModeling } from "../BoardEditor/ClearBoard2DModeling";
|
|
|
|
|
|
|
|
import { SetBoardLines, SetComposingFace } from "../BoardEditor/SetBoardLines";
|
|
|
|
|
|
|
|
import { Command_TextModifyTool } from "../BoardEditor/TextModifyTool";
|
|
|
|
|
|
|
|
import { UpdateBoardInfos } from "../BoardEditor/UpdateBoardInfos";
|
|
|
|
|
|
|
|
import { OneClickInspection } from "../BoardInspection/OneClickInspection";
|
|
|
|
|
|
|
|
import { IntersectionOperation, SubsractOperation, UnionOperation } from "../BoolOperation";
|
|
|
|
|
|
|
|
import { Command_Break, Command_BreakAll } from "../Break";
|
|
|
|
|
|
|
|
import { Command_CameraSnapshootRestore, Command_CameraSnapshootSave, Command_CameraSnapshootSaveIndex } from "../CameraSnapshootCMD";
|
|
|
|
|
|
|
|
import { ChangeColorByMaterial } from "../ChangeColorByBoard/ChangeColorByMaterial";
|
|
|
|
|
|
|
|
import { ChangeColorByRoomCabinet } from "../ChangeColorByRoomOrCabinet/ChangeColorByRoomOrCabinet";
|
|
|
|
|
|
|
|
import { CheckHoles } from "../CheckHoles";
|
|
|
|
|
|
|
|
import { CheckModeling } from "../CheckModeling";
|
|
|
|
|
|
|
|
import { Cmd_Freeze, Cmd_UnFreeze } from "../Cmd_Freeze";
|
|
|
|
|
|
|
|
import { Cmd_UnVisibleInRender, Cmd_VisibleInRender } from "../Cmd_VisibleInRender";
|
|
|
|
|
|
|
|
import { CombinatAttributeBrush } from "../CombinatAttributeBrush";
|
|
|
|
|
|
|
|
import { Command_CombineEntity } from "../Command_CombineEntity";
|
|
|
|
|
|
|
|
import { Command_Options } from "../Command_Option";
|
|
|
|
|
|
|
|
import { Command_PickUp2DModelCsgs } from "../Command_PickUp2DModelCsgs";
|
|
|
|
|
|
|
|
import { Command_Purge } from "../Command_Purge";
|
|
|
|
|
|
|
|
import { Command_Conver2Polyline } from "../Conver2Polyline";
|
|
|
|
|
|
|
|
import { Command_Copy } from "../Copy";
|
|
|
|
|
|
|
|
import { CopyClip } from "../CopyClip";
|
|
|
|
|
|
|
|
import { Command_CopyPoint } from "../CopyPoint";
|
|
|
|
|
|
|
|
import { CustomUcs } from "../CostumUCS";
|
|
|
|
|
|
|
|
import { Command_CleanCustomNumber, Command_CustomNumber } from "../CustomNumber/Command_CustomNumber";
|
|
|
|
|
|
|
|
import { DeleteCurve } from "../DeleteCurve";
|
|
|
|
|
|
|
|
import { Command_Dist } from "../Dist";
|
|
|
|
|
|
|
|
import { CMD_Divide } from "../Divide";
|
|
|
|
|
|
|
|
import { DrawArc } from "../DrawArc";
|
|
|
|
|
|
|
|
import { DrawTemplateByImport } from "../DrawBoard/DrawTemplateByImport";
|
|
|
|
|
|
|
|
import { FindMaxOrMinSizeBoard } from "../DrawBoard/FindMaxSizeBoard";
|
|
|
|
|
|
|
|
import { FixIntersectSelfContour } from "../DrawBoard/FixIntersectSelfContour";
|
|
|
|
|
|
|
|
import { ParseHandle } from "../DrawBoard/ParseHandle";
|
|
|
|
|
|
|
|
import { ParseHinge } from "../DrawBoard/ParseHinge";
|
|
|
|
|
|
|
|
import { SetHoleNoneType } from "../DrawBoard/SetHoleType";
|
|
|
|
|
|
|
|
import { DrawCircle } from "../DrawCircle";
|
|
|
|
|
|
|
|
import { DrawCylineder } from "../DrawCylinder";
|
|
|
|
|
|
|
|
import { Command_DimContinue } from "../DrawDim/Command_DimContinue";
|
|
|
|
|
|
|
|
import { Command_DimStyle } from "../DrawDim/Command_DimStyle";
|
|
|
|
|
|
|
|
import { Command_DimArc } from "../DrawDim/DimArc";
|
|
|
|
|
|
|
|
import { Command_Draw2LineAngularDim } from "../DrawDim/Draw2LineAngularDim";
|
|
|
|
|
|
|
|
import { DrawAlignedDimension } from "../DrawDim/DrawAlignedDimension";
|
|
|
|
|
|
|
|
import { DrawDiameterDim } from "../DrawDim/DrawDiameterDim";
|
|
|
|
|
|
|
|
import { DrawLinearDimension } from "../DrawDim/DrawLinearDimension";
|
|
|
|
|
|
|
|
import { DrawRadiusDim } from "../DrawDim/DrawRadiusDim";
|
|
|
|
|
|
|
|
import { Command_HideDim, Command_ShowDim } from "../DrawDim/OneKeyHideOrShowDim";
|
|
|
|
|
|
|
|
import { CheckDrawHole } from "../DrawDrilling/CheckDrawHole";
|
|
|
|
|
|
|
|
import { CheckHasHoleBoard } from "../DrawDrilling/CheckHasHole";
|
|
|
|
|
|
|
|
import { AddAssocDrillLock } from "../DrawDrilling/DrillLock/AddAssocDrillLock";
|
|
|
|
|
|
|
|
import { AddAloneDrillLock } from "../DrawDrilling/DrillLock/AloneDrillLock";
|
|
|
|
|
|
|
|
import { RemoveAssocDrillLock } from "../DrawDrilling/DrillLock/RemoveAssocDrillLock";
|
|
|
|
|
|
|
|
import { RemoveDrillLock } from "../DrawDrilling/DrillLock/RemoveDrillLock";
|
|
|
|
|
|
|
|
import { ShowDrillingTemplate } from "../DrawDrilling/ShowDrillingTemplate";
|
|
|
|
|
|
|
|
import { ToggleDrillingReactor } from "../DrawDrilling/ToggleDrillingReactor";
|
|
|
|
|
|
|
|
import { DrawEllipse } from "../DrawEllipse";
|
|
|
|
|
|
|
|
import { DrawExtrude } from "../DrawExtrude";
|
|
|
|
|
|
|
|
import { DrawGripStretch } from "../DrawGripStretch";
|
|
|
|
|
|
|
|
import { BatchModifyLights } from "../DrawLight/BatchModifyLights";
|
|
|
|
|
|
|
|
import { DrawPointLight } from "../DrawLight/DrawPointLight";
|
|
|
|
|
|
|
|
import { DrawRectAreaLight } from "../DrawLight/DrawRectAreaLight";
|
|
|
|
|
|
|
|
import { DrawSpotLight, DrawSpotLight2 } from "../DrawLight/DrawSpotLight";
|
|
|
|
|
|
|
|
import { Command_DrawXLine, DrawLine } from "../DrawLine";
|
|
|
|
|
|
|
|
import { CMD_DrawPoint } from "../DrawPoint";
|
|
|
|
|
|
|
|
import { DrawPolygon } from "../DrawPolygon";
|
|
|
|
|
|
|
|
import { DrawPolyline } from "../DrawPolyline";
|
|
|
|
|
|
|
|
import { DrawRect } from "../DrawRect";
|
|
|
|
|
|
|
|
import { DrawRegion } from "../DrawRegion";
|
|
|
|
|
|
|
|
import { Command_DrawRevolve } from "../DrawRevolve";
|
|
|
|
|
|
|
|
import { DrawSky } from "../DrawSky";
|
|
|
|
|
|
|
|
import { DrawSphere } from "../DrawSphere";
|
|
|
|
|
|
|
|
import { DrawSpline } from "../DrawSpline";
|
|
|
|
|
|
|
|
import { DrawRegTest } from "../DrawTestReg";
|
|
|
|
|
|
|
|
import { DrawText } from "../DrawText";
|
|
|
|
|
|
|
|
import { Draw2Viewport, Draw3Viewport, Draw4Viewport, DrawViewport } from "../DrawViewport";
|
|
|
|
|
|
|
|
import { Polyline2Winerack } from "../DrawWineRack/Polyline2Winerack";
|
|
|
|
|
|
|
|
import { DrawCircle0 } from "../DrawZeroCircle";
|
|
|
|
|
|
|
|
import { Command_EndTempEditor } from "../EndTempEditor";
|
|
|
|
|
|
|
|
import { Command_EntitytMoveToZ0 } from "../EntityMoveToZ0";
|
|
|
|
|
|
|
|
import { Entsel } from "../Entsel";
|
|
|
|
|
|
|
|
import { Command_Erase } from "../Erase";
|
|
|
|
|
|
|
|
import { Command_EraseLineAndArc } from "../EraseLineAndArc";
|
|
|
|
|
|
|
|
import { Command_EraseNoSelect } from "../EraseNoSelect";
|
|
|
|
|
|
|
|
import { Command_Esc } from "../Esc";
|
|
|
|
|
|
|
|
import { Command_ExportSTL } from "../Exports/ExportSTL";
|
|
|
|
|
|
|
|
import { Command_Extend } from "../Extends";
|
|
|
|
|
|
|
|
import { Command_OpenHistory } from "../File/OpenHistory";
|
|
|
|
|
|
|
|
import { OperLogs } from "../File/OperLog";
|
|
|
|
|
|
|
|
import { CommandFillet } from "../Fillet";
|
|
|
|
|
|
|
|
import { Command_FindBoardModelingKnife } from "../FindBoardModelingKnife";
|
|
|
|
|
|
|
|
import { Command_Fix2DPath } from "../Fix/Fix2DPath";
|
|
|
|
|
|
|
|
import { Command_Group, Command_UnGroup } from "../Group";
|
|
|
|
|
|
|
|
import { Command_HideSelected, Command_HideUnselected, Command_ShowAll, Command_SwitchDoorOrDrawer, SelectAll, ShowHideSelectPanel } from "../HideSelected";
|
|
|
|
|
|
|
|
import { Command_HighlightNode, Command_HighlightNodeAndChilds } from "../HighlightNode";
|
|
|
|
|
|
|
|
import { Command_Insert } from "../Insert";
|
|
|
|
|
|
|
|
import { Command_Join } from "../Join";
|
|
|
|
|
|
|
|
import { EditorLattice } from "../LatticeDrawer/EditorLattice";
|
|
|
|
|
|
|
|
import { Command_Length } from "../Length";
|
|
|
|
|
|
|
|
import { Command_Lisp } from "../Lisp";
|
|
|
|
|
|
|
|
import { Command_MatchProp } from "../MatchProp";
|
|
|
|
|
|
|
|
import { Command_Move } from "../Move";
|
|
|
|
|
|
|
|
import { Command_Cmd_Down } from "../Move/Cmd_Down";
|
|
|
|
|
|
|
|
import { Command_M0, Command_PackageMove } from "../MoveToWCS0";
|
|
|
|
|
|
|
|
import { Command_ExportObj } from "../Obj/Command_ExportObj";
|
|
|
|
|
|
|
|
import { Command_ExportObjAndMtl } from "../Obj/Command_ExportObjMtl";
|
|
|
|
|
|
|
|
import { Command_DynOffset, Command_DynOffsetToolPath, Command_Offset } from "../Offset";
|
|
|
|
|
|
|
|
import { Open } from "../Open";
|
|
|
|
|
|
|
|
import { PasteClip } from "../PasteClip";
|
|
|
|
|
|
|
|
import { Pedit } from "../Pedit";
|
|
|
|
|
|
|
|
import { ReOpen } from "../ReOpen";
|
|
|
|
|
|
|
|
import { CMD_Renderer } from "../Renderer";
|
|
|
|
|
|
|
|
import { Command_ResetCustomCommand } from "../ResetCustomCommand";
|
|
|
|
|
|
|
|
import { Command_RestoreColor } from "../RestoreColor";
|
|
|
|
|
|
|
|
import { Command_Reverse } from "../Reverse";
|
|
|
|
|
|
|
|
import { Command_ParseRoomWall } from "../Room/ParseRoomWall";
|
|
|
|
|
|
|
|
import { Command_Rotate, Command_RotateRefer } from "../Rotate";
|
|
|
|
|
|
|
|
import { New } from "../Save";
|
|
|
|
|
|
|
|
import { Command_Scale } from "../Scale";
|
|
|
|
|
|
|
|
import { SetSmoothEdge } from "../SetSmoothEdge/SetSmoothEdge";
|
|
|
|
|
|
|
|
import { Command_Show2DPathLine } from "../Show2DPathLine/Show2DPathLine";
|
|
|
|
|
|
|
|
import { Command_Show2DPathObject } from "../Show2DPathLine/Show2DPathObject";
|
|
|
|
|
|
|
|
import { SwitchLines } from "../ShowLines";
|
|
|
|
|
|
|
|
import { ShowOpenDirLiens } from "../ShowOpenDirLiens";
|
|
|
|
|
|
|
|
import { Command_ShowProcessingGroupModal } from "../ShowProcessingGroupModal";
|
|
|
|
|
|
|
|
import { Stretch } from "../Stretch";
|
|
|
|
|
|
|
|
import { Command_SuperCopy } from "../SuperCopy";
|
|
|
|
|
|
|
|
import { Sweep } from "../Sweep";
|
|
|
|
|
|
|
|
import { Command_SwitchCamera } from "../SwitchCamera";
|
|
|
|
|
|
|
|
import { ChangeRenderType } from "../SwitchVisualStyles";
|
|
|
|
|
|
|
|
import { DrawTangentLine } from "../Tangent";
|
|
|
|
|
|
|
|
import { BoardReplaceTempate } from "../Template/BoardReplaceTemplate";
|
|
|
|
|
|
|
|
import { DrawVisualSpaceBox } from "../Template/DrawVisualSpaceBox";
|
|
|
|
|
|
|
|
import { ShowFrmae } from "../Template/ShowFrame";
|
|
|
|
|
|
|
|
import { Command_TemplateSearch } from "../TemplateSearch";
|
|
|
|
|
|
|
|
import { Command_TestPointPickParse } from "../TestPointPickParse";
|
|
|
|
|
|
|
|
import { Text2Curve } from "../Text2Curve";
|
|
|
|
|
|
|
|
import { Command_ToggleUI } from "../ToggleUI";
|
|
|
|
|
|
|
|
import { Command_Trim } from "../Trim";
|
|
|
|
|
|
|
|
import { Redo, Undo } from "../Undo";
|
|
|
|
|
|
|
|
import { ViewChange } from "../ViewChange";
|
|
|
|
|
|
|
|
import { Command_FixView } from "../ViewCtrl/FixView";
|
|
|
|
|
|
|
|
import { EditFrame } from "../ViewortConfig/EditFrame";
|
|
|
|
|
|
|
|
import { EditViewport } from "../ViewortConfig/EditViewport";
|
|
|
|
|
|
|
|
import { OneKeyLayout } from "../Viewport/OneKeyLayout";
|
|
|
|
|
|
|
|
import { OneKeyPrint } from "../Viewport/OneKeyPrint";
|
|
|
|
|
|
|
|
import { Command_Wblock } from "../Wblock";
|
|
|
|
|
|
|
|
import { Command_ZoomObject, ZoomE } from "../ZoomE";
|
|
|
|
|
|
|
|
import { Interfere } from "../interfere";
|
|
|
|
|
|
|
|
import { TestFillet } from "../testEntity/TestFilletCode";
|
|
|
|
|
|
|
|
import { Command_Curve2Polyline } from "../twoD2threeD/Command_Curve2Polyline";
|
|
|
|
|
|
|
|
import { Command_Curve2VSBox } from "../twoD2threeD/Command_Curve2VSBox";
|
|
|
|
|
|
|
|
import { Command_ParseBoardName } from "../twoD2threeD/ParseBoardName";
|
|
|
|
|
|
|
|
import { Polyline2Board } from "../twoD2threeD/Polyline2Board";
|
|
|
|
|
|
|
|
import { Rect2Board } from "../twoD2threeD/Rect2Board";
|
|
|
|
|
|
|
|
import { Command_OpenCabinet } from "../OpenCabinet/OpenCabinet";
|
|
|
|
|
|
|
|
import { DrawLeftRight } from "../DrawBoard/DrawLeftRightBoard";
|
|
|
|
|
|
|
|
import { DrawTopBottomBoard } from "../DrawBoard/DrawTopBottomBoard";
|
|
|
|
|
|
|
|
import { DrawBehindBoard } from "../DrawBoard/DrawBehindBoard";
|
|
|
|
|
|
|
|
import { DrawLayerBoard } from "../DrawBoard/DrawLayerBoard";
|
|
|
|
|
|
|
|
import { DrawVerticalBoard } from "../DrawBoard/DrawVerticalBoard";
|
|
|
|
|
|
|
|
import { DrawSingleBoard } from "../DrawBoard/DrawSingleBoard";
|
|
|
|
|
|
|
|
import { DrawClosingStrip } from "../DrawBoard/DrawClosingStrip";
|
|
|
|
|
|
|
|
import { DrawDoor } from "../DrawBoard/DrawDoor";
|
|
|
|
|
|
|
|
import { DrillConfig } from "../DrawDrilling/DrillConfig";
|
|
|
|
|
|
|
|
import { DrawDrilling } from "../DrawDrilling/DrawDrilling";
|
|
|
|
|
|
|
|
import { DrawSpecialShapedBoard } from "../DrawBoard/DrawSpecialShapedBoard";
|
|
|
|
|
|
|
|
import { DrawSpecialShapedBoardByContour } from "../DrawBoard/DrawSpecialShapedBoardByContour";
|
|
|
|
|
|
|
|
import { Command_ApplyModelToBoards } from "../DrawBoard/ApplyModelToBoards";
|
|
|
|
|
|
|
|
import { ApplyModel2ToBoard } from "../DrawBoard/ApplyModel2ToBoard";
|
|
|
|
|
|
|
|
import { LinearCutting, RectLinearCutting } from "../BoardCutting/LinearCutting";
|
|
|
|
|
|
|
|
import { NonAssociativeCutting } from "../BoardCutting/NonAssociativeCutting";
|
|
|
|
|
|
|
|
import { ReferenceCutting } from "../BoardCutting/ReferenceCutting";
|
|
|
|
|
|
|
|
import { AddPtOnBoard, DeletePtOnBoard } from "../AddPtOnBoard";
|
|
|
|
|
|
|
|
import { BoardFindModify } from "../BoardFindModify";
|
|
|
|
|
|
|
|
import { LookOverBoardInfos } from "../LookOverBoardInfos/LookOverBoardInfos";
|
|
|
|
|
|
|
|
import { BoardBatchCurtail } from "../BoardBatchCurtail";
|
|
|
|
|
|
|
|
import { BatchModifyPanel } from "../BatchModifyPanel";
|
|
|
|
|
|
|
|
import { Command_AutoDimBrs } from "../DrawDim/AutoDimBrs";
|
|
|
|
|
|
|
|
import { Command_BoardInfoDimTool } from "../DrawDim/BoardInfoDimTool";
|
|
|
|
|
|
|
|
import { Command_FastDimBrs } from "../DrawDim/FastDim/FastDim";
|
|
|
|
|
|
|
|
import { BreakDim } from "../DrawDim/BreakDim";
|
|
|
|
|
|
|
|
import { DeleteDim, DeleteMinDim } from "../DrawDim/DeleteDim";
|
|
|
|
|
|
|
|
import { RotateLayerBoard } from "../RotateLayerBoard";
|
|
|
|
|
|
|
|
import { DrawDrawrer } from "../DrawBoard/DrawDrawer";
|
|
|
|
|
|
|
|
import { DeleteDrill } from "../DrawDrilling/DeleteDrill";
|
|
|
|
|
|
|
|
import { ReverseDrillFace } from "../DrawDrilling/ReverseDrillFace";
|
|
|
|
|
|
|
|
import { Command_FZWL } from "../FZWL";
|
|
|
|
|
|
|
|
import { EditorBoardTemplate } from "../DrawBoard/EditorBoardTempate";
|
|
|
|
|
|
|
|
import { ActicityLayerBoard } from "../ActivityLayerBoard";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function registerCommand()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Puge, new Command_Purge());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("end", new Command_EndTempEditor());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//恢复板颜色
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RestoreColor, new Command_RestoreColor());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//酷家乐
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.KJLImport, new Command_KJLImport());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.KJLCongfig, new Command_KJLImportConfig("config"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.KJLMaterialMap, new Command_KJLImportConfig("material"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.KJLExport, new KjlExport());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Clearkjltoken, new ClearKjlToken());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//嘉居
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.JiaJuImport, new Command_JiaJuImport());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//晨丰导入
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.CFImport, new ImportCFData());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//编组
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Group, new Command_Group());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.UnGroup, new Command_UnGroup());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//冻结
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Freeze, new Cmd_Freeze());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.UnFreeze, new Cmd_UnFreeze());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//渲染器隐藏/显示实体
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.VisibleInRender, new Cmd_VisibleInRender());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.UnVisibleInRender, new Cmd_UnVisibleInRender());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//CAD图纸导入
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DXFImport, new Command_DWGDXFImport());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DWGImport, new Command_DWGDXFImport());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.FBXImport, new Command_FBXImport());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//帮帮我 出错了
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("999", new Command_999());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 应用 放样曲线 生成 曲面板材
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DrawArcBoard, new Command_DrawArcBoard());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (IsTest())
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testload", new Command_TestLoadFbx());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("tt", new Test());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("gxl", new Command_UpdateLight());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testVPath", new Command_TestVPath());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testRegionParse", new Command_TestRegionParse());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestBoundaryBox", new Command_TestBoundaryBox());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestSweepMaxLength", new Command_TestSweepMaxLength());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("isrect", new Command_Test_IsRect());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//插入图纸
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Insert, new Command_Insert());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Line, new DrawLine());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.XLine, new Command_DrawXLine());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Undo, new Undo());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Redo, new Redo());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Zoome, new ZoomE());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ZoomObject, new Command_ZoomObject());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RECTANG, new DrawRect());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Polygon, new DrawPolygon());
|
|
|
|
|
|
|
|
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(CommandNames.FlipZMatrix, new Command_FlipZMatrix());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SetLineOCS, new Command_SetLineOCS());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Z0, new Command_EntitytMoveToZ0());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.M0, new Command_M0());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PackageGroupMove0, new Command_PackageMove());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Rotate, new Command_Rotate());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RotateRefer, new Command_RotateRefer());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Revolve, new Command_DrawRevolve());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Sphere, new DrawSphere());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SwitchCamera, new Command_SwitchCamera());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CameraSnapshootSave, new Command_CameraSnapshootSave());
|
|
|
|
|
|
|
|
//保存和读取相机状态
|
|
|
|
|
|
|
|
for (let i = 1; i <= 9; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CameraSnapshootSaveIndex + "-" + i, new Command_CameraSnapshootSaveIndex(i));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CameraSnapshootRestore + "-" + i, new Command_CameraSnapshootRestore(i));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Erase, new Command_Erase());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeleteCurve, new DeleteCurve());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EraseLineArc, new Command_EraseLineAndArc());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Circle0", new DrawCircle0());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Break, new Command_Break());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CustomNumber, new Command_CustomNumber());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CleanCustomNumber, new Command_CleanCustomNumber());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BreakAll, new Command_BreakAll());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (IsTest())
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testPointParse", new Command_TestPointPickParse());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Stretch, new Stretch());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SelectStretch, new Stretch(true));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(CommandNames.FixView, new Command_FixView());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("grip", new DrawGripStretch());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//暂时关闭这个fbx导入
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("fbx", new Fbx());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HighlightNode, new Command_HighlightNode());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HighlightNodeAndChilds, new Command_HighlightNodeAndChilds());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideSelect, new Command_HideSelected());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideUnSelect, new Command_HideUnselected());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Show, new Command_ShowAll());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Save, new Save());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SaveAs, new SaveAs());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SaveToLocal, new SaveToLocal());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SaveToDxf, new SaveToDxf());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.New, new New());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Open, new Open());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Reopen, new ReOpen());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OpenHistory, new OperLogs(false));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OpenHistory2, new Command_OpenHistory());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Arc, new DrawArc());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ent", new Entsel());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (IsTest())
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("sky", new DrawSky());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Reg, new DrawRegion());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CustomUCS, new CustomUcs());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("reg2", new DrawRegTest());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Copy, new Command_Copy());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//超级拷贝
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SuperCopy, new Command_SuperCopy());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("Wblock", new Command_Wblock());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("lisp", new Command_Lisp());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Reverse, new Command_Reverse());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Extend, new Command_Extend());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Trim, new Command_Trim());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Fillet, new CommandFillet());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("testFilletCode", new TestFillet());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Offset, new Command_Offset());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("OT", new Command_DynOffset());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("TO", new Command_DynOffsetToolPath());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Length, new Command_Length());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Area, new Command_Area());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//绘制灯
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PointLight, new DrawPointLight());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SpotLight, new DrawSpotLight());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SpotLight2, new DrawSpotLight2());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RectLight, new DrawRectAreaLight());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BatchModifyLights, new BatchModifyLights());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ptcopy", new Command_CopyPoint());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("tan", new DrawTangentLine());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.DimArc, new Command_DimArc());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideDim, new Command_HideDim());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowDim, new Command_ShowDim());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//画板件命令 这一段在ShareView中有依赖,不要移除
|
|
|
|
|
|
|
|
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.ZXLK, new Command_ApplyModelToBoards());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Model2Contour, new ApplyModel2ToBoard());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.LinearCutting, new LinearCutting());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RectLinearCutting, new RectLinearCutting());
|
|
|
|
|
|
|
|
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.BatchModifyPanel, new BatchModifyPanel());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AutoDimBrs, new Command_AutoDimBrs());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BoardInfoDim, new Command_BoardInfoDimTool());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FastDimBrs, new Command_FastDimBrs());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BreakDim, new BreakDim());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeleteDim, new DeleteDim());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DeleteMinDim, new DeleteMinDim());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DimStyle, new Command_DimStyle());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(CommandNames.FZWL, new Command_FZWL());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EditorboardTemplate, new EditorBoardTemplate());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ActicityLayerBoard, new ActicityLayerBoard());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//改板
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SetBRXAxis, new Command_SetBRXAxis());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SelectThinBehindBoard, new SelectThinBehindBoard());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改颜色命令
|
|
|
|
|
|
|
|
// for (let i = 0; i <= 255; i++) commandMachine.RegisterCommand(i.toString(), new ChangeColor(i));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TestM, new FeedingCommand()); //模拟走刀
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TestFb, new TestFb()); //模拟封边
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Mirror, new MirrorCommand());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Topline, new ShowTopLine());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//酒格
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Winerack, new ConfigureWineRack());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Drawwinerack, new DrawWineRack());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Editorwinerack, new EditorWineRack());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Explode, new Command_Explode());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Explosion, new Command_ExplosionMap());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OpenCabinet, new Command_OpenCabinet());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Lattice, new DrawLattice());
|
|
|
|
|
|
|
|
/*******test ↓↓↓*********/
|
|
|
|
|
|
|
|
// if (IsTest())
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("pltest", new Command_PLTest());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("tt2", new Command_INsTest());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("outcur", new TestTargeOnCurve());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("close", new Command_ClosePt());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// //多段线变碎点多段线
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestPolyline2PointsPolyline", new Command_TestPolyline2PointsPolyline());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestParseEdgeSealDir", new Command_TestParseEdgeSealDir());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("oo", new OffsetX());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testw", new Command_TestTape());
|
|
|
|
|
|
|
|
// //测试csg
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestDrawEdgeGeometry", new Command_TestDrawEdgeGeometry());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SimplifyPolyline, new Command_SimplifyPolyline());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("RemovePolylineRepeatPos", new Command_RemovePolylineRepeatPos());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//用于测试包围盒
|
|
|
|
|
|
|
|
// if (IsTest())
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("box", new Command_TestBox());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestIntersect", new TestIntersect());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("collison", new TestCollision());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//阵列
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Array, new Command_Array());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CopyClip, new CopyClip());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CopyBase, new CopyClip(true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PasteClip, new PasteClip());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//UI命令
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Comanp, new Command_CommandPanel());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.PropertiesBar, new Command_PropertiesBar());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ModuleBar, new Command_ModuleBar());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ChangeLayout, new Command_ChangeLayout());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// for (const key in RightTabCommandMap)
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(RightTabCommandMap[key], new Command_RightPanel(key));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SwitchServers, new Comman_SwitchServers());
|
|
|
|
|
|
|
|
//选项
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Config, new Command_Options(EOptionTabId.Show));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DimStyle, new Command_DimStyle());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TextStyle, new Command_Options(EOptionTabId.TextStyle));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("esc", new Command_Esc());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EraseNoSelect, new Command_EraseNoSelect());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("st", new SaveTarget())
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("rt", new RevTarget())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//视觉样式
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Wireframe, new ChangeRenderType(RenderType.Wireframe));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Conceptual, new ChangeRenderType(RenderType.Conceptual));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ConceptualTransparent, new ChangeRenderType(RenderType.Conceptual, 0.5));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Physical, new ChangeRenderType(RenderType.Physical));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Physical2, new ChangeRenderType(RenderType.Physical2));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PrintType, new ChangeRenderType(RenderType.Print));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckEdge, new ChangeRenderType(RenderType.Edge));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckPlaceFace, new ChangeRenderType(RenderType.PlaceFace));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BigHoleFace, new ChangeRenderType(RenderType.BigHoleFace));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.VisualStyle_CustomNumber, new ChangeRenderType(RenderType.CustomNumber, 0.2));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ModelGroove, new ChangeRenderType(RenderType.ModelGroove, 0.2));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BackgroundSwitching, new BackgroundSwitching());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Renderer, new CMD_Renderer());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//导入导出配置
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DownloadConfig, new DownLoadDConfig());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.UploadConfig, new UpLoadConfig());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DownloadHoleOption, new DownloadHoleOption());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.UploadHoleConfig, new UploadHoleOption());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MES
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ChaiDan, new ChaiDan());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ChaiDanJB, new ChaiDanJB());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ShowYouhua, new ShoWYouHua());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Decompose, new Decompose());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ChaiDanExport, new ChaiDanExport());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// shareview
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ShareView, new Command_ShareView());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//批量修改封边排钻
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.BatchModify, new BatchModify());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.EditDrilEdgeData, new Command_EditBoardDrilEdgeData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.EditSealEdgeData, new Command_EditBoardSealEdgeData());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//自动设置孔面
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AutoHoleFaceSetting, new AutoHoleFaceSetting());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//绘制复合实体
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Combine, new Command_CombineEntity());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Template
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Template, new ShowTemplate("Administration"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TemplateCollection, new ShowTemplate("Collection"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TemplateDesign, new ShowTemplateDesign());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Modeling, new Command_Modeling());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.templateDelete, new Command_DeleteTemplate());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TemplateCheck, new Command_TemplateSearch(true));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.TemplateGroup, new Command_TemplateGroup());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SpliteTemplate, new Command_SplitTemplate());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("SplitTemplateX", new Command_SplitTemplateByDir(0));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SplitTemplateY, new Command_SplitTemplateByDir(1));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("SplitTemplateZ", new Command_SplitTemplateByDir(2));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.RotateTemplateSpace, new Command_RotateTemplateSpace());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.RenderModulesState, new Command_RenderModulesState());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//优化算法
|
|
|
|
|
|
|
|
// if (IsTest())
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("DebugTemplateAssocCount", new Command_DebugTemplateAssocCount());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testlir", new Command_TestLIR());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testNFP", new Command_TestNFP());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testSimply", new Command_TestSimply());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testSimply2", new Command_TestPolylin2Points());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testPlace", new Command_TestPlace());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYH", new Command_TestYHWorker());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYH2", new Command_TestYH2());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYHSingle", new Command_TestYHSingle());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYHDraw", new Command_TestDrawYHData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYHDraw2", new Command_TestDrawYHData2());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testYHSave", new Command_TestSaveYHData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("testSum", new Command_TestSum());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestSimplyOddments", new Command_TestSimplyOddments());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestParseOddments", new Command_TestParseOddments()); //分析余料
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand("TestContainer", new Command_TestContainer()); //绘制Container
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EditorLattice, new EditorLattice());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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(CommandNames.ExportData, new Command_ExportData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ExportView, new Command_ExportView());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.EnableSyncData, new Command_EnableSyncData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DisableSyncData, new Command_DisableSyncData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ToggleSyncData, new Command_ToggleSyncData());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ToggleViewFollow, new Command_ToggleViewFollow());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//加工组
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowProcessingGroupModal, new Command_ShowProcessingGroupModal());
|
|
|
|
|
|
|
|
//对纹组
|
|
|
|
|
|
|
|
// if (IsTest())
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.AlignLineGroup, new Command_AlignLineGroup());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Text2Curve, new Text2Curve());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DrawVSBOX, new DrawVisualSpaceBox());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Align, new Align());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.BuyMaterial, new BuyMaterial());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Interfere, new Interfere());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Knife, new ShowKinfeManageModal());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.PickUp2DModelCsgs, new Command_PickUp2DModelCsgs());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ModifyGroovesKnife, new Command_GroovesModify());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowDoor, new Command_SwitchDoorOrDrawer(true, true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideDoor, new Command_SwitchDoorOrDrawer(false, true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowDrawer, new Command_SwitchDoorOrDrawer(true, false));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HideDrawer, new Command_SwitchDoorOrDrawer(false, false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Show2DPathLine, new Command_Show2DPathLine(true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Hide2DPathLine, new Command_Show2DPathLine(false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Show2DPathObject, new Command_Show2DPathObject(true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Hide2DPathObject, new Command_Show2DPathObject(false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//线条变矩形
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Curve2Rect, new Command_Curve2Polyline());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.R2b, new Polyline2Board());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Curve2VSBox, new Command_Curve2VSBox());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SetSmoothEdge, new SetSmoothEdge());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ClearRef, new DeleteRelevance());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Clear2DModeling, new Command_ClearBoard2DModeling());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ExportobjMtl, new Command_ExportObjAndMtl());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ExportObj, new Command_ExportObj());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ExportSTL, new Command_ExportSTL());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.UpdateBoardInfos, new UpdateBoardInfos());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ToggleUI, new Command_ToggleUI());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.BoardReplaceTempate, new BoardReplaceTempate());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ResetCustomCommand, new Command_ResetCustomCommand());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Dist, new Command_Dist());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.RecyleBin, new ShowRecycleBin());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ChangeColorByMaterial, new ChangeColorByMaterial());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ChangeColorByRoomOrCabinet, new ChangeColorByRoomCabinet());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ChangeBoardColorByPBFace, new Command_ChangeBoardColorByPBFace());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TextModifyTool, new Command_TextModifyTool());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SelectAll, new SelectAll());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckHoles, new CheckHoles());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CombinatAttributeBrush, new CombinatAttributeBrush());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.MatchProp, new Command_MatchProp());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Rect2Winerack, new Polyline2Winerack());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EditFrame, new EditFrame());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.EditView, new EditViewport());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.MView, new DrawViewport());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.MView4, new Draw4Viewport());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowFrame, new ShowFrmae());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OneKeyLayout, new OneKeyLayout());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SwitchLines, new SwitchLines());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SwitchOpenDirLines, new ShowOpenDirLiens());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.MView2, new Draw2Viewport());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.MView3, new Draw3Viewport());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OneKeyPrint, new OneKeyPrint());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SetHoleNoneType, new SetHoleNoneType());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FindMaxSizeBoard, new FindMaxOrMinSizeBoard());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FindMinSizeBoard, new FindMaxOrMinSizeBoard(false));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FindBoardModelingKnife, new Command_FindBoardModelingKnife());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckNoHoleBoard, new CheckHasHoleBoard());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CheckDrawHole, new CheckDrawHole());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FindModelKnifeRadius, new FindModeingKnifeRadius());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.EditorBBS, new ShowEditorBBS());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ToggleDrillingReactor, new ToggleDrillingReactor());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.OneClickInspection, new OneClickInspection());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AddAloneDrillLock, new AddAloneDrillLock(true));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RemoveAloneDrillLock, new AddAloneDrillLock(false));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AddAssocDrillLock, new AddAssocDrillLock());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RemoveAssocDrillLock, new RemoveAssocDrillLock());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.RemoveDrillLock, new RemoveDrillLock());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CuttingFace, new CuttingByFace());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.CuttingRectFace, new CuttingByRectFace());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.DrawTempByImport, new DrawTemplateByImport());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.R2B2, new Rect2Board());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FixIntSelfContour, new FixIntersectSelfContour());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("fix2dpath", new Command_Fix2DPath());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ParseHinge, new ParseHinge());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ParseHandle, new ParseHandle());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ZhengWen, new SetBoardLines(0));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FanWen, new SetBoardLines(1));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.KeFanZuan, new SetBoardLines(2));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ZhengMian, new SetComposingFace(0));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.FanMian, new SetComposingFace(1));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.SuiYiMian, new SetComposingFace(2));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ShowHSPanel, new ShowHideSelectPanel());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.ParseBoardName, new Command_ParseBoardName());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Down, new Command_Cmd_Down());
|
|
|
|
|
|
|
|
//Gizmo
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AxesDisable, new Command_SetGizmoMode(TransMode.OCS));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AxesTranslate, new Command_SetGizmoMode(TransMode.Move));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AxesRotate, new Command_SetGizmoMode(TransMode.Rotate));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.AxesScale, new Command_SetGizmoMode(TransMode.Scale));
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.GizmoCSSwith, new Command_GizmoCSSwith());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Room
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawWall, new Command_DrawWall());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawWallInside, new Command_DrawWallInside());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Curve2Wall, new Command_Curve2Wall());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SetWallThick, new Command_SetWallThick());
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawRectWall, new Command_DrawRectWall());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawIHole, new Command_DrawHole(DrawHoleType.I, IHoleType.Window));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawDoorHole, new Command_DrawHole(DrawHoleType.I, IHoleType.Door));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawLHole, new Command_DrawHole(DrawHoleType.L));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawUHole, new Command_DrawHole(DrawHoleType.U));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawIWindow, new Command_DrawRoomWindow(DrawHoleType.I, IHoleType.Window));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawLWindow, new Command_DrawRoomWindow(DrawHoleType.L, IHoleType.Window));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawUWindow, new Command_DrawRoomWindow(DrawHoleType.U, IHoleType.Window));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.DrawIDoor, new Command_DrawRoomDoor()); //门
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.YZC, new Command_OneKeyDrawYZCWindow(DrawHoleType.I, IHoleType.Window, true)); //一字窗
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.LDC, new Command_OneKeyDrawLDCWindow(DrawHoleType.I, IHoleType.Window, true)); //落地窗
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.PC, new Command_OneKeyDrawPCWindow(DrawHoleType.I, IHoleType.Window, true)); //飘窗
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ZJC, new Command_OneKeyDrawZJCWindow(DrawHoleType.L, IHoleType.Window, true)); //转角窗
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.ZJPC, new Command_OneKeyDrawZJPCWindow(DrawHoleType.L, IHoleType.Window, true)); //转角飘窗
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.YJHM, new Command_OneKeyDrawYJHMWindow(true)); //一键画门
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HeadCeilingContour, new Command_HeadCeilingContourManage()); //吊顶轮廓材质面板
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HeadCeilingMaterialPanel, new Command_HeadCeilingMaterialPanel()); //吊顶轮廓材质面板
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.HeadCeilingInfoConfigPanel, new Command_HeadCeilingInfoConfigPanel()); //吊顶轮廓材质面板
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//SelectEntity
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SelectBoard, new Command_SelectEntity(Board, "请选择板:"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SelectCurve, new Command_SelectEntity(Curve, "请选择曲线:"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SelectDim, new Command_SelectEntity(Dimension, "请选择尺寸:"));
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SelectText, new Command_SelectEntity(DbText, "请选择文字:"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (IsTest())
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand("ParseWall", new Command_ParseRoomWall());
|
|
|
|
|
|
|
|
//画廊命令
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.Gallery, new Command_Gallery());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//在线售后
|
|
|
|
|
|
|
|
// commandMachine.RegisterCommand(CommandNames.SendCADFileToKF, new Command_SendCADFileOnKf());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改注册位置
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Attach, new TemplateAttach());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.Attach2, new TemplateAttach2());
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TemplateArray, new TemplateArray());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export async function LimitCommand()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (userConfig.showShareModule)
|
|
|
|
|
|
|
|
commandMachine.RegisterCommand(CommandNames.TemplateSearch, new Command_TemplateSearch());
|
|
|
|
|
|
|
|
}
|