Need PythonScript to trim curve

Hello,
have two closed curves on one layer and i need to trim the internal lines with python.

Kind regards from germany
Sven

Looks like CurveBooleanUnion?

rhinoscriptsyntax
https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-CurveBooleanUnion

RhinoCommon
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_CreateBooleanUnion_1.htm

1 Like

Wow that is the command i searched for.
Thank you very much!