Sie sind auf Seite 1von 13

Sub Example1() 'first set a string which contains the path to the file you want to create.

'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example1.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "HEAD='EXAMPLE PROBLEM 1, FIXED GEOMETRY STINGER, 16-IN PIPE, 3 00 FT DEPTH', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COORDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X CO ORDINATE', " Print #fnum, "ORDI=14, ABSC=1 " Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='VERTICAL BENDING MOMENT AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='VERTICAL BENDING MOMENT', ABSL='PIPE HORIZONTAL X COORDI NATE', ORDI=10, " Print #fnum, "ABSC=1 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='VERTICAL BENDING MOMENT AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='VERTICAL PIPE SUPPORT REACTION', ABSL='PIPE HORIZONTAL X COORDINATE', " Print #fnum, "ORDI=7, ABSC=1 " Print #fnum, "*PLTR TYPE=3, RANG=1 " Print #fnum, "*PRIN STAT=1, SUMM=1, BALL=1 " Print #fnum, "*TENS TENS=100 " Print #fnum, "*PIPE ROW=1, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=1, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40 , FJNT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=3, RADI=720, YTAN=3, DECK=16, TRIM=0.6, XST E=10, YSTE=-14.5, " Print #fnum, "XROT=200, YROT=-16 "

Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, "210, , 2, " Print #fnum, "170, , 1, " Print #fnum, "130, , 1, " Print #fnum, "90, , 1, " Print #fnum, "50, , 1, " Print #fnum, "10, , 1, " Print #fnum, "*STIN NUMB=9, GEOM=4, TYPE=1, RADI=640, XHIT=-3, YHIT=-20 " Print #fnum, "TABL = (X,Y,SUPP,SECT,LENG) " Print #fnum, ", , , , 15 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , 300, , 15 " Print #fnum, "*WEIG NUMB=9 " Print #fnum, "TABL = (WEIG,DISP) " Print #fnum, "41.25, 52.88 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "41.25, 52.88 " Print #fnum, "*GEOM LENG=40, DEPT=300 "

Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub Sub Example2() 'first set a string which contains the path to the file you want to create. 'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example2.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "*HEAD " Print #fnum, "HEAD='EXAMPLE PROBLEM 2, FIXED CURVATURE STINGER, 16-IN PIPE, 300 FT DEPTH', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COORDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X CO ORDINATE', " Print #fnum, "ORDI=14, ABSC=1 " Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='PLAN VIEW OF PIPE WITH HORIZONTAL BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL Z COORDINATE', ABSL='PIPE HORIZONTAL X C OORDINATE', " Print #fnum, "ORDI=3, ABSC=1, OMIN=-20, OMAX=100 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='PLAN VIEW OF PIPE WITH HORIZONTAL BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL BENDING STRESS', ABSL='PIPE HORIZONTAL X COORDINATE', " Print #fnum, "ORDI=16, ABSC=1 " Print #fnum, "*PLTR TYPE=2, RANG=1 " Print #fnum, "*TENS TENS=100 " Print #fnum, "*PIPE ROW=1, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=1, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40

, FJNT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=1, DECK=16, TRIM=0.6, XROT=200, YROT=-16, H EAD=6, ZOFF=70 " Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, "210, 3, 2, " Print #fnum, "170, 3, , " Print #fnum, "130, 2.01, , " Print #fnum, "90, -1.21, , " Print #fnum, "50, -6.71, , " Print #fnum, "10, -14.5, , " Print #fnum, "*STIN NUM=9, GEOM=1, TYPE=3, XHIT=-3, YHIT=-20, XORG=-3, YORG= -20, ROTA=23 " Print #fnum, "TABL = (X,Y,SUPP,SECT,LENG) " Print #fnum, "-14.43, 4.644, , , " Print #fnum, "-44.22, 8.189, , , " Print #fnum, "-74.14, 10.333, , , " Print #fnum, "-104.14, 11.073, , , " Print #fnum, "-134.13, 10.407, , , " Print #fnum, "-164.06, 8.336, , , " Print #fnum, "-193.85, 4.864, , , " Print #fnum, "-223.46, 0, , , " Print #fnum, "-238.17, -2.951, 300, , " Print #fnum, "*WEIG NUMB=9 " Print #fnum, "TABL = (WEIG,DISP) " Print #fnum, "41.25, 52.88 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75

