When a user adds edges that form a face SketchUp automatically creates it.
When a user adds edges that intersect SketchUp automatically breaks them into pieces.
But when I add edges in a script, these things don’t happen.
I thought I saw somewhere a method to invoke these actions but maybe it was wishful thinking?
The default result of non=splitting edges is what happens when scripted.
Your best approach is to make a collection [array] of the new edges and then use edges[0].parent.entities.intersect_with(…, edges)
to split them.
You need to decide what they intersect with…
If you want the edges to be split within the model context itself, first off… add them inside a group.entities and at the end group.explode
They will auto-merge/split as they merge back in.