- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys! I have a problem creating NC programs with macro. I found this macro, which creates NC programs from folders.
// Loop through all toolpaths
FOREACH $tp IN FOLDER('toolpath') {
STRING Fold=pathname( $Tp )
STRING NCProgDir=DIRNAME($Fold)
STRING NCProgName=SUBSTRING($NCProgDir,9)
IF NOT ENTITY_EXISTS('Ncprogram',$NCProgName) AND $NCProgDir != "Toolpath" {
EDIT FOLDER $NCProgDir NCPROGRAM
}
}
Id like to modify to able to use it when the folder inside an other folder.
For example there is a main folder ( A ) and inside there is X and Y folder wich contains toolpaths. I hope you can help me. Thanks!
Solved! Go to Solution.
Link copied