HomeOperatorsTrim/L,to,L

Trim/L,to,L

Trim Line to Line

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

What It Does

The Trim/L,to,L operator trims a line to a line 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,L, LINE, to, LINE, Start|End

Quick Input

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

Direction Selector

SelectorMeaning
StartTrim the start endpoint of the line to the line
EndTrim the end endpoint of the line to the line
The line is shortened to meet the boundary line at the selected endpoint.

Worked Examples

L0=horizontal (0,0)→(100,0), L1=vertical X=60 Trim/L0, to, L1, End → L0: (0,0)→(60,0) [end trimmed to L1] Trim/L0, to, L1, Start → L0: (60,0)→(100,0) [start trimmed to L1]

Analytic Rule

Find intersection of line and line. 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 line?

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

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.