New Text Document
New Text Document
New Text Document
com)
-- PML for creating spool drawing of Spooler Module in PDMS and Aveva E3D
kill!!msrspooler
!iconSize = 16
path d
exit
EXIT
EXIT
frame .spl4 'ADD & REM SPL' at 21.5 0.5
text .activeSplDrg AT X0.5 Y1.14 tooltip 'Active Spool Drawing' width 1 is STRING
button .pickNavigate AT X0.5 Y1.15 tooltip 'Navigate Pick Mode' pixmap width $!
iconSize height $!iconSize callback |!this.functions.pick('NAVIGATE')|
button .pickAdd AT X3.5 Y1 tooltip 'Add to Spool Drawing Pick Mode' pixmap width
$!iconSize height $!iconSize callback |!this.functions.pick('ADD')|
button .pickRemove AT X6.5 Y1 tooltip 'Remove From Spool Drawing Pick Mode' pixmap
width $!iconSize height $!iconSize callback |!this.functions.pick('REMOVE')|
!!appCntrl.setMainForm()
!!appCntrl.modifyMenus()
!iconSize = 16
!this.functions.mainForm = !this
!!moduleMenus(!this)
!this.activeSplDrg.setEditable(false)
!this.pickNavigate.addPixmap(!pickNavPix)
!this.pickAdd.addPixmap(!pickAddPix)
!this.pickRemove.addPixmap(!pickRemovePix)
!this.includeFields.addPixmap(!incFieldsOnPix)
EXIT
frame .spl5 'UPDATE & MODI' at 21.5 3.2
!this.update.addPixmap(!updatePixmap)
!this.modify.addPixmap(!modifyPixmap)
EXIT
EXIT
FRAME .FRAME5 'REVISION' AT 0.5 15
PATH DOWN
PATH RIGHT
EXIT
!this.T2.VAL = 0
!RTEXT[1]= '0'
!RTEXT[2]= '1'
!RTEXT[3]= '2'
!RTEXT[4]= '3'
!RTEXT[5]= '4'
!RTEXT[6]= '5'
!DTEXT[1]= 'A'
!DTEXT[2]= 'B'
!DTEXT[3]= 'C'
!DTEXT[4]= 'D'
!DTEXT[5]= 'E'
!DTEXT[6]= 'F'
!this.LIST1.DTEXT = !DTEXT
!this.LIST1.RTEXT = !RTEXT
!DTEXT = ARRAY()
!DTEXT[1]= '01'
!DTEXT[2]= '02'
!DTEXT[3]= '03'
!DTEXT[4]= '04'
!DTEXT[5]= '05'
!DTEXT[6]= '06'
!DTEXT[7]= '07'
!DTEXT[8]= '08'
!DTEXT[9]= '09'
!DTEXT[10]= '10'
!DTEXT[11]= '11'
!DTEXT[12]= '12'
!DTEXT[13]= '13'
!DTEXT[14]= '14'
!DTEXT[15]= '15'
!DTEXT[16]= '16'
!DTEXT[17]= '17'
!DTEXT[18]= '18'
!DTEXT[19]= '19'
!DTEXT[20]= '20'
!DTEXT[21]= '21'
!DTEXT[22]= '22'
!DTEXT[23]= '23'
!DTEXT[24]= '24'
!DTEXT[25]= '25'
!DTEXT[26]= '26'
!DTEXT[27]= '27'
!DTEXT[28]= '28'
!DTEXT[29]= '29'
!DTEXT[30]= '30'
!DTEXT[31]= '31'
!this.LIST3.DTEXT = !DTEXT
!SELECTED3TEXT = !this.LIST3.SELECTION()
!DTEXT = ARRAY()
!DTEXT[1]= '01'
!DTEXT[2]= '02'
!DTEXT[3]= '03'
!DTEXT[4]= '04'
!DTEXT[5]= '05'
!DTEXT[6]= '06'
!DTEXT[7]= '07'
!DTEXT[8]= '08'
!DTEXT[9]= '09'
!DTEXT[10]= '10'
!DTEXT[11]= '11'
!DTEXT[12]= '12'
!this.LIST4.DTEXT = !DTEXT
!SELECTED4TEXT = !this.LIST4.SELECTION()
!DTEXT = ARRAY()
!DTEXT[2]= '17'
!DTEXT[3]= '18'
!DTEXT[4]= '19'
!this.LIST5.DTEXT = !DTEXT
!SELECTED5TEXT = !this.LIST5.SELECTION()
!DTEXT = ARRAY()
!this.LIST6.DTEXT = !DTEXT
!SELECTED6TEXT = !this.LIST6.SELECTION()
!this.ba.val = 35
!this.ru.val = 180
ENDMETHOD
!CETYPE = !!CE.TYPE
PIPE
ADD CE
AUTO CE
enhance ce colour 5
ELSE
ADD CE
AUTO CE
enhance ce colour 2
ENDIF
ENDMETHOD
DEFINE METHOD .NAM()
!NZON = '$!ZON'+'-'+'ISOD'
!THIS.T1.VAL = '$!NZON'
ENDMETHOD
!TYPE = TYPE
!ISODEPTNAME = '$!THIS.T1.VAL'
ELSE
!!ALERT.MESSAGE ('ELEMENT YANG DI PILIH HARUS ISODEPT AYAU WORL PADA SPOOLER
WORLD',0.25,0.1)
ENDIF
ENDMETHOD
ID @
PIPE
!PIPENAME = NAME
!NZON = '$!ZON'+'-'+'ISOD'
/$!NZON
ENDMETHOD
!NZON = '$!SPLNAME'+'SPL'+'-0'+'$!ISI'
ENDMETHOD
NEW WELD
SPREF $!SPEC-FW_$!size
Lstube $!SPEC-P-$!size
Shop FALSE
DPFNAME 'FW'
CONN
DESPARAM 1
ENDMETHOD
NEW WELD
SPREF $!SPEC-SW-$!size
Lstube $!SPEC-P-$!size
Shop TRUE
DPFNAME 'SW'
CONN
DESPARAM 1
MOVE DIST $!THIS.T2.VAL
ENDMETHOD
IF !SEL.SIZE().EQ( 0 ) THEN
RETURN
ENDIF
do !q from 1 to $!ptot
$!sel[$!q]
$p $!name
enddo
ENDMETHOD
!CETYPE = DBTYPE
!NA = SUBSTRING('$!ISORE',-2)
/$!NA
ELSE
ENDIF
ENDMETHOD
!CETYPE = DBTYPE
/$!PIPENAME-
ELSE
ENDIF
ENDMETHOD
!CETYPE = !!CE.TYPE
SHOW!!splShipVol
ELSE
ENDIF
ENDMETHOD
!CETYPE = !!CE.TYPE
DELETE $!CETYPE
ELSE
ENDIF
ENDMETHOD
Handle any
Elsehandle none
Endhandle
!CENAM = !!CE.NAME
!VISI = !THIS.S.TAG
!THIS.S.TAG = 'HIDE'
!TSIZ = !DPEN.SIZE()
DO !A FROM 1 TO !DPEN.SIZE()
$!DPEN[$!A]
DESPARA 0
ENDDO
!THIS.S.TAG = 'SHOW'
!TSIZ = !DPEN.SIZE()
DO !A FROM 1 TO !DPEN.SIZE()
$!DPEN[$!A]
DESPARA 1
ENDDO
ENDIF
$!CENAM
ENDMETHOD
ENDMETHOD
!!splSfBreak(|add|)
ENDMETHOD
IN BORE
!Tolarray.Appendarray(!attarray)
!I = 1
$!mem
!atta = !attarray[!i].dbref()
Handle any
Elsehandle none
endhandle
:FIELD_TYP '$!BRS'
:SHOP_TYP '-'
!I = !I + 1
!CK = !!CE.CKEY
:FIELD_TYP '-'
:SHOP_TYP '$!BRS'
!I = !I + 1
Splprefix 'SPL-'
!I = !I + 1
ENDIF
ENDDO
SPLDRG
ENDMETHOD
DEFINE METHOD .BAFO()
Handle any
Elsehandle none
Endhandle
!CENAM = !!CE.NAME
!VISI = !THIS.FB.TAG
!THIS.FB.TAG = 'BACK'
BACK
CONN
!THIS.FB.TAG = 'FORW'
FORW
CONN
ENDIF
$!CENAM
ENDMETHOD
ADD CE
AUTO CE
enhance ce colour 2
ENDMETHOD
DEFINE METHOD .COL2()
ADD CE
AUTO CE
enhance ce colour 5
ENDMETHOD
ADD CE
AUTO CE
enhance ce colour 7
ENDMETHOD
ADD CE
AUTO CE
enhance ce colour 4
ENDMETHOD
ADD CE
AUTO CE
enhance ce colour 16
ENDMETHOD
ADD CE
AUTO CE
enhance ce colour 13
ENDMETHOD
DEFINE METHOD .SREV()
!TYPESPL = TYPE
IF (!TYPESPL EQ 'SPLDRG')THEN
!B2 = !THIS.L1.VAL
!B3 = !THIS.L2.VAL
!B4 = !THIS.L3.VAL
!DA4 = '$!DA1'+'-'+'$!DA2'+'-'+'$!DA3'
:REV0 |$!B1|
:DRAWNREV0 |$!B2|
:CONCKBYREV0 |$!B3|
:CONAPBYREV0 |$!B4|
:DATEREV0 |$!DA4|
:DESCREV0 |$!B5|
!B2 = !THIS.L1.VAL
!B3 = !THIS.L2.VAL
!B4 = !THIS.L3.VAL
!DA4 = '$!DA1'+'-'+'$!DA2'+'-'+'$!DA3'
:REV1 |$!B1|
:DRAWNREV1 |$!B2|
:CONCKBYREV1 |$!B3|
:CONAPBYREV1 |$!B4|
:DATEREV1 |$!DA4|
:DESCREV1 |$!B5|
ENDIF
ELSE
ENDIF
ENDMETHOD
SPLDRG
!PCOD = !CPROJ.CODE()
!this.man.val = 2
DETAIL CE
handle any
endhandle
ELSE
return
endif
endmethod
PIPE
!PCOD = !CPROJ.CODE()
!this.man.val = 1
!!isdRunIso('STA', TRUE)
DETAIL CE
handle any
endhandle
ELSE
return
endif
endmethod
DEFINE METHOD .CLA()
Handle any
Elsehandle none
Endhandle
GETWORK
SAVEWORK
UNCLAIM ALL
ENDMETHOD