
! script name: contours.d/closecontour
! topic: close type contour description

!A
!A NAME:
!A
!A 	Close Type Contour
!A
!A DESCRIPTION:
!A
!A 	This script allows a contour to be closed when a type description is
!A 	complete.  There are no questions asked, the types are automatically
!A 	made into a contour if this option is selected.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: close type contour ")

DeActivateUndo
Last=FindLastType
IF ValidGeometry(Last) THEN
	Stat=CloseType(Last)
	Contour=TypesContour(Last,1)
END IF

 LOAD "typecontrol"

END
