Beispiel #1
0
        private void LoadPenDown(Point3D pt)
		{
			if (LoadOptions.PenMoveType == LoadOptions.PenType.ZMove)
			{
				var r = new G01Command();
				if (LoadOptions.EngravePosInParameter)
				{
					r.AddVariableParam('Z', "2");
				}
				else
				{
					r.AddVariable('Z', LoadOptions.EngravePosDown);
				}
				if (LoadOptions.EngraveDownSpeed.HasValue)
				{
					r.AddVariable('F', LoadOptions.EngraveDownSpeed.Value);
					_needSpeed = LoadOptions.MoveSpeed.HasValue;
				}
				Commands.AddCommand(r);
			}
			else // if (LoadOptions.PenMoveType == LoadInfo.PenType.Command)
			{
				LaserOn();
			}

			AddCamBamPLine();
			AddCamBamPoint(pt);
		}