
! script name: trim.d/chamfer
! topic: construct corner chamfer

!A
!A NAME:
!A
!A 	Chamfer
!A
!A DESCRIPTION:
!A
!A 	This script constructs a corner chamfer between two elements.
!A
!A~ image location - images/cornerchamfer.jpg
!B INSTRUCTIONS:
!B
!B 	CHAMFER LENGTH: This is measured parallel to a line or to a chord
!B 		of a circle.
!B
!B 	PICK FIRST ELEMENT TO BE CHAMFERED: Pick one of the elements to
!B 		be chamfered.
!B
!B 	PICK NEXT ELEMENT TO BE CHAMFERED: Pick the other element to be
!B 		chamfered.
!B

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

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


DEG

ActivateUndo

Input_methodr= CurrInputMethod
Stat=SetXyzInput(WsCornerChamfer)

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
