Have you tried using the _CurveBoolean command?
The CurveBoolean command trims, splits, and joins curves based on their overlapping regions.
Pay attention to the command-line options:
Deletes no input curves.
Deletes all input curves.
Deletes only the parts of the input curves that correspond to the newly-created curves.
Appends the selected regions to the previously edited regions.
Thankyou for the response I was trying boolean but I didnt see curve boolean thankyou
Wow thankyou first time Ive used this forum and its the first time I got a response so quickly thankyou