- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm looking to make some macros so that we can automatically generate toolpaths for our more commonly used strategies.
The issue I've got is that when I run the macro, unless the toolpath number automatically generated is the same as the one generated when I wrote the macro, it won't work.
The macro line in question is - RENAME TOOLPATH "1" "EM8 MAC rough"
where "1" is the automatically generated toolpath name and "EM8 MAC rough" is whatever the name of that particular strategy is called.
The issue is when there has already been a toolpath generated with the name "1". Even if it has subsequently been renamed, running the macro gives an error message along the lines of TOOLPATH 1 ALREADY EXISTS. It's trying to rewrite toolpath 1 but the toolpath generated by the macro might be toolpath 2 or 3 or so on.
What I want is to write the macro so that it says something along the lines of - RENAME TOOLPATH "whatever it is called" "EM8 MAC rough"
I just don't know the macro code for "whatever it is called".
Not sure if that makes sense. Sorry, I'm all rather new to macros.....
Solved! Go to Solution.