select all toolpaths you whant to change then run this macro:
entity list $tps = explorer_selected_entities()
if size($tps) <= 0 {
return
}
if $tps[0].RootType != 'toolpath' {
return
}
foreach $tp in filter($tps, 'entity_exists(this.Tool)') {
string $newName = replace($tp.Name,'D',tp.Tool.Overhang)
if tp.Name == $newName {
continue
}
if entity_exists(entity('toolpath',$newName)) {
$newName = new_entity_name('toolpath',$newName)
}
rename toolpath ${tp.Name} ${newName}
}
I also could write you one where it adds the overhang to the end of the name so you dont have to add a 'D'.
Also you can add macros to keyboard shortcuts in the options, so you dont have to drag/drop the file into powermill all the time.
Can you help me 1 more ?
with this macro with all tool
here you go:
entity list $tps = explorer_selected_entities()
if size($tps) <= 0 {
return
}
if $tps[0].RootType != 'toolpath' {
return
}
dialogs message off
foreach $tp in filter($tps, 'this.Computed == 1') {
activate toolpath $tp
EDIT COLLISION TYPE COLLISION
EDIT COLLISION STOCKMODEL_CHECK N
EDIT COLLISION SCOPE ALL
EDIT COLLISION SPLIT_TOOLPATH N
EDIT PAR 'Verification.UseVerificationThickness' 1
EDIT PAR 'Verification.UseVerificationThickness' 0
EDIT COLLISION DEPTH N
EDIT COLLISION DEPTH Y
EDIT COLLISION ADJUST_TOOL Y
EDIT COLLISION APPLY
}
dialogs message on