- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some help for this macro, currently it is used to activate a toolpath, I would like that when activating the toolpath it expands the folder where the toolpath is located.
STRING LIST $names = extract(folder("Toolpath"),"name")
INT LIST $Choices = INPUT CHOICE MULTIPLE $names "Choose_Toolpats"
FOREACH tpn IN $Choices {
ENTITY tp = entity("Toolpath",$names[$tpn])
ACTIVATE TOOLPATH $tp.Name
}
STRING LIST tpathFolders = extract(folder("Toolpath"),"name")
STRING LIST tPaths = {}
$tPaths = extract(folder("Toolpath"),"name")
STRING first = $tpathFolders[$i] + "\" + remove_first(tPaths)
STRING last = $tpathFolders[$i] + "\" + remove_last(tPaths)
// Select all the toolpaths in the folder
EXPLORER SELECT TOOLPATH $first NEW
EXPLORER SELECT TOOLPATH $last SERIES
Solved! Go to Solution.