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: 

Macro Request

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
anto_joseph4HH2K
253 Views, 4 Replies

Macro Request

Hi can anyone help me with creating a macro for,

-Mirroring all toolpath in xy for toolpaths in selected folder

-Checking Collison and gauges for selected toolpaths,ideally toolpaths in selected folder.

 

 

4 REPLIES 4
Message 2 of 5
TK.421
in reply to: anto_joseph4HH2K

https://forums.autodesk.com/t5/powermill-forum/help-mirror-macro/m-p/12444743

 

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 3 of 5
icse
in reply to: anto_joseph4HH2K

try this:

string $mirrorWP = ''
if entity_exists('workplane','') {
	$mirrorWP = entity('workplane','').Name
}

entity list $tps = input entity multiple toolpath 'select toolpaths:'

dialogs message off




foreach $tp in $tps {
	activate workplane ${mirrorWP}
	MODE TOOLPATH_TRANSFORM START ${tp.Name}
	EDIT OPTIONS TOOLPATH AUTO_APPEND NO
	MODE TRANSFORM TYPE MIRROR
	MODE TRANSFORM COPY NO
	MODE TRANSFORM MIRROR XY
	MODE TOOLPATH_TRANSFORM FINISH ACCEPT
}

foreach $tp in $tps {

	activate toolpath ${tp.Name}
	EDIT COLLISION TYPE COLLISION
	EDIT COLLISION APPLY
	EDIT COLLISION TYPE GOUGE
	EDIT COLLISION APPLY
	
}

dialogs message on
Message 4 of 5
gosmann.andreas
in reply to: icse

@icse 

iam still lerarning macros why are sometimes {} by the string?

like

activate workplane ${mirrorWP}

and not "active workplane $mirrorWP" only?

Message 5 of 5
anto_joseph4HH2K
in reply to: icse

Works absolutely great,Thank you!

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

Post to forums  

Autodesk Design & Make Report