Message 1 of 6
extract toolpath folder in project folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI, There !
I'm exploring through a macro that must create folders in "Nc programs" explorer.
Folders are already in "Toolpath" explorer.
And these "Nc programs" folder must be created in Project > Ncprograms.
I'm working on this code below ...........
// macro start ===========
STRING $dirpath = project_pathname(0) + "/ncprograms/"
MKDIR $dirpath
EXPLORER SELECT TOOLPATH ROOT
STRING LIST TPFOLDERS = get_folders('TOOLPATH')
FOREACH tp IN TPFOLDERS {
CREATE FOLDER project_pathname(0) + '\ncprograms\' $tp
}
can someone add their idea, where I'm wrong.
Thank you !