
! script name: layers.d/setcurrassmbly
! topic: assign current assembly

!A
!A NAME:
!A
!A 	Change Current Assembly
!A
!A DESCRIPTION:
!A
!A 	This script allows the current assembly to be defined.  The default
!A 	assembly is "0".
!A
!B INSTRUCTIONS:
!B
!B 	COMPONENT NUMBER   current assembly = #: 
!B 		Enter the assembly number to be used.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: change current assembly ")

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

assembly=CurrentAssembly

stat= SetInputFormat("n0=","")
Assembly=InputAssembly("ASSEMBLY NUMBER"&"   current assembly = "&VAL$(assembly))
IF (ExitScript(Destination$)) THEN Leave

Stat=SetCurrAssembly(Assembly)

Leave:!
stat= SetInputFormat("n4","")
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
