Try this would appreciate to know if it works with arcs.
Yes that works great
.
THANK YOU.
It even fix the issue when one end of the inner polyline is not inside the outer one, "intersecting with it". However when the inner polyline have arc in it or is just an arc, some times it works great, others strange things happen like
flipping the arc "it's center is mirrored to the other direction", the polyline is changed completely that i couldn't understand what happened.
The Previous solution is also great, however when their is an end that is outside and also the end of an arc, It is extended all the way around to the other side of the outer creating a giant circle
.
I attached a sample file if you want to try.
Finally I searched online and came up with a not very efficient solution witch is to extend all the inner lines with a known amount, Then breaking them at their intersection points with the outer lines, After that deleting all the lines that are shorter than or equal to the known amount.
THANKS VERY MUCH TO ALL YOU WHO HELPED ME, I LEARNED A LOT FROM YOU IN THAT TOPIC.