/// <summary> /// Set the tool's start position. /// </summary> /// <param name="method"> /// <see cref="StartPointMethod"/> /// </param> /// <param name="x">tool's x position axis </param> /// <param name="y">tool's y position axis</param> /// <param name="z">tool's z position axis</param> public void SetStartPointMethod(StartPointMethod method, double x = 0, double y = 0, double z = 0) { SetParameter(Resources.StartPointMethod, Resources.ResourceManager.GetString(method.ToString())); if (method == StartPointMethod.Absolute) { SetParameter(Resources.StartPointPositionX, x); SetParameter(Resources.StartPointPositionY, y); SetParameter(Resources.StartPointPositionZ, z); } }
/// <summary> /// Set the tool's start position. /// </summary> /// <param name="method"> /// <see cref="StartPointMethod"/> /// </param> /// <param name="point">tool's point of x,y,z axis </param> public void SetStartPointMethod(StartPointMethod method, Point point) { SetStartPointMethod(method, point.X.Value, point.Y.Value, point.Z.Value); }