
! script name: trim.d/cornerfillet
! topic: construct corner fillet

!A
!A NAME:
!A
!A 	Corner Fillet
!A
!A DESCRIPTION:
!A
!A 	This script constructs an arc of a circle which will be tangent to
!A 	the two elements picked.
!A
!A
!A~ image location - images/cornerfillet.jpg
!B INSTRUCTIONS:
!B
!B 	FILLET RADIUS:  Enter the radius of the arc that should be constructed
!B 		tangent to each element picked.
!B
!B 	PICK FIRST TANGENT ELEMENT: Pick one of the elements that should be
!B 		tangent to the arc constructed.
!B
!B 	PICK NEXT TANGENT ELEMENT: Pick the other element that should be
!B 		tangent to the arc constructed.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: corner fillet ")

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


DEG

ActivateUndo
Input_methodr= CurrInputMethod
Stat=SetXyzInput(WsCornerFillet)

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
