Message 1 of 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Afternoon All,
Trying to get this macro to run. Seems like it should be fairly simple, but can't wrap my Peabrain around it.
The first block runs, the second block runs, can't get it to run as a whole. Any help would be greatly appreciated.
FUNCTION Main() {
CREATE FOLDER "Toolpath" ;
ACTIVATE FOLDER "Toolpath\Folder1"
RENAME FOLDER "Toolpath\Folder1"
}
FOREACH toolpath IN folder ("TOOLPATH") {
STRING $Path = dirname(pathname(toolpath))
IF $Path == 'Toolpath' {
EDIT FOLDER ; INSERT $toolpath LAST
}
}
DEACTIVATE FOLDER
Kind Regards,
Not cnc, you can call me Peabrain
Solved! Go to Solution.