Thought I'd take the time to share something thats helped me out a lot in the last year.
I do a lot of reading on here and haven't seen anything like this. I can't write VB and at the time we didn't have any cam software and the ol' Tree machine never had macros either. So, one day while I was writing a bunch of boring code for cutting back and forth in a slot, I decided to create the excel sheet I've attached. The "slot generator" page was my first, but you can see if you check out the file that I've found a lot of uses for this trick. Now this workbook stays open half the time on my desktop.
We do a lot of probing, drilling, tapping, and countersinking hole patterns here with parts that are on fixtures and all different obstacles like clamps in the way.
Naturally, when I program these tools to only retract when they have to, it saves time in the cycle, and when theres a lot of holes it saves a lot of time.
When we first got the Haas, I wrote programs that retracted to initial plane (G98) between every hole, and found out that going back through and editing the code to remove unnecessary movement, it was very tedious and if I made a mistake, a crash could occur, a PROBE crash even.
Now I have a sheet in the workbook that spits out a complete program that will: probe the center of a frame and a ring side by side, probe the Z variance at the hole locations on the ring, drill and tap the frame, and drill and counter-sink the ring. All with the retracts being setup in the early stages of fixture design.
I couldn't write a macro this in-depth, I don't know how you'd write one to do what I'm doing, but I bet if there's a way, its a lot more complex, less flexible, and doesn't heve a nifty self-designed GUI to go with it. Or maybe you don't have macros on your machine. Most the macros I've written so far could be accomplished with an excel sheet like this. In fact, most of my macros start off as excel sheets.
So there ya go,
take my file, check it out, and start dreaming of ways you could use it or improve it.
Just shout back at me and let me know what you come up with.