- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there anyone who can help me modify a macro,
I have a macro to renumber the beginning of a NC program, But i need one to renumber the extra numbers that are added on from modifying and copying programs in numerical order so i dont need to do them indivdually.
example.
Macro that i have for NC program-
int $counter = 100
string $new_name = ""
$counter = INPUT "Enter start counter value"
FOREACH $progr IN folder('ncprogram') {
$new_name = $counter + "_" + $progr.name
RENAME NCProgram $progr.name $new_name
$counter = $counter + 1
}
thank you
Solved! Go to Solution.