Community
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.
Solved! Go to Solution.
Solved by icse. Go to Solution.
https://forums.autodesk.com/t5/powermill-forum/help-mirror-macro/m-p/12444743
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
Can't find what you're looking for? Ask the community or share your knowledge.