Set rendering option "SectionCutDrawEdges" to false

Your forum profile does not give your SketchUp version. Please update this.

Please post code not images of code

Why wrap this up in and if true block ? (It serves no purpose, and is not indented BTW.)

Could be a bug. Have you checked the official API issue tracker for an open issue ?
If there is not one, please log an issue, with sample code and model file.

Yes I think I remember this coming up in recent forum discussion.

We can only set the width of section cut edges between 1…20 manually in the style “Modeling” settings.

We should be able to set width to 0 for off (ie, “SectionCutDrawEdges” as false.)