;

Macro to check all toolpaths in a project for collisions and gouges in PowerMill

Modified on Tue, 15 Apr at 9:05 AM

Original Autodesk Article:
https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Macro-to-check-all-toolpaths-in-a-project-

for-collisions-and-gouges-in-PowerMill.html


The following macro automates the process for checking each toolpath in a project for collisions and gouges. It has been slightly modified from the macro in the original Autodesk article.  

// Loop through each toolpath in the project
FOREACH $tp IN folder("TOOLPATH") {
  ACTIVATE Toolpath $tp.name

  // Set parameters for collision checking
  EDIT COLLISION TYPE COLLISION
  EDIT COLLISION STOCKMODEL_CHECK N
  EDIT COLLISION SCOPE ALL
  EDIT COLLISION SPLIT_TOOLPATH Y
  EDIT COLLISION SPLIT_TOOLPATH N
  EDIT COLLISION HOLDER_CLEARANCE ".125"  
  EDIT COLLISION HEAD_CLEARANCE "4"
  EDIT COLLISION DEPTH Y
  DRAW COLLISION

  // Do the collision check
  EDIT COLLISION APPLY

  // Switch to gouge checking
  EDIT COLLISION TYPE GOUGE

  // Do the gouge check
  EDIT COLLISION APPLY
}


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article