- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to change my toolpath name as given below
Original
1_01_00_Rough
1_01_00_Finish1
1_02_00_Finish3
1_02_00_Finish3
The output need is
1_01_00_Rough
1_02_00_Finish1
1_03_00_Finish3
1_04_00_Finish3
See the macro below, only I can change "01" character only
INT Count = 00
FOREACH tp IN folder('Toolpath') {
ACTIVATE TOOLPATH $TP.Name
$Count = Count + 01
//STRING NewName = replace(tp.Name, '01', "0" +'$Count')
STRING NewName = Replace(tp.Name, "0" +'$Count', Start:=3)
RENAME TOOLPATH $tp.Name $NewName
}
Solved! Go to Solution.