" Print #fnum, "41.25, 52.88 " Print #fnum, "*BALL NUMB=9 " Print #fnum, "LIST = 7.97, 15.76, 15.76, 15.76, 15.76, 15.76, 15.76, 15.76, 7.88 " Print #fnum, "*SECT ROW=1, TYPE=1, VARE=22.5, DISP=52.4, CD=0.8, HARE=22.5 " Print #fnum, "*SECT ROW=2, TYPE=2, VANG=90, VARE=22.5, DISP=52.4, CD=0.8, HA RE=22.5 " Print #fnum, "*GEOM LENG=40, DEPT=300 " Print #fnum, "*SOIL FRIC=1.0 " Print #fnum, "*CURR NUMB=2 " Print #fnum, "TABL = (DEPT,VELO,DIRE) " Print #fnum, "0, 2, -90 " Print #fnum, "300, 0.8, -90 " Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub Sub Example3() 'first set a string which contains the path to the file you want to create. 'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example3.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "*HEAD HEAD='EXAMPLE PROBLEM 3, ARTICULATED STINGER, 16-IN PIPE, 30 0 FT DEPTH', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PRIN STAT=1, SUMM=1, BALL=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X COORDI NATE', " Print #fnum, "ORDI=14, ABSC=1 "

Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='VERTICAL BENDING MOMENT AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='VERTICAL BENDING MOMENT', ABSL='PIPE HORIZONTAL X COORDINATE ', ORDI=10, " Print #fnum, "ABSC=1 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='VERTICAL BENDING MOMENT AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='VERTICAL PIPE SUPPORT REACTION', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=7, ABSC=1 " Print #fnum, "*PLTR TYPE=3, RANG=1 " Print #fnum, "*TENS TENS=100 " Print #fnum, "*PIPE ROW=1, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=1, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40, FJ NT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=2, RADI=720, XTAN=167.78, YTAN=3, DECK=16, TRIM =0.6, " Print #fnum, "XROT=200, YROT=-16 " Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, "210, , 2, " Print #fnum, "170, , , " Print #fnum, "130, , , " Print #fnum, "90, , , " Print #fnum, "50, , , " Print #fnum, "10, , , " Print #fnum, "*STIN NUMB=9, GEOM=3, TYPE=6, RADI=640, XHIT=-3, YHIT=-20, YTAN=-1 6.821, " Print #fnum, "ANGL=13.475 " Print #fnum, "TABL = (X,Y,SUPP,SECT,LENG) " Print #fnum, ", , , , 20 " Print #fnum, ", , , , 40 " Print #fnum, ", , 300, , 20 " Print #fnum, ", , , , 20 " Print #fnum, ", , , , 40 "

Print #fnum, ", , 300, , 20 " Print #fnum, ", , , , 20 " Print #fnum, ", , , , 40 " Print #fnum, ", , 300, , 20 " Print #fnum, "*WEIG NUMB=9 " Print #fnum, "TABL = (WEIG,DISP) " Print #fnum, "55, 70.5 " Print #fnum, "110, 141 " Print #fnum, "55, 70.5 " Print #fnum, "55, 70.5 " Print #fnum, "110, 141 " Print #fnum, "55, 70.5 " Print #fnum, "55, 70.5 " Print #fnum, "110, 141 " Print #fnum, "55, 70.5 " Print #fnum, "*BALL NUMB=9 " Print #fnum, "LIST = 12.82, 23.5, 11.87, 11.83, 21.42, 11.88, 9.6, 18.95, 10.49 " Print #fnum, "*GEOM LENG=40, DEPT=300 " Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub Sub Example4() 'first set a string which contains the path to the file you want to create. 'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example4.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "*HEAD HEAD='EXAMPLE PROBLEM 4, ABANDONMENT ANALYSIS, 16-IN PIPE, 3 00 FT DEPTH', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO

RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X COORDI NATE', " Print #fnum, "ORDI=14, ABSC=1 " Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND VERTICAL BENDING MOMENT', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND VERTICAL BENDING MOMENT', " Print #fnum, "ORDL='PIPE VERTICAL BENDING MOMENT', ABSL='PIPE HORIZONTAL X COORD INATE', " Print #fnum, "ORDI=10, ABSC=1 " Print #fnum, "*PLTR TYPE=3, RANG=1 " Print #fnum, "*TENS TENS=100 " Print #fnum, "*CABL ROW=1, LENG=800, DIAM=2 " Print #fnum, "*PIPE ROW=2, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=2, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40, FJ NT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=3, RADI=720, YTAN=3, DECK=16, TRIM=0.6, XSTE=10 , YSTE=-14.5, " Print #fnum, "XROT=200, YROT=-16 " Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, "210, , 2, " Print #fnum, "170, , , " Print #fnum, "130, , , " Print #fnum, "90, , , " Print #fnum, "50, , , " Print #fnum, "10, , , " Print #fnum, "*STIN NUM=9, GEOM=4, TYPE=3, RADI=640, XHIT=-3, YHIT=-20 " Print #fnum, "TABL = (X,Y,SUPP,SECT,LENG)

" Print #fnum, ", , , , 15 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , , , 30 " Print #fnum, ", , 300, , 15 " Print #fnum, "*WEIG NUMB=9 " Print #fnum, "TABL = (WEIG,DISP) " Print #fnum, "41.25, 52.88 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "82.5, 105.75 " Print #fnum, "41.25, 52.88 " Print #fnum, "*BALL NUMB=9 " Print #fnum, "LIST = 7.97, 15.76, 15.76, 15.76, 15.76, 15.76, 15.76, 15.76, 7.88 " Print #fnum, "*GEOM LENG=40, DEPT=300, SPAN=1000 " Print #fnum, "*LENG NUMB=7 " Print #fnum, "TABL = (NUMB,LENG) " Print #fnum, "3, 60 " Print #fnum, "1, 40 " Print #fnum, "1, 30 " Print #fnum, "1, 15 " Print #fnum, "1, 10

" Print #fnum, "1, 5 " Print #fnum, "100, 60 " Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub Sub Example5() 'first set a string which contains the path to the file you want to create. 'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example5.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "*HEAD " Print #fnum, "HEAD='EXAMPLE PROBLEM 5, J-LAY WITHOUT A STINGER, 16-IN PIPE, 300 FT DEPTH', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X COORDI NATE', " Print #fnum, "ORDI=14, ABSC=1 " Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='PLAN VIEW OF PIPE WITH HORIZONTAL BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL Z COORDINATE', ABSL='PIPE HORIZONTAL X COORD INATE', " Print #fnum, "ORDI=3, ABSC=1, OMIN=-20, OMAX=100 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='PLAN VIEW OF PIPE WITH HORIZONTAL BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL BENDING STRESS', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=16, ABSC=1 " Print #fnum, "*PLTR TYPE=2, RANG=1 "

Print #fnum, "*TENS TENS=100 " Print #fnum, "*PIPE ROW=1, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=1, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40, FJ NT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=6, XTAN=40, YTAN=4, ANGL=65, DECK=16, TRIM=0, X ROT=200, " Print #fnum, "YROT=-16, HEAD=5, ZOFF=50 " Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, "210, , 2, " Print #fnum, "170, , 2, " Print #fnum, "130, , 1, " Print #fnum, "90, , 1, " Print #fnum, "50, , 1, " Print #fnum, "10, , 4, " Print #fnum, "*SUPP ROW=4, TYPE=4, ANGL=22.5, INCL=22.5, OFFS=1.414, LENG=3, HEI G=4 " Print #fnum, "*GEOM LENG=40, DEPT=300 " Print #fnum, "*SOIL FRIC=1.0 " Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub Sub Example6() 'first set a string which contains the path to the file you want to create. 'this example creates one and stores it in the root directory MyFile = ThisWorkbook.Path & "Example6.dat" 'set and open file for output fnum = FreeFile() Open MyFile For Output As fnum 'use Print when you want the string without quotation marks Print #fnum, "*HEAD HEAD='EXAMPLE PROBLEM 6, DAVIT LIFT, 16-IN PIPE, 300 FT DEPT H', " Print #fnum, "JOB='EXAMPLES', USER='R. C. MALAHY, JR.', UNIT=1 " Print #fnum, "*PROF ROW=1, NUMB=1, TYPE=1, " Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=2, NUMB=1, TYPE=1,

