Claude, yes it is confusing. The scripting API is very primitive and that is the best I could come up with. My needs were also pretty basic, but it does work well.
Are you seeing the custom dialog under the Advanced Posting tab? What have you entered for values?
You are correct that if top of material is 0.0 and stock thickness is .75, then final DOC is -.75, provided you are cutting all the way through the part.
Remember, this will only insert tabs on straight line segments. You need to accurately enter what your final Z cutting height is, or you will not get any tabs. You can then configure how many tabs you want on each line segment, and have some level of control over which segments will get a tab (based on length).
The example (simple-tab-test.bbcd) will show how it works.
When you post the code, you will NOT see changes in the drawing on the screen. You will NOT see these tabs in the built in verify function. If you post the code, you SHOULD see some comments in the code that indicate where the tabs are happening. You WILL then see them displayed in a program like NCPlot, or just by loading the NC file into Mach and rotating the object so you can see the Z tool paths.
Steve
Code:
N01 G01 Z.25 F60.
N02 Y-.75 F120.
N03 G17 G03 X-.75 Y-1.0625 I.3125 J0.
N04 G01 X.75
N05 G03 X1.0625 Y-.75 I0. J.3125
N06 G01 Y.75
N07 G03 X.75 Y1.0625 I-.3125 J0.
N08 G01 X-.75
N09 G03 X-1.0625 Y.75 I0. J-.3125
(*** Downward ZFeed: Contour Final Pass ***)
N10 G01 Z0. F60.
(*** Start Tab ***)
N11 Y.125 F120.
N12 Z.1
N13 Y-.125
N14 Z0.
(*** End Tab ***)
N15 Y-.75
N16 G03 X-.75 Y-1.0625 I.3125 J0.
(*** Start Tab ***)
N17 G01 X-.125
N18 Z.1
N19 X.125
N20 Z0.
(*** End Tab ***)