Macro to Copy Toolpath with Query of how many times to copy

Macro to Copy Toolpath with Query of how many times to copy

mgaultEUT5R
Contributor Contributor
435 Views
2 Replies
Message 1 of 3

Macro to Copy Toolpath with Query of how many times to copy

mgaultEUT5R
Contributor
Contributor

Good Day,

 

I was wondering if someone would be able to help me with the creation of a macro that would copy a toolpath and ask how many i would like to copy.  There are times that I need to copy the same toolpath many times but am forced to right click or clone.  Can be very annoying after copying over 100X.

 

Thank You In Advance.

0 Likes
436 Views
2 Replies
Replies (2)
Message 2 of 3

icse
Advisor
Advisor

here you go:

 

 

if not entity_exists('toolpath','') {
	return
}

int $n = input 'NumberOfCopies'

while $n > 0 {
	$n = $n - 1
	COPY TOOLPATH ;
}

 

this copies the active toolpath

 

0 Likes
Message 3 of 3

mgaultEUT5R
Contributor
Contributor

Thank you so much for the quick turn around.  I have tested the macro and is running great.

0 Likes