DETAIL SHEETN 1 $!getCE
!getCE = !!CE.Name
ISODRAFTMODE
--run option file which will accept and check two prviously defined variables fro pipename and underlay
$M/path to option file with underlayplot1
--full detailing CE
DETAIL $!getCE
--we have to delete first file as far as it should have another underlay further
--!deleteFile = !!lsaIsoPipeFileName + '001'
--SYSCOM |del /q %STROUTPUT%\DRAWINGS\ISO\$!deleteFile|
--run option file again with new data
$M/path to option file with underlayplot2
--detailing only first sheet with new underlay
DETAIL SHEETN 1 $!getCE
EXIT
--get total number of drawings
var !isoCountSheets ISODRAW NUMBER
DETAIL SHEETN 1 $!getCE
if(!isoCountSheet gt 9)
do !isoCountSheet from 1 to !isoCountSheets
DETAIL SHEETN $!isoCountSheet $!getCE
enddo
endif