# encoding: UTF-8
# undo1 — cut1 되돌리기 1회
HB = 'E:/도진팩토리/3D스캔및티칭시스템/_자동화/inbox/_보류/_undo1_heartbeat.txt'
def hb(msg)
  begin
    File.open(HB, 'a:UTF-8') { |f| f.write("[#{Time.now.strftime('%H:%M:%S')}] #{msg}\n"); f.flush }
  rescue Exception
    nil
  end
end
hb("UNDO 시작")
Sketchup.send_action("editUndo:")
hb("UNDO 전송 완료")
puts "UNDO 1회 전송"
"UNDO1"
