The current solution scales up the tool bodies by the same factor in all directions. Because the x and y axis can go in any direction perpendicular to the z axis, they are not necessarily aligned to the part and it is not possible to find the direction going into the part. A solution would be to offset the bRepBody rather than scaling it up. I asked about this in the API forum: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/offsett-a-brepbody/td-p/10527790
The current solution scales up the tool bodies by the same factor in all directions. Because the x and y axis can go in any direction perpendicular to the z axis, they are not necessarily aligned to the part and it is not possible to find the direction going into the part. A solution would be to offset the bRepBody rather than scaling it up. I asked about this in the API forum: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/offsett-a-brepbody/td-p/10527790