Home

Equipment arrangement using interactive computer graphics on

image

Contents

1. EEE 34 24 RNA NG arte IAE BEER ne pda ends ner ue Reed ey Vp erry hanes a j IRA po rl lo A 4 DEPARTMENT OF OCEAN ENGINEERING MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE MASSACHUSETTS 02139 EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS ON PERSONAL COMPUTERS by Michael J Meyers OCEAN ENGINEERING COURSE XIII A JUNE 1986 a 8 ae u ite 7 gt 5 E 2412 ler yee A EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS ON PERSONAL COMPUTERS by Michael J Meyers B S Michigan Technological University 1974 SUBMMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS OF THE DEGREE OF MASTER OF SCIENCE IN NAVAL ARCHITECTURE AND MARINE ENGINEERING at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY June 1986 C Michael J Meyers 1986 The author hereby grants to M I T and the United States Navy permission reproduce and to distribute copies of this thesis document in whole or in part EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS ON PERSONAL COMPUTERS by MICHAEL J MEYERS Submitted to the Department of Ocean Engineering on May 9 1986 in partial fulfillment of the requirements for the Degree of Master of Science i
2. s a y 1 1 gt zn 5 15 YA SEHR N Aan genes iy H u 4 a TPAR s asde EE 5 Kat AEF AA 4 EAN 4 AK 3AN ue MBI 484 7 gt ve SA 2 4 OA na oS Nib ia Sy ta Pade Rit fi 4 mest KUN Base Ar Set i ye Wate EUN Haak LF va win NARA i fin ALS 15 PATO yu a Yin y 2 nda pas Ya AY del pare y PL she ar Fr ya ao 3 1 sts Ay int fro AAN ur peony 2 jA EN sel 3 ap gt 29 32 wer 2 1gp 44 4 he rr 1 a t pa BAUR i Le iaa b Hi ye Rita 487 a x heat iss a y 4 EAN er BA e a NEE ag EN RAR 52 y Pis sh ti Y x AN taf ti PIN 41 y a 225 Ey pa i f 2 a BERN ak Mailer ity HEN 7 Dune MA 527 gt y ara qa wise St Br Di por
3. 4 th rl 4 FOR Ste ATAN an 4 Pavan eh vee EHER er 4 ered 0 y TA AT AA 4 la 44 7 2 veg ha As press Ar Bests orn Arch E 7 al ED wee aA eked Ad ado vty pie da en ene 47 ees ch 3 Eh in A a mE 40 a TA POETEI aL Sarat yr 2 oo yt 4 hy 4 hs b Myara Warren 10 N O 7 AE OSA x ve ya o is gt 4 wir 4 OM bia 5 IA hr ces I nits Aas 2 47 ovals 4 a ER y 5 ant marga PE s 3 yA 42 CA NA u oft alt 41 9 A a ARAS 4 ALA re da sy 3 GIDE Bee ME 4 ty E thts na 92 gt 2 4 25475 pe fre toe in i meats what rhe as i 1743 N SA OL Net eset eee fy artis 8 ad AR Nee vr hn Lapi x 6 AB Me had tt ala 4444 4 ao A dae taut j Sakta
4. tig 4 bl Yar de ds y TRY yh 0241 yt y A E Ae 4 th a eee 77 ai 4 UE ra use Ath ne ah es y s RR Are E 2 A a 4 Al tada EY 1 ai weh 4 SKN SCN Ue o y amp athe RE 4 A um Kon RN A gt 4 s n hotet it 472 fe Ya 2 t sja ny L rip ma ER s be 4 dde as lt ws 239 3 3 i te jr Bode ate a y ae i 1927 ES Gt oly Lea Male way a en J MDI me Rat hrs woh ely A tite 6 dd Ma Yan ya un 17471 Ls a Ge A de a Al 5 i f 1 1 2 E f 1 m E RS sa 24525 ast Bide A os 2 3 pefo Ys 4 A 44 QA J mal heat e d mo yo ay Wa es A ey DER trae of nA al Fer un na gt AA Mo 8 ES af y re DOGO ARE Sa e e Y Ms i 4 vase 2 INA a vig aa SOLS mer un Se tyme a
5. PRINT ERASING GENERIC_NAME I UNIQUE_NAME I END_LOOP SEND REPAINT PRINT ENTITIES ERASED POINT6 ACCEPT ANS PROMPT ARE YOU DONE WITH PART OF THE PROGRAM NEWLINE IF ANS Y OR ANS y THEN GOTO POINT7 ELSE IF ANS N OR ANS n THEN GOTO POINT1 ELSE 37 PRINT ANS IS NOT AN OPTION CHOOSE AGAIN PRINT GOTO POINT6 ENDIF POINT7 RETURN END PROC PROGRAM EXECUTIVE PROC MAIN START SEND SEND SET SCROLL 6 MAIN MENU DISPLAY MAIN MENU A PREPARE AN EQUIPMENT INFORMATION FILE B RECEIVE AN EQUIPMENT INFORMATION FILE C EXIT THIS PROGRAM CHOOSE AN OPTION A B ACCEPT ANS NEWLINE IF ANS A OR ANS a THEN OUTPUT ELSE IF ANS B OR ANS b THEN INPUT ELSE 38 PRINT ANS IS NOT AN OPTION PRINT GOTO START ENDIF SSS S32 CLOSING MENU DONE CHOOSE AGAIN ACCEPT ANS PROMPT ARE YOU THROUGH WITH THIS PROGRAM NEWLINE IF ANS Y OR ANS y THEN GOTO ENDALL ELSE IF ANS N OR ANS n THEN GOTO START ELSE PRINT ANS IS NOT AN OPTION PRINT GOTO DONE END OF PROGRAM ENDALL END PROC 39 CHOOSE AGAIN 2 3 4 5 6 7 8 9 10 LIST REFERANCES C Chryssostomidis C Graham M Meyers P V Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NA
6. f 225 gt u pr DEN rs pd eh 7 AS vr Ber haare 9 27 rt CEP POY HIER yor rt me peto ay i 4 4 54 0 en RR G A WI Hog gt LM a 5 Ad oe te at Aa ye 4 1 q A wre ren Ola a Mr pa OY ATA 15 Sang U be PEP PE 4 i 4 wee afi ye TEE Tin RN A Gag y 5 orien PRAGA 29 4 e AF wer Raph naka Lie Britten ks Pra nae FI rats AA a E ja 4 ros 44 par Pin ru no hr 41 e tm Fr oe A y 52 do A ol 0 Po qe RE ka E Rr 1 e v Gr RER ae TA nro ET aA Pregrado AS AL tara Bee EAS 7 PRESTO AA A OOP PIDA HE U WUER 2 49 AR BES re sy Bier stk mt ae ve UW ee P tue oat mw A IG A pe pa ANI PEEP RPP 2 ARAN vr NT AA te q e ower gt A o A red hee FE SING vy Di ee 4 26201 MAYA gr RRA 45 mus Ea 44 A siR A a 4244 gt lame wre He THY aio eles wer
7. o i t t y i RE 6 uw 45 cas 2 ret AY 2 ad De cl A bi4 SAC AAA MA28 402 Bee A A Baja Jar 14 AR IAA rab ATO beber a ee UN ANS e AS TS z a PIS 4 1 A a tiated Ihat E 47 Es mahi ashes 149 ae a Hirt sans na a 4 4 BETTER Te ala te 29 Mandar ty th AA Ag A ATT TER 52717 m r 0 2 L 3 142 02 qa mn teh va 25 5 4 z A ags 7 1 k 4 she at 7 d s ets hae Y ht Awe 0 4 10 E sad 4 67 ee re LS AA Wet var A HEN use er BET VO R4 41 N i te sia r a 4 E ARA aa Share y la DERK A 4 My yd yA gt A WT fh A RA 1A A Leo 4 3 1 5 kr air She ame 04 AO ae 41744 41 By A 47 wer Og AA ve DAA AN p halago ia 12420148146 ALARA CM ERS Pla 4 1 4 y 4 A UNICA AO u 52 trare ende an 0024
8. aa Y A PIS APT bibla ace EITTEN U Ajig 71 Racha SDR DALE O 1 Ab Py tipi 3 di twa bf ROCE une BB QIM ind ALD w r bus gt 1 043 yea 6 445 AJ OER Pa hy 2 5 ae ag N i JAR rk 7 3 4 4 de TETS A fti 4 A ES Was Roa 4 ts 4 8 r a 4 us Sag Las a De ha dy t A fe a pes ud e ido 8 4 RA as E E Ne 52 ich 2 2 EN A NER 4 4 1 4 24 Gr EN mr HANS e a en e 4 ans i qa 4 1 ih Mes G 8 lt Hot Keen isos capaz En 5 4 A N Vasa ant da Qe he 4 4 ART UN 4 BE nato o Ye wlan ip 44 Cerys ia A BEL FOR gt meh T E A 472 VEE ai Ae de sh 9 036 Male Pr 4 TI gt ee ri a 5 42 A A 4 sea u 1 gh 4 anys 6 ae A 3 ys Ss 1 1 reh u jasah f al k 54
9. ia Vasa 1 25 aS rahe al hh RN a ahs Gases ney usar XAG we 71 af aft TEARRE 27 eta EN Ate 1 ADAN ANTENA Ti ph 3 e uf Pasat 2 fat y y te 5 hie sidiga ME rd eye e5 MA II A HRS A 4 aes min rele 1 pm 4 dr ats ARA le 14 BR KORG 243 gt wie ve as oki 709 Lau 4 a 4 55 ane ida Pasi Ca Nel ott i GA EURO ter Lerma h 2 2 ERA Sha PRAN i HR ye a uy A DELLA SEN EM t 4 OE 99 Tye an Gane 2441 6 fie 3 CIA es wy 3 4 1 RA EEP 3 ota y i i gt 4 gt Oe Si sf EFI EURA an ren 7 I 2 tit ve in x y TO E teatis AI AIIA lets e gt TS an CN A ai 7 47 an 4 AO Urt 248i 949 3 Ne er La e F eS a BE ER gt ha
10. ER esa nte sh head aiitra tete 3 Pp 4 4497224 er 0 A parla gt ee 4 eher te aati ieee paro nea wiz P gt Bi HA 4 124 te ES er rave alten gp wert ad 1346428 gon a 3 pe tamat AN de ir ow id Pr fe Hey te uff Ie hacer ea an ERREGT len a 45 y 3 es aes 13 E pe Ay 4 y 4 lt a Wing gt tr OR bret ya wh RY NTE AL RES y 4 y rr 25 Ras m AAA e SP Lowe 474742 OPE Ag 94 Ps ers Bee ee nate rer E IS a e kt rw Y ar HF wry To cursive ra vor he es Pra CW IDA de sae Py ar IA PNET PARA ra we me ry gel 4 BAER en Me TVs PAE PTT MIRA e PI a dep
11. all the functions of the two programs written for the CADDS4x system It does require more user input keystrokes and the insert function should be done in the top view to avoid an orientation problem These are not necessarily limitations however they are the major differances between the two programs It is recommended that equipment should not be arranged or rearranged from the IDB end This is because the spacial relationships and interferances are extremely difficult if not impossible to visualize without graphic 3 D representation The most that should be done from the 15 IDB end would be to eliminate erase unwanted pieces of equipment 16 Appendix I USER S MANUAL A Detailed Program Description The program TRANSFER UCD described in this appendix performs the tasks of extracting information from the graphics database of the arranging computer and writing it to a formatted output file or by taking a similarly formatted file as input reading it and causing graphic fiqures to be inserted into an empty ship s compartment or to be erased from an existing prearranged ship s compartment This program was written in User Programming Language UPL running under the ComputerVision Personal Designer microCADDS system While this appendix does not require intimate knowledge of the microCADDS system it does require basic knowledge of computer aided design CAD concepts and environment In this program
12. 8 i y Aut F y Ls AN Li LICOR AAA wl Her 1 en HKN a al a 1 i u AS ary Dabs Fa 97 tat yS 4 5 f u gt 5 y 0 A My Lala fone ate ab ira a 1 ee a xy i 2 i 4 gt he IN 576 LO DAN DIE 5 CTN ts wh gt e nde voy gt ia ERWIN 0 62 1 2 aes nn 445 mi sy Y ates Sere AR in 4 i 1 e EN N vtfets Ja lt un 1 4 A 4 ma CUAD saf nin pi ashe a ae 4 am b 8 gt e CMA y a Yi f PA PESER E A EHEN yA fi 44 ON 94 retro nr SURFEN N Ln ER wey Hada Rn ir LOES 14 E a ia ates 1 als 1334 mo joy a yin SI 4 END win 3 H Ahr q tae nin Pen HY af i y A NE A amp Ur oon hr Wwe u Al 5 SE AU ae SE REA I i la 7 ere web O dea t e Re 12 Ay AS eins mpx un ER
13. 84AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 C Chryssostomidis C Graham M Meyers P V Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NA84AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 Page 4 C Chryssostomidis C Graham M Meyers P V Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NA84AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 Page 5 C Chryssostomidis C Graham M Meyers P V Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NA84AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 Page 5 C Chryssostomidis C Graham M Meyers P V Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NAB4AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 Page 6 microCADDS Geometric Construction and Detailing Referance Revision 2 0 ComputerVision Corporation October 1985 microCADDS Geometric Construction and Detailing Referance Revision 2 0 ComputerVision Corporation October 1985 Appendix A Persnoal Systems Communication Referance Revision 2 0 ComputerVision Corporation November 1985 User Programing Language Referance Revision 2 0 ComputerVision Corporation October 1985 Disk Operating System DOS Version 3 10 International Buisness Machines Corporation IBM 1984 1985 40 11 C Chryssostomidis C Graham M Meyers P V
14. Appendices of this report The ultimate result of this project was that all this was done on a desktop computer system detailed in Section 2 3 That this could be achieved on a desktop system vice a dedicated system points out the versitility and utility of these systems The ComputerVision Personal DesignerTM microCADDS system is an extremely powerful CAD system which has about 85 percent of the command language of the larger more costly dedicated CADDS4X system detailed in referance 1 The system is easy to use and is relatively user friendly The programming language UPL has a good logical structure a fast compile time and adequate documentation The sole problem with the UPL and microCADDS system is the 14 long tedious debugging cycle that requires a seperate compile boot of the GCD processor and then test of the program code The major drawback of the desktop CAD system itself is that it has available less than one tenth the available core memory of the dedicated systems This is being overcome by the addition of advanced storage devices Bernoulli boxes add on hard disk drives bubble memory cards etc or by tying into a larger system see Section 3 2 via modem or cable in order to access stored parts libraries and databases In comparing the program written here and the ones designed for the larger system 1 the basic differences are minor and cosmetic at most The desktop program is a Single program performing
15. E SOE Dre fh as i i TE 4 5 alot EN viraje EN EA doin Ni Bieta 2 codes da are 12 E Zw N aH 204409 oa mi 5044256 gtr 7 4 SA x Dh arate ER rs Ls 0 tea eta Ses enger Sehr sgin uu a Ar suga u 54 Mar N a var ars A RN i 9 ST 29 ATA e Bun i gt Med tee de PA Alala 9 as Miaa Aches 9 oP COT andere stale E 74 3h miles MA TEE TET x O oo ne 4744 ne 26442 RACED sin 5 4 ws Vans 4 Ya de PU ry Seth de by 4A OA sab a on EN A FU A 968247944 say RI me Ab ques dom tHe fm QF ial are Mio eet ande he 2783 A de EY Bun 2 ari 1241 E H 4 e wurd x ara n4 use a p M y iiie 4 woh g We trae Mu ber ura mas we Re Ara MSIE Mr iD 2 2 sie NR 3301 yt der TK s 4719 is 4 y 5 TES t 2 much he HA la ur 615224 CRE EY
16. ONE WITH PART A OF THE PROGRAM NEWLINE IF ANS Y OR ANS y THEN GOTO POINT5 ELSE IF ANS N OR ANSz n THEN 34 GOTO POINT1 ELSE PRINT ANS IS NOT AN OPTION CHOOSE AGAIN PRINT GOTO POINT4 POINTS RETURN END PROC SUBROUTINE INPUT PROC INPUT INTEGER I J NEND 0 NENT 0 POINTI ACCEPT COMPT_NAME PROMPT INPUT THE COMPARTMENT NAME DAT NEWLINE OPEN FL COMPT_NAME ACCEPT J PROMPT ENTER THE NUMBER OF PIECES OF EQUIPMENT LAST NEWLINE POINT2 35 LOOP I 1 TO J READ FL MIB I 10 GENERIC_NAME I 10 UNIQUE_NAME I 10 FIGURE_ORIGIN 1 30 END_LOOP CLOSE FL POINT3 ACCEPT ANS PROMPT DO YOU WISH I SERT OR E RASE EQUIPMENT NEWLINE IF ANS I OR ANS i THEN GOTO POINT4 ELSE IF ANS E ANS e THEN GOTO POINTS ELSE PRINT ANS IS NOT AN OPTION CHOOSE AGAIN PRINT GOTO POINT3 POINT4 LOOP I 1 TO J GENERIC_NAME 1 RMV_CHR GENERIC_NAME I 9 13 UNIQUE_NAME 1 RMV_CHR UNIQUE_NAME I 9 13 SEND INS FIG SEND GENERIC_NAME I 36 SEND X FIGURE_ORIGIN 1 X SEND Y FIGURE_ORIGIN I Y SEND Z FIGURE_ORIGIN I Z INSERT TEXT TXT UNIQUE_NAME 1 ORG FIGURE_ORIGIN I HGT 4 0 WDT 4 0 LNSP 3 0 END_LOOP SEND REPAINT GOTO POINT6 POINTS LOOP I 1 TO J ERASE ENT_ID MIB 1
17. Pa Doa NA Ii a ROR 6 GD WY GP N fey 224 the CAS qaw gt pra 4 42 fst age in ii ide E siha RM oy ARAM ur X 4 2a 4 Wer new ew PELAR We SFE Co rere GNIS Al vu GAs Karten 222 een ars canny un PAS we er 1244 ER EEE siya ok at as eae 4 P ASS ya 87 TRI i t 50 10 ni rn er rer or i 1 a HS a ER Jle ur Satna ha seem nece gt Pate ALA FREUE we par de A ALA eine MS 5 160 4 y i iNY a g F i ty we mo ta of 2 En ott wi RL 1 i 4 49 EA MALE nr Een Bade 9 SE AR e s P 4 pr y eye J rs El 7 z e Ey 1 gt 7 590 sum sola Pr EN ur ee et chal as AO were PEGAR bet e wirt eye ws eee ae PL an pb y pey PEPE enn ong FORA rap ee 94 a e A phy
18. Prakash EQUIPMENT ARRANGEMENT USING INTERACTIVE COMPUTER GRAPHICS MIT SEA GRANT Project NA84AA D 00046 R T 28 Report No MITSG 86 3TN APRIL 1986 Page 9 41 a WATE QA UY 227 DESK FIGURE 2 43 FILER FIGURE 3 44 ae 1 E cs MONYLEDY CL LIPCR JuY43 5i
19. S environment and this example is completed 27 D Detailed Output The data file produced by the TRANSFER UCD program is a sequential mode formatted human readable text type file It is sequential mode in that each variable line follows the previous line in sequential order until the end of the file is reached It is formatted in that within each variable line there is a specific location variable type and length for each variable The human readable text type refers to its manner of being written in ASCII characters rather than binary machine code The write statement for the file is SLOOP I TO J WRITE Fl 10 GENERIC 10 AM UNIQUE_NAME I 10 FIGURE 30 3 END_ LOOP This write statement produces J variable lines with four variables per line These variables are MIB I 10 Master Index Block integer array element which has a field width of 10 characters and is left justified within the field GENERIC_NAME I 10 array element containing the string name of the generic equipment figure in the parts library the element has a field width of 10 characters and 28 is right justified within the field UNIQUE_NAME 1 10 array element containing the string name that is the unique name of the particular instance of that piece of equipment the element has a field width of 10 characters and is right justified within the field FIGURE_ORIGIN I 30 3 array element
20. and 3 Next a compartment should be prepared or imported and then the figures can be inserted arranged or rearranged see figure 4 PART NAME COMPTI OLD PART DB VERSION 2 gt gt RESTORE VIEW 1 lt 1 gt gt INSERT FIGURE file CHAIR dig gt gt MOVE scent d dig from ORG d to As many figures can be created and stored in the parts library as is necessary and as storage space will allow Once the parts library has been created and the compartment arranged the TRANSFER program may be run The program is run from within the compartment drawing that will be affected 24 gt gt RUN TRANSFER MAIN MENU A PREPARE AN EQUIPMENT INFORMATION FILE B RECEIVE AN EQUIPMENT INFORMATION FILE C EXIT THIS PROGRAM CHOOSE AN OPTION A INPUT THE COMPARTMENT NAME DAT COMPT1 DAT ENTER THE NUMBER OF PIECES OF EQUIPMENT 4 From this point on when the user has entered all the pertinent data and not a space extra a period will terminate the entry but will not be read as part of the entry DIGITIZE THE DESIRED PIECE OF EQUIPMENT INPUT THE EQUIPMENT GENERIC NAME CHAIR INPUT THE EQUIPMENT UNIQUE NAME Cl The user will repeat this cycle as many times as needed until all the pieces of equipment have been picked up The output file COMPT1 DAT is automatically written see Section D of this appendix ARE YOU DONE WITH PART OF THE PROGRAM Y ARE YOU THROUGH WITH THIS PROGRAM WN At this po
21. containing the coordinate location of a particular instance of a figure s origin the element has a field width of 25 with 4 significant decimals retained and is right justified within the field The following is the example file COMPT1 DAT given in its listed format of MIB GENERIC_NAME UNIQUE FIGURE_ORIGIN 294 FILER FA 10 963 89 444 000 136 DESK D1 91 636 31 436 000 236 CHAIR cl 65 121 34 624 000 293 FILER FB 179 494 31 490 0001 29 Appendix II LISTINGS A Variable Listings The following is a list of the variable names used in the program Included in this listing will be name descriptors and variable types used Variable Type Name Descriptor NEND Integer Number of ends NENT Integer Number of entities MIB I Integer Master Index Block array ANS Strine Answer to a query String Name of generic figure UNIQUE NAME T String Unique equipment name COMPT NAME String Compartment name FIGURE Coordinate The figure s origin I Integer Counting marker J Integer Counting marker INT Integer Entity type number NBREAD Integer Number of bytes read from database subrecord IERR Integer Operation error code 30 Variable TF FL C 6 BUF String File Coordinate String Real Real Real Name Descriptor 31 Text File type of subrecord File name variable Data locations within the subrecord database Data input from
22. e computer that contains the IDB The data file produced is a sequential mode formated human readable text type file The data file is intended to be writen to read from and modified from either the arranging computer or the one on which the IDB formally resides There exists another option for file transfer and manipulation A part of the ComputerVision Personal Designer software package is a program called Personal CADDS Connect PCC 8 which will allow the user on a personal computer to connect to one of the dedicated minicomputers running the CADDS 4X software described in the MITSG Report 86 3TN 1 The user would be able to transfer the data file to or from the larger CAD system or be able to operate the personal computer as a CADDS 4X workstation with access to all the graphics library parts NFIGs stored on the other system 13 3 3 RESULTS AND CONCLUSIONS This project resulted in the capability to create internal compartment equipment arrangements and produced a program to manipulate those equipment arrangement locations The compartment internal arrangements were made by inserting and arranging previously created library part equipment figures into the compartment The program was created using the User Programing Language UPL It s function was to allow equipment loctation data to be sent to or recieved from the Navy s Integrated Data Base IDB The complete description of these functions is detailed in the
23. each output data file created contains information about a single ship s compartment referanced to the ship s origin or the compartment s origin as initially defined on the computer s CAD system This data file is a sequential mode formated human readable text type file The basic line of data in the file contains information 17 about each piece of equipment in the compartment whose geometry has been previously defined as a figure in the parts library a compartment containing library defined parts and non library entities only those pieces of equipment that are library parts can be sent or received The program TRANSFER UCD is composed of four main sections They are the GROUP variable declaration and three PROCESSes the Program Executive the subroutine Output and the subroutine Input The GROUP section declares global variables usable and accessable by all routines and processes and having the same names and arguments sets string lengths and array dimensions The Program Executive performs the basic function of traffic director by offering the user a menu of choices and then sending the user to the appropriate subroutine that performs the desired function The subroutine Output prepares an output file of equipment information to be sent to the IDB The subroutine Input receives an input file allows the user to insert or erase equipment figures from an existing compartment The subroutine Out
24. er 3 3 What level of detail is required There are several reasons that lead to the decision to send only the absolute minimum of information between computers The most prominent ones are to reduce the amount of time involved in data transfer and to ascertain the accuracy of the data sent 4 The program was developed to keep the level of detail down to the minimum required Therefore the graphic geometries neither compartment hull nor equipment are not sent back to the IDB once they are resident in the CAD computer 5 As can readily be seen all of these trade offs are interrelated and seem to have evolved as the project developed An overriding concern was that the program developed have a high degree of user friendliness This should translate into requiring a minimal numberof inputs from the individual users and only a nominal understanding of the internal mechanism of the program itself The above stated trade off results and conclusions from MIT Sea Grant Report 86 3TN 1 were used as guidelines for this poject to use in program development 2 2 Basic Approach The approach used was the one that would minimize the amount of data transfered between the arranging computer and the one on which the database would formally reside A parts library was created to contain the full 3 D image of each piece of equipment This image was stored as a figure The figure origin was placed at the lower left forward c
25. eveloped by ComputerVision The software included were ComputerVision s microCADDS Personal Designer 6 Utilities 7 Personal Systems Communication 8 and the User Programming Language UPL 9 The other major software used was IBM s Disk Operating System DOS version 3 1 and the IBM Line Editor EDLIN 10 11 Chapter 3 RESULTS 3 1 Basic Program Description The program is designed to be run from within the microCADDS Geometric Construction and Detailing GCD processor The user would be within the computer aided design CAD environment inside a compartment drawing and then utilizes the TRANSFER program in either a receiving or preparing mode to manipulate the equipment data The program TRANSFER UCD is composed of four main sections These are the GROUP variable declaration and three PROCESSes the Program Executive the subroutine OUTPUT and the subroutine INPUT The Program Executive is the main process It directs the user to the appropriate subroutine for action The subroutine INPUT receives an equipment data file from the IDB reads it and then either inserts figures into a compartment drawing or erases figures from a compartment drawing The subroutine OUTPUT prepares an equipment data file that will be sent as output to the IDB 12 3 2 General Output The output of this program was a data file that may be sent either via modem tape or floppy diskette to the mainfram
26. g a be win w pr gt A 47 E PG y he Y rx 324 lt 4 4 7 Y 2 a D 5 f 24 6 syi x 714 aa A a aa cod fee mty 3 GS ENTE Fr 7 ee q 1 2 3 He ery J as r nz maz ser 7 i ada ee ond 253 E rer i re 3 y a _ Br 7 41 A ds et ARA Eee te 73 Noone 4 Area ace 7 1 hy AE 13 i 3 ae metre en AMIA nine aa ane ri ey PA A 4 athi y np gl A afaritan ety 3 Bee race E ER er d ave 4 jee p ws gt Va as Ite Eee a Tat x ni 7 po 4 8 2 pd Fe Re o fe ae AT A u 4 AR Red Ae vate 261544 Peat cists ae MEERE RE EEE EDER rege 4 AN at gt En rhe Se ad i ra ree sE pr y A Er vist a bere nt nie i ed HA Py Sten yoni Hin u er ee Pee 9 22 pu ERIN ver LER cu as eh Er
27. int the user could have answered Yes and the user would have been returned to the microCADDS environment For the purposes of this USERS MANUAL the example will continue on 25 MAIN MENU A PREPARE AN EQUIPMENT INFORMATION FILE B RECEIVE AN EQUIPMENT INFORMATION FILE C EXIT THIS PROGRAM CHOOSE AN OPTION or INPUT THE COMPARTMENT NAME DAT COMPT1 DAT ENTER THE NUMBER OF PIECES OF EQUIPMENT 4 Here the program automatically reads the input file COMPT1 DAT before proceeding to the next prompt DO YOU WISH I NSERT E RASE EQUIPMENT I The program manipulates the data from the input file transfers control to the GCD processor and inserts figures and text at the appropriate locations ARE YOU DONE WITH PART OF THE PROGRAM Again for the purposes of this USERS MANUAL the example will continue on INPUT THE COMPARTMENT NAME DAT COMPT1 DAT ENTER THE NUMBER OF PIECES OF EQUIPMENT 4 Here the program automatically reads the input file COMPT1 DAT before proceeding to the next prompt DO YOU WISH TO I NSERT OR E RASE EQUIPMENT The program manipulates the data from the input file transfers control to the GCD processor and erases figures from the appropriate locations ERASING FILER FA ERASING DESK D1 26 ERASING CHAIR Cl ERASING FILER FB ENTITIES ERASED ARE YOU DONE WITH PART OF THE PROGRAM Y ARE YOU THROUGH WITH THIS PROGRAM Y The user is now returned to the microCADD
28. ipment arrangements and in interfacing with the IDB ie dedicated minicomputer CAD system vs personal computer based CAD software would point out the advantages and disadvantages of the system Chapter 2 METHODOLOGY 2 1 Project Guidlines The direction and scope of this project comes from the trade offs conclusions and recommendations of the MIT Sea Grant Project NA84AA D 00046 R T 28 1 The major tradeoffs and conclusions derived from equipment constraints problem definition and end uSer interaction are 1 Whether to develop a program that has universal application or one that is machine specific 2 The basic problem being that univerality requires much greater detail which means a much greater volume of data to be transfered The program developed will be machine equipment specific 2 Should the program use the IGES Initial Graphics Exchange Specification or the ASCII format The IGES format is designed to transfer graphic data and detail between normally incompatable machines therefore lending a quasi universality to the program The major dificulties with the IGES format are that it takes an enormous amount of time to transfer all the graphic data and it requires machine specific extractors and processor be written for both the sending and receiving machines If the process is to be machine specific then the ASCII format will be adopted because if it s ease of use and it s speed in transf
29. mode the subroutine uses the Geometric Construction and Detailing GCD resident master program to INSERT the figures at the appropriate coordinate location 13 within the compartment This mode also INSERT s TEXT the unique equipment part name UNIQUE NAME I at the figure s origin The erasure mode is a rapid wipe of the graphics database Master Index Block numbers MIB 1 read off of the input file Finally this subroutine also prompts the user as to whether to continue with this part of the program or to return to the Program Executive 20 B Preparation Steps Before the TRANSFER UCD program can be run a compartment and the equipment figures must be prepared The compartment size and shape should be imported from the Approved version of the ship that would reside in the IDB This compartment would then be refered to as the part by the microCADDS system and would be given the extension DRW to indicate that it is a separate distinct drawing If the entire ship is brought over and made resident within the microCADDS system then the arranger would have to pick out the individual compartment within the system in order to perform the arranging To prepare the equipment figures for insertion into the compartment it is first necessary to incorparate them into the equipment parts library Each piece of equipment is first created as a part The opening inquery in the microCADDS system prompts for the
30. n Naval Architecture and Marine Engineering ABSTRACT A program was developed to facilitate the arrangement of equipment in a ship compartment utilizing interactive computer generated graphics from a parts equipment library The program is designed to send equipment arrangement locations via file transfer to a ship s data base The program was written in User Programming Language UPL computer language for an enhanced IBM AT personal computer running the ComputerVision Personal Designer MicroCADDS software Thesis Supervisor Capt Graham Title Professor of Ocean Engineering 3 5 METHODOLOGY RESULTS APPENDIX USER S MANUAL LISTINGS A Variable Listings B Program Listings FIGURES 2 1 Project Guidlines 2 2 Basic Approach 2 3 Equipment INTRODUCTION oe 9 9 9 9 8 9 1 1 General Background 1 2 Problem Definition BIST OF REFERANCES CONTENTS 3 1 Basic Program Description 3 2 General Output 3 3 Results and Conclusions A Detailed Program Description BespPreparat on 5 C Sample Example Session D Detailed Output Figure Figure Figure Figure Figure LIST OF FIGURES Page ae Za De sS a en Tanon 43 1 2550 Arranged Compartment Cha
31. orner of a piece of equipment unless the nature of that equipment dictated otherwise The figures were inserted into the compartment drawing and arranged as desired All arrangements are done in view 1 Top View to preclude problems with the depth Z coordinate setting When the arrangement faze is completed the location information of each equipment is extracted from the compartment drawing and stored in a file This file vill then be either reprocessed or sent in toto to the IDB so that the location information can be removed there The reverse process would be to take the returning file from the IDB read the incoming data and then insert the figures at the locations specified 10 2 3 Equipment The hardware utilized was an IBM Personal Computer AT with an installed 20 Megabyte Hard disk drive c 1 2 Megabyte High capacity floppy diskette drive a 512 Kilobyte onboard RAM Random Access Memory 128 Kilobyte RAM Random Access Memory on an AST Research INC Advantage card with serial parallel I O Input Output adaptors comm2 lpt2 Tecmar Graphics Master color screen adaptor card an IBM serial parallel 1 0 adaptor comm1 1pt1 and an 8087 math coprocessor The attached peripherals include an Epson LQ 1000 printer lptl Sweet P plotter comml Prometheus ProModem1200 modem comm2 and a Hitachi HDG 1111B Digitizing Tablet upgraded to 12x12 work area comml The computer aided design CAD software utilized was d
32. part name The response should be the generic equipment name that will refer to the geometry of this particular piece of equipment The equipment s geometry is stored under a generic name so that the visual graphic representation can be called or inserted many times while refering to a single figure in the parts library A point should be inserted at the figure s origin so that the figure s orientation will be clear through out 21 the creation of the part This figure origin should be placed at the lower left forward corner of the specific equipment unless the nature of that equipment would dictate otherwise For example a chair or desk would have thier origin in the lower left forward corner see figure 1 or 2 but an overhead fixture might have its origin in the upper center face of the equipment Utilizing the modeling capabilities of the microCADDS system the equipment geometry should then be created and stored in the parts library If the manufacturers of each piece of equipment used were to submit IGES compatible FIGUREs on magtape when providing the equipment 11 this preparation step could be eliminated It is also possible to insert the generic equipment name into the FIGURE so that it will show up in every instance of the equipment in the compartment Once the parts library has been created and the compartment size and shape obtained the compartment can be arranged and rearranged easily 22 C Sample Exam
33. ple Session In this example we will go through the sequence of creating some new library parts their insertion and arrangement in a compartment and the use of the TRANSFER UCD program It is assumed that the reader understands the microCADDS Geometric Construction and Detailing GCD command structure 6 and the general use of CAD modeling concepts After having booted up the system proceed to the Geometric Construction and Detailing GCD program to do the actual modeling For this example the terminal screen prompt will be displayed as BOLD LETTERS and the user input will be displayed as BOLD ITALIC LETTERS IBM TERMINAL DEFINITION PART NAME gt gt This is the GCD prompt for the user to input the name of the part that will be created CHAIR NEW PART gt gt INSERT POINT dig XOYOZO This causes a point to be inserted at the origin of the drawing This origin will become the FIGURE ORIGIN which will be the point and orientation used when the part is 23 inserted into the compartment drawing as a figure After this has been done the user may then perform the modeling steps required to complete the part drawing gt gt ZOOM ALL gt gt EXIT Filing Name CHAIR Save lt Y N Co Y Replace Existing File lt Y C Y Pack the Database lt Y N C gt Y In order to store the part a figure a ZOOM ALL command must be issued followed by the appropriate FILE or EXIT command see figures 1 2
34. pter 1 INTRODUCTION 1 1 General Background The US Navy has been developing computer supported design capabilities in all major ship design functional areas for many years The principle shortfall of these design capabilities has been thier lack of intergration among functional areas The Navy s present effort is to produce an intergrated computer supported design process utilizing a common database system Navy Intergrated Database or IDB Part of this effort will be to develop the capability to produce equipment drawings utilizing Computer Aided Design CAD systems and to intergrate the internal compartment arrangement data into the Navy s IDB In 1984 the Naval Sea Systems Command of the United States Navy sponsored a Massachusetts Institute of Technology Sea Grant research project 1 in this area utilizing minicomputers with dedicated Computer Aided Design CAD hardware and software systems The conclusions from the Sea Grant project form the underlying foundations of this project 1 2 Problem Definition The problem was to develop the capability to produce compartment internal equipment arrangement drawings on a desktop personal computer using the ComputerVision Personal Designer MicroCADDS computer software and to create program capable of transfering equipment arrangement location data to and from the ship s integrated database A comparison of the capabilities of the different systems used in creating equ
35. put begins by asking the user to input the compartment name and the number of pieces of equipment that will have information prepared for The subroutine then uses two digitizes per equipment figure to 18 obtain the coordinate information of the equipment s origin FIGURE ORIGIN I and the Master Index Block number of the figure s location in the graphics database by the use of some intrinsic UPL functions The user is then prompted to input the equipment s library part figure name GENERIC and that equipment s unique descriptor UNIQUE _NAME I It iterates as many times as necessary to get all the pieces of equipment that the user has said will have information prepared about Next the output file is written Finally the user is prompted as to whether to continue with this part of the program or to return to the Program Executive The subroutine Input consists of two distinct parts the insertion mode and the erasure mode The subroutine starts by asking the user for the compartment name which is used as the file name when the extension DAT is added to it and the number of pieces of equipment contained in the file The subroutine then reads the file and loads the arrays with the file s data At this point the user is asked if equipment insertion or erasure is desired These two operations are mutually exclusive and should have separate data files prepared for each operation In insertion
36. subrecord data base X coordinate Y coordinate Z coordinate Program Listing The following is the program listing GROUP INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER NEND NENT INT NBREAD MIB 20 STRING ANS 1 STRING TF 2 STRING GENERIC 20 10 STRING UNIQUE_NAME 20 10 STRING COMPT NAME 10 COORD FIGURE_ORIGIN 20 FILE FL COORD C 6 STRING BUF 72 REAL REAL Y REAL Z END GROUP SUBROUTINE OUTPUT 32 PROC OUTPUT INTEGER 1 J NEND 0 NENT 0 TF POINT1 PRINT ACCEPT COMPT_NAME PROMPT INPUT THE COMPARTMENT NAME DAT NEWLINE OPEN 1 ACCEPT J PROMPT ENTER THE NUMBER OF PIECES OF EQUIPMENT LAST NEWLINE POINT2 LOOP I 1 TO J POINTA PRINT DIGITIZE THE DESIRED PIECE OF EQUIPMENT PRINT GETENT 1 NENT MIB I IEND I VERIFY ENTTYP INT ENTID MIB I IF INT 11 THEN GETSR MIB 1 TF 1 62 NBREAD BUF IERR FIGURE_ORIGIN I C 5 33 ACCEPT GENERIC_NAME 1 LAST PROMPT INPUT THE EQUIPMENT GENERIC NAME NEWLINE ACCEPT UNIQUE_NAME I LAST PROMPT INPUT THE EQUIPMENT UNIQUE PART NAME NEWLINE ELSE GOTO POINTA ENDIF END_LOOP SEND REPAINT POINTS HOOP I 1 TO J WRITE FL MIB I 10 GENERIC_NAME I 10 UNIQUE_NAME I 10 FIQURE ORIGIN 1 30 3 END_LOOP CLOSE FL POINT4 ACCEPT ANS PROMPT ARE YOU D

Download Pdf Manuals

image

Related Search

Related Contents

M-Cab CD Cleanng Pads, 100pcs  Neff I79SH52N0B cooker hood  20-750-UFB-1 Universal Feedback Encoder Option  PDF  Brochure - InterCAD Systems Pvt. Ltd.  1761-6.3, MicroLogix™ 1000 Programmable Controllers, User Manual  ASD Suite User Manual - ASD:Suite Community  DKX-A800 - Kenwood  5 Guía de Instalación  User Manual - Calibration Technologies  

Copyright © All rights reserved.
Failed to retrieve file