Example #1
0
        public void SetGrapPointCoords(int PointIndex, float x, float y, float z, float rz)
        {
            if (m_UniqueRobot != null)
            {
                cPoint TempPoint = m_UniqueRobot.GetGlobalPoint(PointIndex);
                if (TempPoint != null)
                {
                    TempPoint[eAxisName.X]  = x * 1000;
                    TempPoint[eAxisName.Y]  = y * 1000;
                    TempPoint[eAxisName.Z]  = z * 1000;
                    TempPoint[eAxisName.RZ] = rz * 1000;

                    m_UniqueRobot.SetGlobalPoint(PointIndex, TempPoint);
                }
            }
        }