" Print #fnum, "TITL='PIPELINE ELEVATION PROFILE AND TOTAL PIPE STRESS', " Print #fnum, "ORDL='TOTAL VON MISES PIPE STRESS', ABSL='PIPE HORIZONTAL X COORDI NATE', " Print #fnum, "ORDI=14, ABSC=1 " Print #fnum, "*PROF ROW=3, NUMB=2, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='PIPE ELEVATION OR Y COORDINATE', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=2, ABSC=1 " Print #fnum, "*PROF ROW=4, NUMB=2, TYPE=1, " Print #fnum, "TITL='PIPE ELEVATION PROFILE AND PIPE SUPPORT REACTION', " Print #fnum, "ORDL='VERTICAL PIPE SUPPORT REACTION', ABSL='PIPE HORIZONTAL X COO RDINATE', " Print #fnum, "ORDI=7, ABSC=1 " Print #fnum, "*PROF ROW=5, NUMB=3, TYPE=1, " Print #fnum, "TITL='PIPE HORIZONTAL Z COORDINATE AND BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL Z COORDINATE', ABSL='PIPE HORIZONTAL X COORD INATE', " Print #fnum, "ORDI=3, ABSC=1, OMIN=-20, OMAX=100 " Print #fnum, "*PROF ROW=6, NUMB=3, TYPE=1, " Print #fnum, "TITL='PIPE HORIZONTAL Z COORDINATE AND BENDING STRESS', " Print #fnum, "ORDL='PIPE HORIZONTAL BENDING STRESS', ABSL='PIPE HORZONTAL X COOR DINATE', " Print #fnum, "ORDI=16, ABSC=1 " Print #fnum, "*PLTR TYPE=3, RANG=1 " Print #fnum, "*PIPE ROW=1, DIAM=16, WALL=0.5, YIEL=52 " Print #fnum, "*COAT ROW=1, TCOR=0.09375, TCON=2, DCOR=120, DCON=190, LENG=40, FJ NT=3, " Print #fnum, "DJNT=120 " Print #fnum, "*BARG NUMB=6, GEOM=1, DECK=16, XOFF=-20, XROT=200, YROT=-16, ZOFF= 80 " Print #fnum, "TABL = (X,Y,SUPP,DAVI) " Print #fnum, ", , 100, 0 " Print #fnum, "310, 8, 6, 40 " Print #fnum, "240, 8, 6, 70 " Print #fnum, "170, 8, 6, 70 " Print #fnum, "100, 8, 6, 70

" Print #fnum, "30, 8, 6, 70 " Print #fnum, "*GEOM LENG=40, DEPT=300, SPAN=500, XEND=350 " Print #fnum, "*SOIL FRIC=1.0 " Print #fnum, "*DCAB ROW=6, TYPE=6, DIAM=2 " Print #fnum, "*DAVI NUMB=5 " Print #fnum, "TABL = (LENG,FORC) " Print #fnum, "63.25, " Print #fnum, ", 6.4 " Print #fnum, ", 6.4 " Print #fnum, ", 6.4 " Print #fnum, ", 6.4 " Print #fnum, "*RUN " Print #fnum, "*END " Close #fnum End Sub 'Functional Call to offpipe 'main1.exe 'main2.exe 'main3.exe 'main4.exe 'cd output 'copy/a offpipe1.out+offpipe2.out+offpipe3.out+offpipe4.out offpipe.out 'To delete all the files in a given directory: 'Loop through all the files in the directory by using Dir$ function 'Dim MyFile As String 'MyFile = Dir$("c:\temp\*.*") 'Do While MyFile <> "" 'KillProperly "c:\temp\" & MyFile 'need to specify full path again because a file was deleted 1 'MyFile = Dir$("c:\temp\*.*") 'Loop 'To delete all the Word documents in a given directory, leaving other files alon e: 'Dim MyFile As String 'MyFile = Dir$("c:\temp\*.doc") 'Do While MyFile <> "" 'KillProperly "c:\temp\" & MyFile 'MyFile = Dir$("c:\temp\*.doc") 'Loop