
! script name: trim.d/linetriment
! topic: tangent line trim

!A
!A NAME:
!A
!A 	Tangent Line Trim
!A
!A DESCRIPTION:
!A
!A 	This script constructs a line tangent to two entities and trims the
!A 	entities that are connected by the tangent line.
!A
!A~ image location - images/tangentlinetrim.jpg
!B INSTRUCTIONS:
!B
!B 	PICK FIRST TANGENT ELEMENT: Pick one of the entities to be trimmed.
!B
!B 	PICK NEXT TANGENT ELEMENT: Pick the other entity to be trimmed by
!B 		the tangent line.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: tangent line trim ")

DIM Answer$[256]
DIM Destination$[256]


DEG

Input_methodr= CurrInputMethod
Stat=SetXyzInput(WsLineTrimEnt)
ActivateUndo

Ploop:Pt=XyzInput("INPUT",WsXyzInput)
IF (ExitScript(Destination$)) THEN Leave
Stat=DeleteEntity(Pt)

GOTO Ploop

Leave:!
Stat=SetXyzInput(Input_methodr)
Stat=DeleteEntity(Pt)
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
