Hi, I have 2 lines that intersect as shown below.
How do I cut the black line where the red line intersects so that I end up two separate objects?
Thanks.
kuzumadam said: Hi, I have 2 lines that intersect as shown below. How do I cut the black line where the red line intersects so that I end up two separate objects?
OK, I'm sort of guessing what your intent is here - that you want the part of the black curve that is above the red line as one object, and the part of the black curve that is below the red line as another object.
Starting out:
Use the end points of the red line as snap points for creating a 4-node closed curve:
Using the Shaping docker, use Trim with the closed curve as the Source and the original black curve as the Target, with "Leave Original" boxes checked for both of them:
Reshape the 4-node closed curve:
Use Trim with the same Source and Target as before, but with both boxes for "Leave Original" unchecked. The result looks like this...
...but the top and bottom curves can now be moved independently. The top curve has 4 subpaths; the bottom one has 3 subpaths:
I removed the arrowhead, because it would show up on each of the subpaths after the Trim.
"Break Curve Apart" to get independent curves, then apply the arrowhead to the desired curve. Combine the other 3 subpaths into one curve, then Group with the curve that has the arrowhead.
Ronny Axelsson said:Maybe better to use Eskimo's suggestion and create a closed shape to cut with. I would do it slightly different though (often do this): First select the "pink object", then the curve and use Intersect (Arrange > Shaping > Intersect). This will create the lower part. Select the pink object again and then the original curve, and use Trim (Arrange > Shaping > Trim) to remove the lower part. Delete the pink object.
I agree, that's a slicker way to accomplish the same result as my approach. Another advantage is that it can directly use the shaping buttons on the Property Bar, where my approach used the Docker to access "Leave Original" options.