Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

$d1=OVERALL

!strAction = '$1'

if !strAction eq 'OVERALL' then


DEV GRA OUTFITTING
handle any
DEV GRA DESIGN
endhandle
endif

var !strProjCode PROJECT CODE


$M'\\146.168.8.35\Am12.1sp5\PML\PMLLIB\scmblylib\A2N\project_setup\$!strProjCode$n\
00_variableDeclarations.mac'

var !strTmpTime CLOCK TIME


syscom 'echo.'
syscom 'echo +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++
'
syscom 'echo +++ START -^> OVERALL_insulation_00.mac [$!strProjCode] - $!strTmpTime
'
syscom 'echo +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++
'
syscom 'echo.'

!!arrOverrideInsuSettings = object array()


!arrCollection = object array()

-----------------------------------------------------------------------------------
-----------------
--- +++ +++ +++ +++ +++ DO NOT UPDATE ABOVE ITEMS +++ +++ +++ +++ +++ ---
-----------------------------------------------------------------------------------
-----------------

-- Override representation settings


-- !!arrOverrideInsuSettings.append('REPRE INSU ON')

var !arrHvac collect all BRAN MEM with TYPE of OWNE of OWNE eq 'HVAC' and
matchw(dbname,'DES?*') and not matchw(DBNAME, '*STUDY*') and not badref(ISPEC)
var !arrPipe collect all BRAN MEM with TYPE of OWNE of OWNE eq 'PIPE' and
matchw(dbname,'DES?*') and not matchw(DBNAME, '*STUDY*') and not badref(ISPEC)
var !arrEqui collect all (EQUI MEM SUBE MEM) with matchw(dbname,'DES?*') and
not matchw(DBNAME, '*STUDY*')

$*********Exporting all Hvac Insulation*********$


do !strHvac values !arrHvac
!gmrefmems = !strHvac.dbref().gmref.name.dbref().mem
handle any
skip
endhandle
do !gmrefmem values !gmrefmems
!rlLevel = !gmrefmem.level[1]
skip if(!rlLevel neq 6)
!arrCollection.append(!strHvac)
enddo
enddo

$*********Exporting all Pipe Insulation*********$


do !strPipe values !arrPipe
!refIspec = !strPipe.dbref().ispec
if(!refIspec.badref().not()) then
!arrCollection.append(!strPipe)
endif
enddo

$*********Exporting all Equipment Insulation*********$


do !strEqui values !arrEqui
!rlLevel = !strEqui.dbref().level[1]
handle any
skip
endhandle
skip if(!rlLevel neq 7)
!arrCollection.append(!strEqui)
enddo

if !arrCollection.size() eq 0 then
-- $p no data collected
syscom 'echo.'
syscom 'echo +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++
'
syscom 'echo +++ No data collected
'
syscom 'echo +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++
'
syscom 'echo.'
return
endif

-----------------------------------------------------------------------------------
---------------
-- +++ +++ +++ +++ +++ DO NOT UPDATE BELOW ITEMS +++ +++ +++ +++ +++ --
-----------------------------------------------------------------------------------
---------------

!strTmpClockDate = !!strClockDate.replace(' ', '')


!objAvevaToNavis = !!objAvevaToNavis
!objAvevaToNavis.strFolderDate = !strTmpClockDate
!!scmFncExportModInsu(!!strOutputLoc, !arrCollection, !objAvevaToNavis)

if !strAction eq 'OVERALL' then


!objAvevaToNavis.mtdA2N(!!strOutputLoc, !!arrGroups, !!strOutputFileVersion,
'INSU')
QUIT FINISH
endif

You might also like