You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
503 B
C++

#include "StdAfx.h"
#include "CreaterMotorToMachineOrigin.h"
#include "WorkCmdMotorToMachineOrigin.h"
CCreaterMotorToMachineOrigin::CCreaterMotorToMachineOrigin(const CString &str)
:CCreaterWorkCmd(str)
{
}
CCreaterMotorToMachineOrigin::~CCreaterMotorToMachineOrigin(void)
{
}
void CCreaterMotorToMachineOrigin::Creat()
{
CWorkCmd *pCmd = NULL;
//参数1 表示那个电机
CString Motor = GetPar(1);
pCmd = new CWorkCmdMotorToMachineOrigin(*(CMotor::GetMotor(Motor)));
AddCmd(pCmd);
}