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: 

HOW TO DELET SOME TOOLPATH IN MACRO

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
PRAMET-DORMERR
404 Views, 2 Replies

HOW TO DELET SOME TOOLPATH IN MACRO

PRAMETDORMERR_1-1626669591103.png

 

 HOW TO REMOVE SOME TOOLPATH IN MACRO

2 REPLIES 2
Message 2 of 3
cfastNJWK6
in reply to: PRAMET-DORMERR

The following macro code will delete any toolpath that has "_#" (underscore then number).

STRING LIST $Copies = {"_1", "_2", "_3", "_4", "_5", "_6", "_7", "_8", "_9"}

FOREACH $tp IN folder('Toolpath') {
	INT $Length = length($tp.Name)	
	STRING $LastTwo = substring($tp.Name, ($length - 2), $length)
	IF member($Copies, $LastTwo) {
		DELETE TOOLPATH $tp.Name		
		}
	}
	
MESSAGE INFO "Done."
Message 3 of 3

Perfect macro thanks 

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

Post to forums  

Autodesk Design & Make Report