
! script name: trim.d/circletriment
! topic: tangent circle trim

!A
!A NAME:
!A
!A 	Tangent Circle Trim
!A
!A DESCRIPTION:
!A
!A 	This script constructs an arc of a circle which will be tangent
!A 	to the two elements picked, and will trim the elements picked.
!A
!A~ image location - images/tangentcircletrim.jpg
!B INSTRUCTIONS:
!B
!B 	TANGENT CIRCLE RADIUS: Enter the radius of the arc that should
!B 		be constructed tangent to each element picked.
!B
!B 	PICK FIRST TANGENT ELEMENT: Pick one of the elements that should
!B 		be tangent to the arc constructed and will be trimmed.
!B
!B 	PICK NEXT TANGENT ELEMENT: Pick the other element that should
!B 		be tangent to the arc constructed and will be trimmed.
!B

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

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


DEG

Input_methodr= CurrInputMethod
Stat=SetXyzInput(WsCircleTrimEnt)

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
