@serge.quiblier
I think I know why cutter comp is disabled.
Well 1st off, I am giving up on cheating this, it will not work. I cheated it to output G41, but then, it switches G41-G40-G41-G40 one after the other, because there is no state of cutter comp passed, and understanding the section where this is handled in the post, I can see that this value being not there, it will not be possible to make it work correctly.
pendingRadiusCompensation is a critical variable that tells the post if the cutter comp state has changed or not, and it does this on each X-Y-Z move, so it knows when to G41 and when to do G40. At least, that's how I read the code in the post.
So, why is cutter comp not enabled? I believe, it is for safety reason. Autodesk covering themselves for scrapped parts here, for beginners. Because this operation can avoid walls with a given amount, if you gave us cutter comp, and we made the chamfer bigger on the machine by adjusting the diameter offset, there is the potential that the tool would hit that wall that it shows as being avoided within Fusion. The tool getting closer to the part, the outer edge of the tool would at one point start digging "sideways" into the wall to avoid.
I think this is why you didn't enable this, and I understand it now. It is kind of the same situation as when you do multiple contours in an operation that are not on the same plane, Fusion sends the tool to the clearance plane between profiles, to cover itself for beginners. Something I asked before, if we could have a "power user" check box and unlock all these restrictions which we are used to deal with, as you get experience and know what to look for, it would be great. But I understand that this would complicate things a lot on your end. I accept the limitations.
I think this explains it, I am writing it for my own future reference if I forget the reason and start trying to provoke the cutter comp on 2d chamfer again lol, but it might benefit someone else trying to do the same. I think I got it right, if not, please correct me!