home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / t / t191 / 3.img / TRANS.ZIP / TRANS.DOC < prev    next >
Encoding:
Text File  |  1990-10-22  |  13.3 KB  |  362 lines

  1. It is advisable to read the file "trans.upd" to get a list of the
  2. updates with this version.
  3.  
  4.  
  5.  
  6. A description of how to use the TRANS program.
  7. ***********************************************************************
  8.  
  9. BEFORE GOING ANY FURTHER:
  10. ***********************************************************************
  11. Before running the program, you must have a directory called \tmp
  12. on your disk for the scratch files.
  13. To make this , type in the following command:
  14. MKDIR \TMP
  15.  
  16. This directory may need cleaning of scratch files if you crash out of the
  17. program. Due to the large size of some IGES files, these scratch files
  18. may also be large, so it is a good idea to clean up this directory each
  19. time you boot the system. Put the lines:
  20. DEL \TMP\*.* <AUTOEXEC.DAT >TEMPFILE
  21. DEL TEMPFILE
  22. into the file \AUTOEXEC.BAT
  23. and put the line :
  24. Y
  25. into the file \AUTOEXEC.DAT
  26.  
  27. This will automatically delete any files in the \tmp directory.
  28.  
  29. The TRANS program should be in the \qd2d\trans directory, but if not, put
  30. the line
  31. TRANS=\directory path\
  32. into the AUTOEXEC.BAT file  where directory path is the actual directory
  33. where you have put TRANS
  34.  
  35. You can make a defaults file called
  36. TRANS.QDA
  37.  
  38. This can be in the QIKDRAW directory (usually \QD2D on DOS) or the TRANS
  39. directory as described above.
  40. Here is an example file:
  41.  
  42. textfile     * input file name
  43. textfile     * output file name
  44. 15000        * point limit
  45. 15000        * line limit
  46. 3000         * circle limit
  47. 2000         * curve limit
  48. 8000         * symbol limit
  49. 2000         * plane limit
  50. 500          * dimension limit
  51. 7            * output format (number of decimal places)
  52.  
  53. This sets the default values for the prompts.
  54.  
  55.  
  56. MODES OF OPERATION
  57. ***********************************************************************
  58.  
  59. The TRANS program has 3 modes of operation:
  60. IGES translation, DXF translation and QikDraw translation.
  61.  
  62. IGES MODE
  63. ***********************************************************************
  64.  
  65. In iges iges mode, it reads in an iges file and converts it to a QikDraw
  66. file. The iges file must have the name suffix ".igs", and the text file is
  67. automatically named with a suffix of ".TX2".
  68.  
  69. The command is entered in unix standard:
  70.  
  71. trans modifier file file
  72.  
  73. where
  74.  
  75. modifier is:
  76. -t     translate to Iges (from QikDraw text file)
  77. -f     translate from Iges (to QikDraw text file)
  78.  
  79. file is:
  80.  
  81. the file names for the source and the destination, in that order.
  82.  
  83. If you don't specify the destination file, but specify only a directory,
  84. the source is used for the first part of the name. eg:
  85.  
  86. trans -f data\highway.igs \qd2d\
  87. is the same as:
  88. trans -f data\highway.igs \qd2d\HIGHWAY.TX2
  89.  
  90. NOTE: you have to put in the trailing "\" for directories.
  91. (The uppercase is only relevant for unix OS, and is ignored for DOS)
  92.  
  93. You don't have to complete the file name with the suffix, the program will
  94. do that, and also will change to the correct suffix. eg:
  95.  
  96. trans -f c:\iges\data\highway a:\highway.junk
  97. is the same as:
  98. trans -f c:\iges\data\highway.igs a:\HIGHWAY.TX2
  99.  
  100.  
  101. When the program is running, it will show where it is at, and in the bulk
  102. of the transfer, it will keep updating a status line at the bottom of the
  103. screen.
  104. Any error messages that are worth noting will remain on the screen.
  105. (Not be over-written by the next status update).
  106.  
  107. If the iges file has a lot of levels of nesting in entities, the TRANS program
  108. can run out of stack space (which is only 64k on DOS). This would cause a
  109. crash out of the program, and leave some scratch files on the disk. These
  110. scratch files are all in the \tmp directory.
  111.  
  112.  
  113. ***********************************************************************
  114. IMPORTANT: When writing a textfile from QikDraw which you intend to use for
  115. converting to iges you must unpack all symbol entities which are not text.
  116. eg. a door symbol, or a bed must be unpacked to individual lines before
  117. the transfer, otherwise it will be converted to it's ASCII equivalent.
  118. ***********************************************************************
  119.  
  120.  
  121. A DESCRIPTION OF THE STEPS USED IN READING AN IGES FILE:
  122.  
  123. 1. get the iges file onto the disk with the correct name. (It must be suffixed
  124.    by .igs) eg. pump.igs
  125.  
  126. 2. execute the TRANS program: eg. trans -f pump a:\
  127.    The program may come up with some prompts you will need to answer, or
  128.    accept the defaults.
  129.    It may find that the units of the iges file were inches, or some other unit
  130.    and suggest a scale factor in translating.
  131.    If the co-ordinates in the file are large values, it will suggest scaling
  132.    down by factors of 10.
  133.  
  134. 3. Read the text file into QikDraw. Select the menu squares FILE READ TEXT
  135.    then type in the file name. eg. FILE READ TEXT a:pump
  136.  
  137. 4. Scale the drawing:
  138.    When the drawing is read in you may not see anything on the screen.
  139.    That is because the entities may be drawn somewhere off screen at the
  140.    present scale.
  141.    I suggest using UTIL ZOOM and answering Y to the first prompt (for scale
  142.    to fit extents). Then note the scale, use UTIL VIEW to return to the initial
  143.    scale and then SET SCALE, and type in your noted scale value.
  144.    The reason for using SET SCALE is to make the line styles appear correct.
  145.  
  146. A DESCRIPTION OF THE STEPS USED IN WRITING AN IGES FILE:
  147.  
  148. 1. get the QikDraw text file onto the disk with the correct name.
  149.    (It must be suffixed by .TX2) eg. TEXTFILE.TX2
  150.  
  151. 2. execute the TRANS program: eg. trans -t textfile new
  152.    The program may come up with some prompts you will need to answer, or
  153.    accept the defaults.
  154.    It will ask if you wish it to force conversion of points so that the
  155.    QikDraw points are converted to pointe entities in the iges file.
  156.    This will make the file large, and may cause problems with the CAD
  157.    program attempting to read in such a large database.
  158.    In most cases you should answer NO to this prompt.
  159.  
  160. 3. Read the iges file into the other CAD program.
  161.  
  162.  
  163. DXF MODE
  164. ***********************************************************************
  165.  
  166. In DXF mode, it reads in a DXF file and converts it to a QikDraw
  167. file, or the other way. The DXF file name must have the name suffix ".dxf",
  168. and the text file name must be appended with ".TX2".
  169.  
  170. The command is entered in unix standard:
  171.  
  172. trans modifier file file
  173.  
  174. where
  175.  
  176. modifier is:
  177. -d     translate DXF file to QikDraw file
  178. -a     translate QikDraw file to DXF file
  179.  
  180. file is:
  181.  
  182. the file names for the source and the destination, in that order.
  183.  
  184. A DESCRIPTION OF THE STEPS USED IN READING A DXF FILE:
  185.  
  186. 1. get the AUTOCAD DXF text file onto the disk with the correct name.
  187.    (It must be suffixed by .dxf) eg. shuttle.dxf
  188.  
  189. 2. execute the TRANS program: eg. trans -d shuttle.dxf TEXTFILE.TX2
  190.  
  191. 3. Read the text file into QikDraw. Select the menu squares FILE READ TEXT
  192.    then type in the file name. eg. FILE READ TEXT textfile
  193.  
  194. 4. Scale the drawing:
  195.    When the drawing is read in you may not see anything on the screen.
  196.    That is because the entities may be drawn somewhere off screen at the
  197.    present scale.
  198.    I suggest using UTIL ZOOM and answering Y to the first prompt (for scale
  199.    to fit extents). Then note the scale, use UTIL VIEW to return to the initial
  200.    scale and then SET SCALE, and type in your noted scale value.
  201.    The reason for using SET SCALE is to make the line styles appear correct.
  202.  
  203.  
  204. A DESCRIPTION OF THE STEPS USED IN WRITING A DXF FILE:
  205.  
  206. 1. get the QikDraw text file onto the disk with the correct name.
  207.    (It must be suffixed by .TX2) eg. TEXTFILE.TX2
  208.  
  209. 2. execute the TRANS program: eg. trans -a textfile new
  210.  
  211. 3. Read the DXF file into the other CAD program.
  212.  
  213.  
  214. NOTES ON TRANS:
  215. ***********************************************************************
  216.  
  217. Some iges translators will not convert all entities: for example AUTOCAD
  218. (At the time of writing this file)
  219. will convert curves into composite entities consisting of circles and lines,
  220. and will write ellipses as circle segments also. QikDraw will not write out
  221. dimensions, and when it reads them in, they no longer are dimension entities
  222. but a representation using lines and symbols.
  223. In some cases it is better to use another file transfer program, or the DXF
  224. translator mode of TRANS.
  225. ***********************************************************************
  226. IMPORTANT: When writing a textfile from QikDraw which you intend to use for
  227. converting to iges you must unpack all symbol entities which are not text.
  228. eg. a door symbol, or a bed must be unpacked to individual lines before
  229. the transfer, otherwise it will be converted to it's ASCII equivalent.
  230. ***********************************************************************
  231.  
  232.  
  233. There are a number of data files used by trans:
  234.  
  235. trans        a shell script (UNIX only).
  236. trans.exe    The actual program.
  237. trans.dim    DIMension dummy block.
  238. trans.upd    UPDates listed for the users information.
  239. trans.dat    DATa used by the program.
  240. trans.doc    DOCumentation called up by the help facility.
  241.  
  242. The following files are optional:
  243.  
  244. trans.qda    Qikdraw DAta specifies number of entities (user definable).
  245. trans.lnk    LiNK between AUTOCAD BLOCK and Qikdraw symbol (user definable).
  246. trans.nga    Non Graphic Attribute link to AUTOCAD ATTRIB (user definable).
  247. trans.lst    Line Style link from AUTOCAD LTYPE to QikDraw style (user definable).
  248. trans.lay    LAYer assignment from AUTOCAD LAYER to QikDraw pen (user definable).
  249.  
  250. TRANS.QDA:
  251.  
  252. textfile     * input file name
  253. textfile     * output file name
  254. 3000         * point limit
  255. 3000         * line limit
  256. 1000         * circle limit
  257. 500          * curve limit
  258. 3000         * symbol limit
  259. 1000         * plane limit
  260. 500          * dimension limit
  261. 7            * output format (number of decimal places)
  262.  
  263. The .QDA file is normally created for the trans program so that it matches with the
  264. current release version of QikDraw for tha particular machine and operating system.
  265. The operator should not need to change this file.
  266.  
  267. TRANS.LNK:
  268.  
  269. This file provides a link between AUTOCAD BLOCKs and QikDraw symbols.
  270. AUTOCAD blocks are normally exploded out into individual entities as they
  271. are called up in the DXF file as INSERTs, but if the block name is listed
  272. in the .LNK file, then a QikDraw symbol will be inserted instead of
  273. exploding the block definition. The format of the file is as so:
  274.  
  275. {block_name} {QikDraw_symbol_file_name} {ASCII_character_string}
  276. ...
  277. ...
  278.  
  279. where {block_name} is the AUTOCAD BLOCK name
  280.       {QikDraw_symbolFile_name} is the symbol file name
  281.       {ASCII_character_string} is the string of ascii equivalents
  282.          for the symbol to be inserted.
  283. eg:
  284.  
  285. BED1 HOMESYM !
  286. OPEN_A HOLOFSYM A
  287.  
  288. This file will convert the DXF BLOCK INSERT of BED1 to the symbol with
  289. the ASCII equivalent of '!' in the symbol file 'HOMESYM.SYM', and similarly
  290. for the open A character.
  291.  
  292. The INSERT Xscale and Yscale will be translated so that the Symbol's height
  293. = the Yscale, and the Symbol's width-scale = the Xscale / Yscale.
  294.  
  295. TRANS.LST:
  296.  
  297. This file contains a list of AutoCad DXF LTYPE names and the correspondig
  298. line style in QikDraw. When the translator finds a line type named in the file,
  299. it will use the QikDraw line style when creating the new entity.
  300.  
  301. The format of the TRANS.LST file is as so:
  302.  
  303. {font name} {Qikdraw line style number} {symbol line style number}
  304. {font name} {Qikdraw line style number} {symbol line style number}
  305. ...etc
  306.  
  307. {font name} is the name of the DXF font (must be in lower-case)
  308.     eg. phantom
  309. {Qikdraw line style number} is the qikdraw line style menu position
  310. {symbol line style number} is the menu position in QikDraw equivalent to
  311. selecting via the QDLINE1.SYM QDLINE2.SYM etc menus.
  312.  
  313. eg. TRANS.LST:
  314.  
  315. slashes 11 1
  316. fence 11 3
  317.  
  318. Using a symbol line style number of 100 + n will use the second line style
  319. file QDLINE2.SYM, use 200 + n, and it will refer to QDLINE3.SYM and so on.
  320.  
  321. TRANS.LAY:
  322.  
  323. Trans normally converts each layer name to a unique QikDraw pen number, unless
  324. the limit of 64 pens is exceeded, then new layers will be mapped to pen 63.
  325. If a QikDraw layer name is listed in the trans.lay file, then it will be mapped
  326. as specified in the file.
  327.  
  328. The format of this file is as so:
  329.  
  330. {Autocad layer name} {QikDraw pen} {Qikdraw style} {Qikdraw user defined style}
  331. .....
  332. ....
  333.  
  334. where {Autocad layer name} is the layer name in AUTOCAD
  335.       {QikDraw pen} is the pen number this layer is to be mapped to
  336.       {QikDraw style} is the default line style for this layer
  337.       {QikDraw symbol style} is the symbol style from QDLINE1.SYM etc as in
  338.          TRANS.LST
  339.  
  340. eg.
  341.  
  342. 17-1 62 0 0
  343. 17-2 62 0 0
  344. FENCES 10 11 3
  345.  
  346. The user defined style number is the same as in the TRANS.LST file. For
  347. User defined styles, the Qikdraw style number must be 9 or greater.
  348. The style and user defined style name refers to the box position in the
  349. menu. The first box (at the top of the screen) is box number 0.
  350.  
  351. TRANS.NGA:
  352.  
  353. This file lists the names of AUTOCAD ATTRIB or ATTDEF attribute entity types
  354. which should be converted to Non Graphic Attributes in QikDraw. The file also
  355. specifies a pen number for the ATTRIB. This is because although an NGA entity
  356. has does not have a pen specification, it is possible to create text symbols
  357. from the ATTRIB type and value. There is a command line prompt which enables
  358. or disables the feature of creating text.
  359.  
  360. It is possible to plot NGA's from QIkDraw by using MODE DRAW to turn on NGA's
  361. then SET PLOTTER, and DRAW PLOT SUBDRAWING (not DRAWING).
  362.