Hello LHGO,
Assuming that the circle is stored in a variable c and the arc in a,
1) Find the startpoint (as), endpoint(ae) and the midpoint(am) of the arc using the entity list data of the arc.
2) Assuming that you want to trim the portion of the arc lying inside the circle find out which of the three points fall inside the circle. If the two endpoints as and ae fall inside the circle, use the following to trim the arc:
(command trim c (nentselp as) (nentselp ae) )
(Important: Osnaps should be disabled).
Hope this helps.
With best regards,
Sanjay Kulkarni
(sanganaksakha@freelance-worker.com)