示例#1
0
        internal void StartLocateCommand(string unparsed = "")
        {
            LocateCommand1 command = new LocateCommand1();

            BCOM.CommandState commandState = Program.MSApp.CommandState;
            commandState.StartLocate(command);

            // Record the name that is saved in the Undo buffer and shown as the prompt.
            Program.MSApp.CommandState.CommandName = "Locate Command";
        }
示例#2
0
        internal void StartPlacementCommand(string unparsed = "")
        {
            //Create a PlaceRouteCommand object
            PlacementCommand1 command = new PlacementCommand1();

            BCOM.CommandState commandState = Program.MSApp.CommandState;
            Program.MSApp.CommandState.StartPrimitive(command, false);
            // Record the name that is saved in the Undo buffer and shown as the prompt.
            Program.MSApp.CommandState.CommandName = "Placement Command";
        }