I've added a sample file, it consists of 4 pockets and 2 obstacles. The obstacles could be clamps or whatever.
The numbers have been kept simple to make the gcode readable.
Edit: sorry forgot about the text file, now added below.
How to use;
After unzipping move the vbs file into your CamBam 'scripts' folder as usual, put the cb file and txt file into the folder of your choice, but both need to be in the same folder.
1. Create the geometry for your job and add your MOPs
2. Where there is an obstacle to avoid, create a 'Pointlist' that defines a route past it, there can be many points in the pointlist, if the route is like a dog's back leg for example.
3. Select the pointlist and load the script, press F5, it will ask for a Z height that the tool should go to while it moves from one point to the next along the pointlist. If you did not have a pointlist selected it will show an error message telling you to select a point list first.
4. Create more pointlists if there are more obstacles.
5. In the 'tree view' move the waypoints in between the appropriate MOPs.
6. Generate toolpaths and gcode as normal
7. A line will be drawn showing the waypoint route, if you rotate the view it can be seen these have been drawn at the height you selected.
Now have a look at the gcode.