Join and cut revit elements

I have a hard time picturing the workflow and aligning that with what is available in the Revit APi for removing edges per view.

How are they organizing the matchups? Do you have a link? Thanks