HomeOperatorsTrim/L,to,A

Trim/L,to,A

Trim Line to Arc

Trims a line to a arc boundary. Start/End selector specifies which endpoint.

What It Does

The Trim/L,to,A operator trims a line to a arc boundary. The Start/End selector specifies which endpoint of the line to trims.

Trims vs Extend: Trim shortens an entity to reach a boundary. Extend lengthens an entity to a boundary.

Syntax

Trim/L,to,A, LINE, to, ARC, Start|End

Quick Input

LINE: [reference] ARC: [boundary reference] End: ● Start ○ End

Direction Selector

SelectorMeaning
StartTrim the start endpoint of the line to the arc
EndTrim the end endpoint of the line to the arc
The arc must intersect the line within its sweep angles.

Worked Examples

L0=horizontal (0,0)→(100,0), A0=arc centre(50,0) r=30 0°-180° CCW Trim/L0, to, A0, End → L0: (0,0)→(80,0) [end trimmed to right intersection] Trim/L0, to, A0, Start → L0: (20,0)→(100,0) [start trimmed to left intersection]

Analytic Rule

Find intersection of line and arc. Move the selected endpoint to the intersection. The line is shortened to meet the boundary. Result: Exact analytic trim.

FAQ

What if the line does not intersect the arc?

XyzPilot returns an error. The line must intersect the arc.

What is the difference between Trim and Extend?

Trim shortens an entity to a boundary. Extend lengthens an entity to reach a boundary. Both use the same Start/End selector.