Solution: Writing files, Nesting, Indentation, Comments
-
Posting this in case it might be useful to someone.
I've figured out a way to have macros write macros with:
- Any writing recursion depth (a macro writing a macro writing a macro writing a macro ... etc.)
- Control over comment propagation
- Preserved white space, including meta command indentation
The simple explanation is, use M559 and give it the S parameter, using the number of characters including one line feed for each line. Since I'm writing the G-Code macros using VBA, my VBA code handles this calculation. I'd be happy to share my VBA code if anyone wants it. I'm really pretty excited about solving this.
Here's my test example: