虚函数,自定义实体重载该函数,处理夹点被移动事件
virtual Mcad::ErrorStatus moveGripPointsAt(const McGeIntArray& indices, const McGeVector3d& offset);
参数 |
说明 |
const McGeIntArray& indices |
夹点的索引位置 |
const McGeVector3d& offset |
移动方向向量 |
如果成功返回Mcad::eOk,如果传递的数据非法则返回Mcad::eInvalidInput
例如:sampleCustomEntityCustomEntity.sln例程
Acad::ErrorStatus CLinkLine::moveGripPointsAt(const AcGeIntArray& indices, const AcGeVector3d& offset) { assertWriteEnabled(); int iIndex = indices[0]; switch(iIndex) { case 0: m_start = m_start + offset; break; case 1: m_end = m_end + offset; break; case 2: m_start = m_start + offset; m_end = m_end + offset; break; } return Mcad::eOk; }