Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rename toolpath micro

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
bd.yogesh
747 Views, 3 Replies

Rename toolpath micro

hello Sir,

we require micro for rename toolpath as per below program sequence.

 

program sequence

O2001_D16 R0.4 BULL L100 ROUGH

O2002_D12 FEM L50 REST ROUGH

O2003_D6 FEM L42 REST ROUGH

O2007_D6 FEM L42 FLAT FINISH

3 REPLIES 3
Message 2 of 4
Sudhira
in reply to: bd.yogesh

Hi,

Thanks for posting your query.

 

I have a macro for rename toolpath but not exactly match your requirements. But you can manage with this macro. Hope this works for you. 

 

Thank you and have a great day!


Thanks,
Sudhira Dora
Message 3 of 4
bd.yogesh
in reply to: Sudhira

HELLO,THANKS FOR YOUR UPDATES

I HAVE MAKE NEW MICRO AS PER BELOW

 

 

int $counter = 1001
string $new_name = ""
PRINT $f_name

$counter = INPUT "Enter start counter value"
string prompt = "Enter_a_P-R-E-F-I-X"

FOREACH $tp IN folder('toolpath') {
Activate Toolpath $tp.Name

$new_name = "O"+ $counter + "_"+ $toolpath.name
RENAME toolpath $toolpath.name $new_name

$counter = $counter + 1
}

Message 4 of 4
Hemant_2022
in reply to: Sudhira

Hello Sir,

 

Can YOU RESEND test zip file.

 

Thank You. 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report