home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / CADKEY_C.ZIP / CADKEY13.ZIP / DXF / ALCADMY.DOC next >
Encoding:
Text File  |  1989-06-23  |  106.3 KB  |  2,307 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                                ALCADMY
  11.  
  12.                  CADL/DXF Bi-directional Translator
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.         Version 3.1 
  22.  
  23.         Copyright 1988,1989
  24.  
  25.            The CADAMA Design Group and the program authors have no 
  26.         liability or responsibility to the user or any other person 
  27.         or entity with respect to any liability, loss or damage 
  28.         caused, or alleged to be caused, directly or indirectly by 
  29.         this software, including but no limited to, any interruption 
  30.         of service, loss of business or anticipatory profits or 
  31.         consequential damages resulting from the use or operation of 
  32.         this software.  This software is distributed at no charge by 
  33.         CADKEY, Inc. in cooperation with the CADAMA Design Group.
  34.  
  35.         Updates to this documentation will be made and incorporated 
  36.         in future editions.
  37.  
  38.         Direct questions/comments to:
  39.  
  40.         CADAMA Design Group
  41.         831 Turnberry Cv S.
  42.         Niceville, Fl 32578
  43.  
  44.         Please register your ALCADMY copy with the CADAMA Design
  45.         Group for update announcements.  Include a return address
  46.         and/or a telephone number in all correspondence.
  47.  
  48.         ALCADMY is a trademark of the CADAMA Design Group.
  49.  
  50.         CADKEY and CADL are trademarks of CADKEY, Inc.
  51.         AutoCAD and DXF are trademarks of Autodesk, Inc.
  52.         IBM is a registered trademark of IBM Corporation.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                                                   ii
  59.  
  60.                             TABLE OF CONTENTS
  61.  
  62.         INTRODUCTION . . . . . . . . . . . . . . .  1
  63.  
  64.         INSTALLATION . . . . . . . . . . . . . . .  2
  65.            Suggested System Set-up . . . . . . . .  2
  66.  
  67.         OPERATION. . . . . . . . . . . . . . . . .  3
  68.            Input Notation. . . . . . . . . . . . .  3
  69.            Loading ALCADMY . . . . . . . . . . . .  3
  70.            Translation Selection . . . . . . . . .  3
  71.            System Set-up . . . . . . . . . . . . .  4
  72.            File Naming . . . . . . . . . . . . . .  4
  73.            Messages. . . . . . . . . . . . . . . .  5
  74.  
  75.         CADL to DXF TRANSLATION. . . . . . . . . .  8
  76.            Overview. . . . . . . . . . . . . . . .  8
  77.            Input Commands. . . . . . . . . . . . .  9
  78.            Features. . . . . . . . . . . . . . . . 10
  79.            Entity Attributes . . . . . . . . . . . 13
  80.               Levels . . . . . . . . . . . . . . . 13
  81.               Colors . . . . . . . . . . . . . . . 14
  82.               Linetypes. . . . . . . . . . . . . . 14
  83.            Temporary Files . . . . . . . . . . . . 14
  84.            System Limitations. . . . . . . . . . . 14
  85.            Messages. . . . . . . . . . . . . . . . 15
  86.  
  87.         DXF to CADL TRANSLATION. . . . . . . . . . 21
  88.            Overview. . . . . . . . . . . . . . . . 21
  89.            DXF Sections. . . . . . . . . . . . . . 21
  90.               Header Section . . . . . . . . . . . 21
  91.               Table Section. . . . . . . . . . . . 22
  92.                  Linetype Table. . . . . . . . . . 22
  93.                  Layer Table . . . . . . . . . . . 22
  94.                  Style Table . . . . . . . . . . . 23
  95.                  View Table. . . . . . . . . . . . 23
  96.                  UCS Table . . . . . . . . . . . . 23
  97.                  Vport Table . . . . . . . . . . . 23
  98.                  Dwgmgr Table. . . . . . . . . . . 23
  99.               Block Section. . . . . . . . . . . . 23
  100.               Entity Section . . . . . . . . . . . 23
  101.            Features. . . . . . . . . . . . . . . . 26
  102.            Entity Attributes . . . . . . . . . . . 29
  103.               Layers . . . . . . . . . . . . . . . 29
  104.               Colors . . . . . . . . . . . . . . . 30
  105.               Linetypes. . . . . . . . . . . . . . 30
  106.            Temporary Files . . . . . . . . . . . . 30
  107.            System Limitations. . . . . . . . . . . 30
  108.            Messages. . . . . . . . . . . . . . . . 30
  109.  
  110.         ADDITIONAL USES. . . . . . . . . . . . . . 39
  111.  
  112.  
  113.  
  114.  
  115.  
  116.                                                                    1
  117.  
  118.         INTRODUCTION
  119.  
  120.            ALCADMY is a CADL-DXF bi-directional translator 
  121.         providing an easy method of moving data between dissimilar 
  122.         CAD systems.  Most PC CAD systems are capable of storing and
  123.         retrieving data in one of these ASCII formats. Few, however,
  124.         are able to handle files in both formats and still preserve 
  125.         enough of the original drawing to be considered a 
  126.         transparent conversion between the CAD systems.
  127.            ALCADMY provides this transparent conversion.  It is a 
  128.         self-contained, executable package requiring no support 
  129.         files or system overlays.  ALCADMY is currently based on 
  130.         the CADL and DXF definitions as specified in CADKEY version 
  131.         3.5, and AutoCAD Release 10, respectively.  As these 
  132.         format definitions evolve, ALCADMY will be updated to 
  133.         incorporate changes.
  134.            ALCADMY is designed to operate on the IBM PC/XT/AT 
  135.         series or compatible computer.  Minimum memory requirement 
  136.         is 640K.
  137.  
  138.  
  139.  
  140.  
  141.  
  142.                                                                    2
  143.  
  144.         INSTALLATION
  145.  
  146.            Because ALCADMY is capable of translating source CADL 
  147.         or DXF files of a potentially unlimited size into the target
  148.         format, it is suggested that it be operated off of a hard 
  149.         disk system.  This is not, however, a requirement, as the 
  150.         actual file size limitation is dependent primarily on the 
  151.         available disk space.  ALCADMY does generate temporary 
  152.         working files to the default disk and should therefore be 
  153.         provided sufficient space in which to operate.  Other system
  154.         requirements and file structure limitations are detailed in 
  155.         the individual translation descriptions.
  156.  
  157.         Suggested System Set-up
  158.  
  159.            The following operating suggestions for various system 
  160.         configurations are supplied to minimize the possibility of 
  161.         any I/O errors due to lack of disk space.  The set-up should
  162.         provide the maximum amount of storage space available on 
  163.         your system, should it be required by ALCADMY.  These are 
  164.         only suggestions and are made under the assumption that the 
  165.         files to be translated are large.  Tailor them to fit your 
  166.         system configuration based on your file sizes and storage 
  167.         capacities.  The temporary file requirements are discussed 
  168.         in the translation descriptions.
  169.  
  170.            1. Single floppy disk system
  171.               Load ALCADMY and then replace the ALCADMY disk 
  172.               with a disk containing only the source file.
  173.  
  174.            2. Dual floppy disk system
  175.               Select drive A as the default drive, then load 
  176.               ALCADMY.  After ALCADMY has been loaded, place a 
  177.               formatted blank disk in drive A, and the disk 
  178.               containing the source file in drive B.  The 
  179.               destination of the target file may be specified as 
  180.               either drive A or B.
  181.  
  182.            3. Hard disk system
  183.               Insure the hard drive is the default drive.  Load 
  184.               ALCADMY.  Source and target files may be to either 
  185.               a hard or a floppy disk.
  186.  
  187.            4. RAM Disks
  188.               Designating a RAM disk as the default disk drive for 
  189.               temporary file usage will accelerate the translation 
  190.               process.  The user must allocate sufficient memory on 
  191.               the RAM disk to hold the temporary files.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.                                                                    3
  198.  
  199.         OPERATION
  200.  
  201.         Input Notation
  202.  
  203.            Square brackets    []   Do not enter the brackets. The 
  204.                                    brackets define the information 
  205.                                    contained within them as optional
  206.                                    and should be entered only when 
  207.                                    required.
  208.  
  209.            Drive designation  d:   Enter the desired drive letter 
  210.                                    followed by a colon.  ALCADMY 
  211.                                    is not case sensitive.
  212.  
  213.            Pathname          path  Enter the desired directory(s)   
  214.                                    to access the desired file(s).
  215.  
  216.         Loading ALCADMY
  217.  
  218.            Load and run ALCADMY as you would any other executable 
  219.         program.  Since it is a self-contained package, there is no 
  220.         requirement to set paths or access levels to reach support 
  221.         or overlay files.  The command:
  222.  
  223.            [d:][path]ALCADMY 
  224.  
  225.         is all that is required.
  226.            Additionally, the translation selection (CADL-to-DXF or 
  227.         DXF-to-CADL), source file(s) and target file(s) information 
  228.         may be input on the command line.  The command line input 
  229.         format is then:
  230.  
  231.            [d:][path]ALCADMY [selection[/source[/target]]]
  232.  
  233.         where the selection, source, and target parameters may be 
  234.         separated by a slash (/) or a space.  The parameter formats 
  235.         are defined below.
  236.  
  237.         Translation Selection
  238.  
  239.         ALCADMY's main menu offers a selection of:
  240.  
  241.            A - CADL to DXF translation
  242.            B - DXF to CADL translation
  243.  
  244.            E - Exit to DOS.
  245.  
  246.         To make your selection, press the appropriate letter (A, B, 
  247.         or E).  If a translation is selected, ALCADMY will then 
  248.         provide a short description of ALCADMY and its operation. 
  249.         The description will appear only once each time ALCADMY 
  250.         is run.
  251.  
  252.  
  253.  
  254.  
  255.                                                                    4
  256.  
  257.         System Set-up
  258.  
  259.            Once a translation direction has been chosen, ALCADMY will 
  260.         then supply the necessary prompting to receive the source and 
  261.         target filenames, as well as offering control features to the 
  262.         translation direction selected by the user.  These features 
  263.         are detailed in the section describing each translation 
  264.         direction.
  265.            At any time when supplying the filenames or selecting the 
  266.         initial control features, the user may elect to abort the 
  267.         translation process by pressing the ESCAPE key (ESC).  In 
  268.         doing so, ALCADMY will immediately terminate the present 
  269.         translation process and recall the main menu described above.
  270.  
  271.         File Naming
  272.  
  273.            After the translator description has been displayed, the 
  274.         ALCADMY operating screen displays the source and target 
  275.         file types, and requests the file names to be used for the 
  276.         translation.  Enter a valid drive designation and/or 
  277.         directory information along with the file name as shown 
  278.         below.  File names do not require an extension to be added 
  279.         and any filename extension used other than the one shown in 
  280.         parentheses will be stripped off and replaced with the 
  281.         displayed extension.  ALCADMY will use the preset DOS PATH 
  282.         while searching for the given source file name, however it is 
  283.         recommended that the user supply this information directly.
  284.            As with normal DOS file naming conventions, file names 
  285.         cannot exceed eight characters.  This limitation applies to 
  286.         the file name and does not include the drive designation, 
  287.         directory information, or the extension.  The file names are 
  288.         input in the form:
  289.  
  290.            [d:][path]filename[.ext]
  291.  
  292.            If batch processing of a particular file type is desired, 
  293.         the source file name supplied may contain the DOS wildcard 
  294.         character (*) for file name selection.  ALCADMY will then 
  295.         translate all the files which meet the wildcard parameter and 
  296.         will use the same user supplied control features that are 
  297.         supplied for the first file of the translation.  When the 
  298.         wildcard character is used, ALCADMY automatically uses the 
  299.         source file name as the target file name.  Under these 
  300.         conditions, the user can only control the target drive 
  301.         designation and path.
  302.  
  303.  
  304.  
  305.  
  306.  
  307.                                                                    5
  308.  
  309.         Messages
  310.  
  311.            When displaying errors/problems to the screen, ALCADMY 
  312.         will also use the colors red or green text for the message.  
  313.         The red messages may be considered errors and the green 
  314.         messages as warnings.  Red messages indicate a situation 
  315.         which may seriously affect the translation validity of the 
  316.         target file being written.  Green messages indicate the 
  317.         detection of a situation which should pose no problem to the 
  318.         translation process.  These green messages may be generated 
  319.         by the omission of some data, ALCADMY being unable to 
  320.         understand the data it is being passed, or a situation which 
  321.         ALCADMY can correct for internally.
  322.  
  323.         1. File [source file] not found
  324.  
  325.               ALCADMY will check for the existence of the 
  326.            specified source file.  If it is not found, the above 
  327.            message is generated.  Possible causes are:
  328.            a. The file named does not exist.
  329.            b. the file named exists on a different directory.
  330.            c. ALCADMY is not able to access the disk drive
  331.               specified.
  332.  
  333.            SOLUTION: Enter correct drive, path, and filename of the
  334.                      desired source file.
  335.  
  336.            NOTE: ALCADMY will then generate the following message
  337.                  in the information window:
  338.  
  339.                       Enter the drive and/or path
  340.                       containing the file(s): [A]
  341.  
  342.                     Supply the desired drive and directory 
  343.                  information where the source file(s) are located. A 
  344.                  null entry will result in the use of the default 
  345.                  drive (A:).  If the drive supplied is not an 
  346.                  assigned drive, ALCADMY may be terminated by the 
  347.                  operating system.
  348.                     Once receiving this information, ALCADMY will 
  349.                  then provide a directory listing of the files with 
  350.                  the expected source file extension (.CDL or .DXF).  
  351.                  After supplying the directory listing, ALCADMY  
  352.                  proceeds back to the source file input line and is 
  353.                  waiting for another source file name to be entered.
  354.  
  355.         2. Illegal [source or target] path given: [path supplied]
  356.  
  357.               ALCADMY verifies the directory path given for the 
  358.            source and target files.  If an error is found during this 
  359.            verification, the above message is generated.  Possible 
  360.            causes are:
  361.            a. Incorrect directory information supplied.
  362.            b. Incorrect drive designation for the supplied path.
  363.  
  364.  
  365.  
  366.  
  367.  
  368.                                                                    6
  369.  
  370.            SOLUTION: Enter the correct directory information along 
  371.                      with any necessary drive information to access 
  372.                      this path.
  373.  
  374.         3. No file name specified: [source file information supplied]
  375.  
  376.               ALCADMY must be given a name after any drive and/or 
  377.            directory information.  If all files are to be translated, 
  378.            the wildcard character (*) should be used.  Without any 
  379.            source file information, ALCADMY cannot access the 
  380.            appropriate file(s).  A possible cause is:
  381.            a. No source file name string was supplied.
  382.  
  383.  
  384.            SOLUTION: Enter a legal source file name.
  385.  
  386.            NOTE: If no target file name is supplied, ALCADMY will 
  387.                  automatically use the source file name as the target 
  388.                  file name with the appropriate target extension.
  389.  
  390.         4. Unable to open [target file]
  391.               An I/O error has occurred while initializing the 
  392.            target file.  Possible causes are:
  393.            a. The name given is an illegal DOS file name.
  394.            b. ALCADMY is not able to access or write to the 
  395.               disk drive specified.
  396.  
  397.            SOLUTION: Enter a valid filename to a drive that will 
  398.                      support it.
  399.  
  400.            NOTE: ALCADMY returns to the target file input line and
  401.                  is waiting for another target file name entry.
  402.  
  403.         5. Unable to access default drive
  404.  
  405.               Prior to translating any files, ALCADMY checks the 
  406.            accessibility of the default drive.  If an I/O error 
  407.            results during this check, the above message is 
  408.            generated.  Possible causes are:
  409.            a. The default drive is not physically accessible.
  410.            b. The default drive is full.
  411.            c. The default drive is write protected.
  412.  
  413.            NOTE: ALCADMY will then generate the following message 
  414.                  in the information window:
  415.  
  416.                       Designate a new default disk drive
  417.                       by letter (A-F): [A]
  418.  
  419.                  Supply the letter of the desired default disk drive 
  420.                  in the range A to F.  Any other entry will result 
  421.                  in the use of drive A.  If the letter supplied 
  422.                  is not an assigned drive, ALCADMY may be 
  423.                  terminated by the operating system.
  424.  
  425.  
  426.  
  427.  
  428.  
  429.                                                                    7
  430.  
  431.            NOTE: To use a drive outside the A to F range as the 
  432.                  default, that drive must be designated as the 
  433.                  default drive prior to executing ALCADMY.
  434.  
  435.            SOLUTION: Supply ALCADMY with an assigned, accessible 
  436.                      default drive letter with sufficient space to 
  437.                      hold the temporary and possible source and 
  438.                      target files.
  439.  
  440.  
  441.  
  442.  
  443.  
  444.                                                                    8
  445.  
  446.         CADL to DXF TRANSLATION
  447.  
  448.         Overview
  449.  
  450.            ALCADMY will translate all of the CADL data primitives 
  451.         listed below into a DXF representation.  Not all of the data 
  452.         primitives will directly translate into the standard DXF 
  453.         format due to either being defined in a view other than the 
  454.         overhead view plane and the DXF format chosen cannot 
  455.         understand any out of plane definitions, or there is no 
  456.         equivalent DXF data type.  Therefore, these entity shapes 
  457.         will be estimated with a series of short line approximations.  
  458.         These approximations may either be defined as independent 
  459.         lines, or grouped into a DXF polyline definition.  Control 
  460.         over this output is detailed below in the Features section.
  461.            All text entities are assigned the DXF STANDARD font.  
  462.         This alleviates the necessity of requiring the font 
  463.         definition files to be available when loading the file onto 
  464.         a DXF system.  Text entities with multiple lines of text 
  465.         data will be broken into individual DXF text entities for 
  466.         each line of text and will maintain their proper position in 
  467.         the drawing.  Additionally, all view dependent entities 
  468.         (GENDIM, LABEL, LEADER, TEXT, WITNESS, and XHATCH), not in 
  469.         the overhead view plane, may be translated into the DXF 
  470.         file.  If the definition view plane is not the overhead 
  471.         view, the starting position coordinates are rotated into the 
  472.         overhead DXF view.  However, be aware that since these 
  473.         entities do not have any definable depth in the CADL file, 
  474.         their resultant location in the DXF file will be unknown.
  475.            All complex entities (i.e. entities composed of multiple 
  476.         singular entities) will be written out as individual DXF 
  477.         BLOCKs.  Each BLOCK is then properly placed in the drawing 
  478.         with the DXF INSERT command.  By translating complex entities 
  479.         in this manner, the individual pieces maintain the 
  480.         associativity to the overall complex entity.  Presently, the 
  481.         complex entities are: XHATCH, LEADER, LABEL and GENDIM.
  482.  
  483.         REMINDER: The standard DXF definition plane is equivalent to 
  484.                   the CADKEY View 1.  Therefore, the user should 
  485.                   prepare the CADKEY part in View 1 prior to 
  486.                   generating the CADL file.  This will insure that 
  487.                   the DXF file maintains the proper appearance.
  488.  
  489.         NOTE: If the target DXF file is in the AutoCAD Release 10 
  490.               format, the CADL VIEW definitions are used to calculate 
  491.               the Entity Coordinate System (ECS) necessary to define 
  492.               the same drawing plane.
  493.  
  494.         NOTE: CADKEY 3.xx Users - Since ALCADMY is designed to 
  495.               translate CADL files as written by CADKEY, it will not 
  496.               accept any type of variable usage within a data 
  497.               definition.  If a data primitive's definition does 
  498.               include any type of non-numeric input, the results are 
  499.               unknown and the target file should be considered 
  500.               corrupted.
  501.  
  502.  
  503.  
  504.  
  505.  
  506.                                                                    9
  507.  
  508.                  If a line in a source file begins with anything 
  509.               other that the Input Commands listed below, ALCADMY 
  510.               will consider the line to be invalid, disregard any 
  511.               additional information on that line, and generate an 
  512.               error message displaying the invalid input.
  513.               Therefore, insure no variables are included in the 
  514.               CADL source file.
  515.  
  516.         Input Commands
  517.  
  518.            As defined through CADKEY version 3.5, the following 
  519.         CADL commands and primitives are acceptable within ALCADMY:
  520.  
  521.            * (C) :label     * (C) GETSTR         (C) SETTYP
  522.            * (C) ABORT      * (C) GETVIEW        (C) SET COLOR
  523.            * (C) AUTO       * (C) GOTO         * (C) SET CONST    
  524.              (D) ARC        * (C) GROUP        * (C) SET DEPTH    
  525.              (S) ARRAY      * (C) HALF         * (C) SET DEVIN    
  526.            * (C) CALL       * (C) IF           * (C) SET DEVOUT   
  527.              (D) CIRCLE     * (C) INPUT        * (C) SET DRAWORD  
  528.            * (C) CHAIN        (D) LABEL          (C) SET LEVEL    
  529.            * (C) CHGVW        (D) LEADER       * (C) SET IMMCOM
  530.            * (C) CLEAR      * (C) LEVELS         (C) SET LINETYPE 
  531.            * (C) CLEARSEL     (D) LINE         * (C) SET LINEWIDTH
  532.            * (C) CLOSE      * (C) LOCAL        * (C) SET MASK     
  533.            * (C) CLS        * (C) MODE         * (C) SET PEN      
  534.            * (C) CODE       * (C) ON           * (C) SET PRECISION
  535.              (D) CONIC        (D) POINT          (C) SET TEXTANG  
  536.            * (C) DELENT     * (C) PALETTE        (C) SET TEXTASP  
  537.            * (C) DOSUB      * (C) PAUSE        * (C) SET TEXTFONT 
  538.            * (C) DOUBLE       (D) POLYGON        (C) SET TEXTHT   
  539.            * (C) EXE          (D) POLYLINE     * (C) SET UNIT     
  540.            * (C) EXIT       * (C) PRANGE       * (C) SET VIEW     
  541.            * (C) FTEXT      * (C) PRINT        * (C) SIZEOF 
  542.              (D) GENDIM     * (C) PROMPT         (D) SPLINE       
  543.            * (C) GETALL     * (C) READ         * (C) SPRINT
  544.            * (C) GETENT     * (C) REDRAW         (D) TEXT         
  545.            * (C) GETENTM    * (C) REM            (S) VIEW         
  546.            * (C) GETENTXY   * (C) REM GRP        (D) VLINE        
  547.            * (C) GETFLT     * (C) REM POSITN     (D) VPOINT       
  548.            * (C) GETGROUP   * (C) SCALE          (D) VPOLYGON      
  549.            * (C) GETINT       (C) SETCOL       * (C) WAIT         
  550.            * (C) GETKEY     * (C) SETCUR       * (C) WINDOW       
  551.            * (C) GETMENU    * (C) SETDEPTH       (D) WITNESS     
  552.            * (C) GETNEXT      (C) SETLEV       * (C) WRITE        
  553.            * (C) GETPLANE   * (C) SETPEN         (D) XHATCH       
  554.            * (C) GETPOS       (C) SETTEXT         
  555.           
  556.            *  - Does not effect the DXF file 
  557.           (C) - CADL Command
  558.           (D) - Data Primitive
  559.           (S) - Support Primitive
  560.  
  561.  
  562.  
  563.  
  564.  
  565.                                                                   10
  566.  
  567.         Features
  568.  
  569.            After the source and target files have been identified, 
  570.         several control questions must be answered for ALCADMY.  
  571.         These control questions help tailor the DXF file to the 
  572.         needs of the user.  With each question there is a default 
  573.         answer. If anything other than one of the displayed choices 
  574.         is given, the default answer is used.  Below is a listing of 
  575.         each control question and how it affects the DXF target 
  576.         file.
  577.  
  578.         NOTE: At any time when answering the first five control 
  579.               features, the user may elect to abort the translation 
  580.               process by pressing the ESCAPE key (ESC).  In doing 
  581.               so, ALCADMY will immediately terminate the present 
  582.               translation process and recall the main menu described 
  583.               above.
  584.  
  585.         -- For which AutoCAD DXF version is this file being written:
  586.             A - Prior to Version 2.5
  587.             B - Version 2.5x
  588.             C - Version 2.6x/Release 9
  589.             D - Release 10
  590.            Enter your choice (A-D): [D]
  591.  
  592.            Differences in the selections:
  593.              A:   These early DXF versions are also strictly 
  594.                dimensional, and without any of the complex data 
  595.                types.  The line approximation option to use lines or 
  596.                polylines will not be offered since only lines can be 
  597.                used.
  598.                   Any GENDIM's in the source file are broken into 
  599.                individual lines, arcs, solids and text entities.
  600.              B:   These DXF versions are also two dimensional, but 
  601.                are capable of accepting polyline information.  
  602.                Therefore, the default for the line approximation is 
  603.                for polyline data in order to keep the entity as a 
  604.                single unit.
  605.                   Any GENDIM's in the source file are broken into 
  606.                individual lines, arcs, solids and text entities.
  607.              C:   These DXF versions are capable of accepting 
  608.                dimensioning information as a separate entity.  If 
  609.                the source CADL file does contain dimensions 
  610.                (GENDIM), the information will be written as an 
  611.                appropriate DXF dimension block.
  612.                   Whenever possible, ALCADMY will make use of the 
  613.                3DLINE and 3DFACE in an attempt to preserved the CADL 
  614.                file's 3 dimensionality.  Therefore, the default for 
  615.                the line approximations will be for line data.
  616.              D:   This DXF version is similar to selection C with 
  617.                respect to the dimensioning information. However, with 
  618.                the addition of 3D capabilities, a 3D POLYLINE is set 
  619.                as the default for line approximations in order to 
  620.                preserve the associativity of an entity.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.                                                                   11
  627.  
  628.                   Planar entities (CIRCLE, ARC, TEXT, and GENDIM) 
  629.                will maintain their entity type if their definition 
  630.                plane can be adequately rotated and redefined into the 
  631.                DXF Entity Coordinate System.
  632.  
  633.         -- Enter the dimensions for the output file (2 or 3): [2]
  634.  
  635.               In accordance with the DXF definition, the capability 
  636.            does exist to write a legitimate 3D DXF file.  Most CAD 
  637.            systems, however, do not recognize the third dimension 
  638.            and may abort reading a DXF file if a third dimension 
  639.            variable is encountered.  Consult your CAD reference 
  640.            manual for the limitations of your system.
  641.  
  642.            NOTE: If a version 2.6x/Release 9 DXF target file is 
  643.                  being written, the user need not choose a 3 
  644.                  dimensional file in order to generate 3DLINEs and 
  645.                  3DFACEs.  This feature only effects those entities 
  646.                  that are normally written as two dimensional in a 
  647.                  DXF file.
  648.  
  649.            NOTE: If a Release 10 DXF target file is being written, 
  650.                  this control feature will not appear since this 
  651.                  version is capable of accepting 3D information by 
  652.                  definition.
  653.  
  654.         -- Elevate entities to the starting point height (Y/N)? [Y]
  655.  
  656.               This question is asked if a 2D DXF file is chosen from 
  657.            the first control feature.  By answering (Y)es to this 
  658.            question, each data entity will have its CADL Z-plane 
  659.            coordinate translated into a DXF elevation.  The DXF 
  660.            entity is raised off of the X-Y plane by the given 
  661.            elevation height.  Consult your CAD reference manual for 
  662.            your system's ability to use elevations.
  663.  
  664.            NOTE: If a Release 10 DXF target file is being written, 
  665.                  this control feature will not appear since this 
  666.                  version is capable of accepting the elevation 
  667.                  information as part of the entity's standard 
  668.                  definition.
  669.  
  670.         -- Use Polylines or Lines (P/L)? [P] or [L]
  671.  
  672.               While translating CADL primitives into DXF entities, 
  673.            some must have their shape estimated with short line 
  674.            approximations.  This control feature permits the choice 
  675.            of using independent line entities or a single contiguous 
  676.            DXF polyline for each approximation.  Consult your CAD 
  677.            reference manual for your system's ability to employ 
  678.            polylines.
  679.  
  680.            NOTE: If this features is displayed, the default answer 
  681.                  is based upon the answer given to Feature 1 above.
  682.  
  683.  
  684.  
  685.  
  686.  
  687.                                                                   12
  688.  
  689.                                            polylines
  690.         -- Convert View 1 arcs/circles to      or       (Y/N)? [N]
  691.                                           line segments
  692.  
  693.               Arcs and circles defined in the overhead view (CADL 
  694.            View 1) are directly translatable into the DXF format.  
  695.            This control feature supplies the option of also having 
  696.            the same short line approximation technique applied to 
  697.            these primitives as to those requiring the estimation.  
  698.            The DXF representation will be in the form chosen by the 
  699.            previous control question.
  700.  
  701.         -- Spline(s) in file.
  702.  
  703.               Enter the number of line segments to be substituted               
  704.               between node points (1-5): [1]
  705.  
  706.               This control question will appear only if a CADL 
  707.            SPLINE is in the source file.  The supplied answer will 
  708.            be used during the course of the short line approximation 
  709.            used to estimate the spline in DXF terms.  The more 
  710.            segments used, the closer the approximation to the 
  711.            original spline shape and the larger the DXF file 
  712.            created. The trade-off of file size versus approximation 
  713.            accuracy must be weighed by the user.
  714.  
  715.            NOTE: If the spline is described in terms of node points 
  716.                  rather than the curve coefficients between node 
  717.                  points, the line approximation is reduced to 
  718.                  line(s) directly to each node point.
  719.  
  720.         -- Text and Graphics Blend
  721.               A - As written in the source file
  722.               B - Text overlaying graphics
  723.               C - Graphics overlaying text
  724.            Enter your choice (A-B-C): [A]
  725.  
  726.               This control question will appear only if the CADL 
  727.            source file contains both text and drawing data.  This 
  728.            feature offers to sort and write the text and drawing 
  729.            entities in the order chosen.  By choosing "A", there is 
  730.            no change to the ordering of the data; choosing "B" will 
  731.            cause the drawing entities to be written prior to the 
  732.            text entities; and choice "C" causes the opposite 
  733.            reaction, that is, the text entities being written prior 
  734.            to the drawing entities.
  735.               This sorting feature can be significant if the DXF 
  736.            file is used in software packages that use a banner for 
  737.            text data.  The banner effect clears a rectangular area 
  738.            for the text causing the erasure of all data previously 
  739.            written through the designated area.  Any subsequent 
  740.            drawings in the area will overwrite the selected banner. 
  741.            The user must decide if the text data is to appear on 
  742.            top, beneath, or intermixed with the drawing data.  Many 
  743.            publishing packages use this banner effect.
  744.  
  745.  
  746.  
  747.  
  748.  
  749.                                                                   13
  750.  
  751.            NOTE: Text entities include: TEXT, GENDIM, and LABEL 
  752.                  definitions whereas graphics encompass any other 
  753.                  remaining definition.
  754.  
  755.         -- Translate active-view dependent:
  756.              text entities (Y/N)? [N]
  757.              drawing entities (Y/N)? [N]
  758.  
  759.               The text entities (TEXT, GENDIM, and LABEL) are 
  760.            considered to be two dimensional whose placement is 
  761.            defined solely in terms of X and Y coordinates relative to 
  762.            the view plane in which it was first created.  The text 
  763.            entities are displayed only when the active view is also 
  764.            the view plane defining the entity.  This translation 
  765.            feature offers the user the opportunity to have the 
  766.            placement of all non-View 1 text entities included in the 
  767.            target file.
  768.               The active-view dependent drawing entities are LEADER, 
  769.            WITNESS and XHATCH.  Those rules which apply to the text 
  770.            entities also apply to this entity.
  771.  
  772.            NOTE: All View 1 entities will be included in the target 
  773.                  file regardless of the response to this control 
  774.                  feature.
  775.  
  776.            NOTE: Being two dimensional, these entities have no Z 
  777.                  coordinate.  Therefore, a Z value of 0.0 is used in 
  778.                  the rotation process.  The actual placement of the 
  779.                  entities in the View 1 plane is unpredictable.
  780.  
  781.         Entity Attributes
  782.  
  783.           Levels
  784.              ALCADMY preserves the level assignments made to all 
  785.           data entities.  As each of the 256 available CADL levels 
  786.           are referenced, an equivalent DXF layer is defined using 
  787.           the color and linetype of the first entity defined on that 
  788.           level.  Any subsequent entities on that same level will 
  789.           have no effect on that layer's definition.  When each 
  790.           entity is translated into its DXF representation, the 
  791.           CADL color and  linetype will be defined along with the 
  792.           rest of the entity  definition.  Consult your CAD 
  793.           reference manual for the ability of your system to assign 
  794.           colors and linetypes independent of the layer definition.
  795.  
  796.           NOTE: The terms "level" and "layer" are synonymous and 
  797.                 refer to the same drawing overlays that can be 
  798.                 displayed or hidden.  In keeping with CADL and DXF 
  799.                 definitions, the term "level" will be used when 
  800.                 referring to CADL structuring, and "layer" for DXF 
  801.                 structuring.
  802.  
  803.  
  804.  
  805.  
  806.  
  807.                                                                   14
  808.  
  809.           Colors
  810.              ALCADMY preserves the color assignments made to all 
  811.           data entities.  The colors are mapped from those used in 
  812.           CADKEY (v3.12) into those used in AutoCAD's Release 9.  
  813.           Each color assignment is written into the DXF entity 
  814.           definition. No entities are made layer dependent for color 
  815.           assignment.  Consult your CAD reference manual for the 
  816.           ability of your system to assign colors independent of the 
  817.           layer definition.
  818.  
  819.           Linetypes
  820.              ALCADMY preserves the linetype assignments made to 
  821.           all data entities.  All four CADL linetypes are written 
  822.           into the DXF file regardless of whether or not they are 
  823.           used in the  source file.  Each linetype assignment is 
  824.           written into the  DXF entity definition.  No entities are 
  825.           made layer dependent for linetype assignment.  Consult 
  826.           your CAD reference manual for the ability of your system 
  827.           to assign linetypes independent of the layer definition.
  828.  
  829.           NOTE: Small entities that have undergone a short line 
  830.                 approximation may appear to have a CONTINUOUS 
  831.                 linetype despite the linetype assignment of the 
  832.                 original entity. This is due to the fact that the 
  833.                 individual line segments are too small to show the 
  834.                 line breaks.  If the approximation is sufficiently 
  835.                 enlarged by way of a scale function rather than a 
  836.                 zoom function, the assigned linetype will be seen.
  837.  
  838.         Temporary Files
  839.  
  840.            Because the CADL to DXF translation is a two pass 
  841.         process, relatively little disk space is required for 
  842.         temporary working files.  The temporary files that are 
  843.         created pertain to the layer definitions, blocks, and arrays.
  844.  
  845.         System Limitations
  846.  
  847.            To insure a smooth translation, there are only two 
  848.         limitations that are imposed on the CADL file.  They are:
  849.         1. There can be no more than 100 views defined.
  850.         2. The level numbers referenced cannot exceed 256 in 
  851.            accordance with the CADL definition.
  852.         Any references exceeding these limitations will cause errors 
  853.         to appear as detailed below.
  854.  
  855.  
  856.  
  857.  
  858.  
  859.                                                                   15
  860.  
  861.         Messages
  862.  
  863.            The following is a listing of the possible error messages 
  864.         that may be generated by ALCADMY in the course of 
  865.         translating a CADL file.  The error checking process has 
  866.         been installed at the points in the translation process 
  867.         causing the more common problems.  Not all errors can be 
  868.         predicted and corrected from within the program.  Therefore, 
  869.         should a translation not terminate normally, or should the 
  870.         drawing of the DXF file not resemble the original drawing 
  871.         that produced the CADL file, the user should check the 
  872.         source file for any unusual input.
  873.            When displaying errors/problems to the screen, ALCADMY 
  874.         will also use the colors red or green text for the message.  
  875.         The red messages may be thought of as errors and the green 
  876.         messages as warnings.  Red messages indicate a situation 
  877.         which may seriously affect the translation validity of the 
  878.         target file being written.  Green messages indicate the 
  879.         detection of a situation which should pose no problem to the 
  880.         translation process.  These green messages may be generated 
  881.         by the omission of some data, ALCADMY unable to understand 
  882.         the data it is being passed, or a situation which ALCADMY can 
  883.         correct for internally.
  884.  
  885.         NOTE: The CADL method for the input of information is a 
  886.               free format.  Since the only requirement for value 
  887.               separation is a minimum of a comma, ALCADMY expects 
  888.               strict adherence to the CADL definition for required 
  889.               and optional data input for each entity.  Any 
  890.               deviation from the CADL definition can cause 
  891.               unpredictable results in the translation process.
  892.  
  893.         NOTE: Pass 1 of the CADL to DXF translation is designed to 
  894.               collect general file information and does not evaluate 
  895.               each command line for correctness.  Hence, no errors 
  896.               are generated during pass 1.
  897.  
  898.         1. Array (array_name) has dimension errors
  899.  
  900.               During the definition of a data array, the dimensions 
  901.            of the array are declared.  If ALCADMY encounters a 
  902.            problem while reading the dimensions, the above message 
  903.            is generated.  The effect of this error is that the array 
  904.            will not be interpreted properly, and any subsequent 
  905.            errors generated may be the result of this error.  
  906.            Possible causes are:
  907.            a. The array dimensions have not been declared properly.
  908.            b. Array declaration previous to the dimension were 
  909.            declared improperly.
  910.  
  911.            SOLUTION: Check the array declaration.
  912.  
  913.  
  914.  
  915.  
  916.  
  917.                                                                   16
  918.  
  919.         2. Array (array_name) not found for [entity type]
  920.  
  921.               Several entity types (GENDIM, POLYGON, POLYLINE, 
  922.            SPLINE, VPOLYGON, and XHATCH) are dependent upon arrays 
  923.            to contain the numeric data that defines the points in 
  924.            the entity.  This message is generated if ALCADMY 
  925.            cannot locate the specific temporary array file 
  926.            containing the required data for the entity.  Possible 
  927.            causes are:
  928.            a. The array name defined by the array definition and the 
  929.               entity definition are not the same.
  930.            b. The named array has not been defined yet, and 
  931.               therefore has not had its temporary file written.
  932.            c. ALCADMY is unable to write the temporary array file 
  933.               and therefore does not exist.
  934.  
  935.            SOLUTION: Check the array name in the array and the 
  936.                      entity definitions for concurrence.  Insure the 
  937.                      array referenced is declared before the entity.  
  938.                      Make sure there is access and sufficient space 
  939.                      on the default drive for the required temporary 
  940.                      files.
  941.  
  942.            NOTE: After a spline has processed the required 
  943.                  information, the temporary array file is deleted to 
  944.                  free disk space.  Therefore, each array dependent 
  945.                  entity must have its own array defined.
  946.  
  947.         3. Array data error
  948.  
  949.               ALCADMY is expecting a specific number of array 
  950.            entries based on the declared dimensions.  This message 
  951.            is generated when that number is not met.  Possible 
  952.            causes are:
  953.            a. Insufficient number of data entries to meet the 
  954.               dimension specifications.
  955.            b. An improperly entered numeric value has caused 
  956.               ALCADMY to disregard the entry and continue 
  957.               searching for the next legitimate entry.  This search 
  958.               will cause the array to order the remaining data 
  959.               entries incorrectly, with the final result being an 
  960.               array without the required number of entries.
  961.  
  962.            SOLUTION: Insure dimension(s) declaration matches the 
  963.                      actual number of data entries in the array.  
  964.                      Insure that all numeric values are properly 
  965.                      entered.
  966.  
  967.            NOTE: If the end of the array is reached before the 
  968.                  specified number of entries, ALCADMY will pad the 
  969.                  remainder of the array with the value 0.0 to assure 
  970.                  the correct number of data entries.
  971.  
  972.  
  973.  
  974.  
  975.  
  976.                                                                   17
  977.  
  978.            NOTE: One error within the array may cause this error 
  979.                  message to be generated a number of times.
  980.  
  981.            NOTE: If this error message is generated, the entity 
  982.                  using the array should be considered invalid.
  983.  
  984.         4. Array name exceeds 8 characters
  985.  
  986.               CADL array names cannot exceed eight characters by 
  987.            definition.  If it does, ALCADMY will continue to read 
  988.            to the end of the array name, but will generate this 
  989.            message and concatenate the name at eight characters.  
  990.            This may cause additional errors if the array is later 
  991.            used by an array dependent entity. Possible causes are:
  992.            a. The array name exceeds eight characters.
  993.            b. The declaration line is formatted incorrectly causing 
  994.               ALCADMY to misinterpret the information.
  995.  
  996.            SOLUTION: Check the name used in the array definition for 
  997.                      a maximum of eight characters.  Insure the 
  998.                      array declarations conform to the CADL format.
  999.  
  1000.         5. Invalid command entry (command)
  1001.  
  1002.               ALCADMY will process only the valid commands and 
  1003.            primitives listed above in the Input Commands section.  
  1004.            Any line beginning with anything other than a valid 
  1005.            command or primitive will produce this message.  The 
  1006.            string evaluated by ALCADMY will be displayed within 
  1007.            the parentheses.  Possible causes are:
  1008.            a. Improper command or primitive entered.
  1009.            b. A previous error linked to a multiple line input is 
  1010.               continuing to be processed by ALCADMY.
  1011.  
  1012.            SOLUTION: Check the source file for the validity of each 
  1013.                      command/primitive.
  1014.  
  1015.            NOTE: When this error has occurred, the remainder of the 
  1016.                  line is disregarded, and ALCADMY begins to process 
  1017.                  the next line as a new command line entry.
  1018.  
  1019.         6. Level referenced exceeds limit (level)
  1020.  
  1021.               CADL levels assignments are bounded in the 1-256 
  1022.            range.  A level assignment of 0 is a default setting to 
  1023.            assign the current active level to the entity being 
  1024.            defined.  Any level reference outside the 0-256 
  1025.            boundaries will cause this error to be generated.  The 
  1026.            number shown in parentheses is the level referenced that 
  1027.            is causing the error.  Possible causes are:
  1028.            a. Improper level assignment in an entity definition.
  1029.            b. Improper level assignment in the default level 
  1030.               assignment command.
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.                                                                   18
  1037.  
  1038.            NOTE: If error occurs as a result of an improper default 
  1039.                  assignment command, the default level will set at 
  1040.                  level 1.  If the error occurs due to an improper 
  1041.                  level assignment in an entity definition, the level 
  1042.                  assignment will be the default level.
  1043.  
  1044.         7. [entity type] array name incorrect
  1045.  
  1046.               CADL array names cannot exceed eight characters by 
  1047.            definition.  If it does, ALCADMY will continue to read 
  1048.            to the end of the array name, but will generate this 
  1049.            message and concatenate the name at eight characters.  
  1050.            Processing will continue on the entity but the array 
  1051.            referenced may not be found.  Omission of an array name 
  1052.            in the entity definition will also generate this message.  
  1053.            Possible causes are:
  1054.            a. Referenced array name omitted.
  1055.            b. Referenced array name exceeds eight characters.
  1056.  
  1057.            SOLUTION: Check for the declaration of an array name.  
  1058.                      Check to ensure that the array name does not 
  1059.                      exceed eight characters.  Check the array 
  1060.                      declaration for matching names.
  1061.  
  1062.         8. Spline typecode incorrect
  1063.  
  1064.               ALCADMY requires strict adherence to the spline 
  1065.            typecode format.  The typecode must be at least two 
  1066.            characters and no more than four.  The first character 
  1067.            specifies as to whether the spline is defined in terms of 
  1068.            node points or curve coefficients.  The second character 
  1069.            defines the spline as 2D or 3D.  Possible causes are:
  1070.            a. Spline type code omitted.
  1071.            b. Spline typecode does not adhere to the CADL format.
  1072.  
  1073.            SOLUTION: Check the typecode declaration for its 
  1074.                      existence and CADL conformity.
  1075.  
  1076.            NOTE: If the typecode is omitted or is incorrect, the 
  1077.                  spline will be assigned the typecode of a 3D spline 
  1078.                  defined by curve coefficients.
  1079.  
  1080.         9. Temporary file space unavailable
  1081.  
  1082.               In the process of defining CADL levels as DXF layers, 
  1083.            a temporary work file is created.  Additionally, all 
  1084.            arrays are written to disk as temporary work files.  
  1085.            These work files are written to the default disk.  If for 
  1086.            any reason the default disk cannot support these files, 
  1087.            the above message is generated.  Possible causes are: 
  1088.            a. The default disk cannot be accessed.
  1089.            b. The default disk cannot hold another file.
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.                                                                   19
  1096.  
  1097.            SOLUTION: Check default drive for available space and 
  1098.                      file numbers.  Check disk drive for available 
  1099.                      access (Is the floppy disk drive closed?).
  1100.  
  1101.            NOTE: If this error occurs, the target file should be 
  1102.                  considered in an invalid DXF format.
  1103.  
  1104.        10. TEXT entity exceeds 10 lines
  1105.  
  1106.               ALCADMY will only process the first ten lines of a TEXT 
  1107.            entity.  Any lines after the tenth will be lost and the 
  1108.            above message will be generated.  Possible causes are:
  1109.            a. A TEXT entity contains more than ten lines of text.
  1110.            b. A TEXT entity contains ten lines of code, but CADKEY 
  1111.               generates an eleventh line to identify the end of the 
  1112.               text lines.
  1113.  
  1114.            SOLUTION: Insure no TEXT entities contain more than ten 
  1115.                      lines of text to be inserted into the drawing 
  1116.                      being translated.
  1117.  
  1118.          11. Undefined view referenced (view)
  1119.  
  1120.               Views in which dependent data primitives are defined 
  1121.            must be declared prior to the data primitive.  These 
  1122.            views supply the rotation matrix necessary to translate 
  1123.            the primitive into the overhead view.  When a view 
  1124.            dependent data primitive references a view and ALCADMY 
  1125.            does not have that view defined, the above message is 
  1126.            generated.  The number in parentheses is the view number 
  1127.            referenced but not found.  Possible causes are:
  1128.  
  1129.            a. The view has not been defined in the CADL file.
  1130.            b. The view is defined, but after it is referenced. 
  1131.            c. The view was defined but exceeded the 100 views 
  1132.               capable of being handled by ALCADMY. (See error 11)
  1133.  
  1134.            SOLUTION: Check for the correct view definition and its 
  1135.                      location in the CADL file.  If the view count 
  1136.                      does exceed 100, consider breaking the CADL 
  1137.                      file up into several smaller files.
  1138.  
  1139.            NOTE: If this error occurs, the correct rotation cannot 
  1140.                  be computed.  Therefore, no rotation can be 
  1141.                  performed on the data primitive, leaving it with 
  1142.                  the original view dependent coordinates.  This will 
  1143.                  place the entity in an unknown location with 
  1144.                  respect to the original drawing.
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.                                                                   20
  1151.  
  1152.            NOTE: This message will appear each time an individual 
  1153.                  data entity references an unknown view.
  1154.  
  1155.         12. View definitions exceed 100 (view)
  1156.  
  1157.               ALCADMY will maintain only 100 views and their 
  1158.            rotation matrices.  If any additional views are defined, 
  1159.            the above message is generated with the parentheses 
  1160.            holding the view number unable to be maintained. Possible 
  1161.            cause is:
  1162.            a. More than 100 views are defined.
  1163.  
  1164.            SOLUTION: Insure that all of the views defined are needed 
  1165.                      by the view dependent data primitives. Consider 
  1166.                      breaking up the CADL file into smaller files so 
  1167.                      the 100 view limit is not a factor.
  1168.  
  1169.            NOTE: Reference error 10 for the effect of this error on 
  1170.                  the view dependent entities.
  1171.  
  1172.         13. View (view number) not translatable into ECS
  1173.  
  1174.                When translating a CADL source file into a Release 10 
  1175.             DXF target file, if a drawing plane must be defined, the 
  1176.             VIEW definition referenced is rotated in an attempt to 
  1177.             fit it to the Arbitrary Axis Algorithm defined in the 
  1178.             Release 10 format definition.  This algorithm is used to 
  1179.             defined the rotation matrix of a plane and is defined as 
  1180.             the Entity Coordinate System (ECS).  If this rotation is 
  1181.             unsuccessful, the above error message is generated, and 
  1182.             those planar entities requiring the plane definition are 
  1183.             redefined through a short line approximation as they 
  1184.             would be for earlier DXF versions.  Possible cause is:
  1185.             a. The VIEW's rotation matrix cannot be rotated with 
  1186.                sufficient accuracy to define an acceptable ECS.
  1187.  
  1188.             SOLUTION: If the short line approximation technique is 
  1189.                       unacceptable, rotating the VIEW a few degrees 
  1190.                       about its Z axis should bring the new VIEW to 
  1191.                       within acceptable limits.  However, those 
  1192.                       entities defined in the original VIEW must 
  1193.                       somehow redefined into the newly created VIEW.
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.                                                                   21
  1200.  
  1201.         DXF to CADL TRANSLATION
  1202.  
  1203.         Overview
  1204.  
  1205.            ALCADMY will translate a DXF data file into an 
  1206.         equivalent CADL representation, with optional remarks to 
  1207.         identify the beginning and ending of data groups.  Since 
  1208.         ALCADMY operates exclusively on the information contained 
  1209.         within the source file, the DXF sections and entities that 
  1210.         reference external files (a shape or a text font definition, 
  1211.         for example) are not translatable.  However, as much of the 
  1212.         original data is preserved and assigned CADL default 
  1213.         settings as possible (e.g. all text data is translated but 
  1214.         is assigned the user-selected CADL font). Each of the 
  1215.         individual DXF sections may be as simple or as complex as 
  1216.         the format definition permits.  The effect of each section 
  1217.         on the CADL target file will be discussed below in greater 
  1218.         detail.
  1219.            The DXF data entities indicated in the Entity Section 
  1220.         have a CADL representation.  Although not all of the 
  1221.         entities have an equivalent CADL data type, most have the 
  1222.         exact shape preserved by dividing the original entity into 
  1223.         segments that have a CADL equivalency.  These segments can 
  1224.         be loosely reunited as a CADL Group.  Control over this 
  1225.         regrouping is discussed in the Features section.
  1226.  
  1227.         DXF Sections
  1228.  
  1229.         Header Section
  1230.  
  1231.            ALCADMY reads this entire command section and evaluates 
  1232.         each variable assignment.  Presently, the only commands 
  1233.         effecting the CADL target file are the current layer 
  1234.         assignment, and the fillmode setting.  The current layer 
  1235.         command will generate the CADL commands to set the active 
  1236.         level, color, and linetype to match the referenced DXF 
  1237.         layer.  All other Header Section commands are disregarded.  
  1238.         However, since ALCADMY does evaluate each command, any 
  1239.         non-standard DXF input codes will be noted via error 
  1240.         messages.
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.                                                                   22
  1247.  
  1248.         Table Section
  1249.  
  1250.           LTYPE (linetype) Table
  1251.              The Linetype table names and physically defines each 
  1252.           linetype used in the DXF file.  While the physical 
  1253.           definitions are of no value to the CADL target file, the 
  1254.           names given to the linetypes are highly significant.  The 
  1255.           assignment of DXF linetypes to data entities is 
  1256.           accomplished by referencing a linetype by name.  ALCADMY 
  1257.           translates the linetype assignments from DXF to CADL based 
  1258.           on the names given in the following table:
  1259.  
  1260.                  DXF NAME          CADKEY NAME   CADL NUMBER
  1261.  
  1262.               CONTINUOUS            SOLID             1
  1263.               HIDDEN or DASHED      DASHED            2
  1264.               CENTER                CENTER LINE       3
  1265.               PHANTOM or DASHDOT    PHANTOM LINE      4
  1266.  
  1267.              Any other DXF linetype name(s) used will result in the 
  1268.           assignment of the linetype used in definition of Layer 0.  
  1269.           Additionally, if Layer 0's linetype is not one of those 
  1270.           listed above, then linetype assignment will be the default 
  1271.           value of a SOLID line.
  1272.              ALCADMY does read the entire table and evaluates both 
  1273.           the physical description and the naming convention used.  
  1274.           Any non-standard DXF input codes are noted via error 
  1275.           messages.
  1276.  
  1277.           LAYER Table
  1278.              The Layer table is used to coordinate the DXF layer to 
  1279.           CADL level translation by assigning a level number to each 
  1280.           layer as it is defined in the source file.  The layer 
  1281.           definition also defines the color and linetype of the 
  1282.           entities residing on the layer that do not have an 
  1283.           independent color or linetype assignment.
  1284.              Although the DXF format definition does not limit the 
  1285.           number of layers that may be defined, the CADL format has 
  1286.           a restriction of 256.  See System Limitation for further 
  1287.           information.  ALCADMY does read the entire table and 
  1288.           evaluates all layer definitions.  Any non-standard DXF 
  1289.           input codes are noted via error messages.
  1290.  
  1291.           NOTE: The terms "level" and "layer" are synonymous and 
  1292.                 refer to the same drawing overlays that can be 
  1293.                 displayed or hidden.  In keeping with CADL and DXF 
  1294.                 definitions, the term "level" will be used when 
  1295.                 referring to CADL structuring and "layer" for 
  1296.                 DXF structuring.
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.                                                                   23
  1303.  
  1304.           STYLE Table
  1305.              The Style table presently has no effect upon the CADL 
  1306.           target file.  DXF Text fonts can be too diverse and named 
  1307.           too differently to conform to any equivalent CADL font.  
  1308.           CADL font control is discussed in the Features section.
  1309.              ALCADMY does read the entire table and evaluates each 
  1310.           style description.  Any non-standard DXF input codes are 
  1311.           noted via error messages.
  1312.  
  1313.           VIEW Table
  1314.              The View table presently has no effect on the CADL 
  1315.           target file.  Although the table does define specific view 
  1316.           points in 3D space, these view points do not have any 
  1317.           relationship to data entity definitions.
  1318.              ALCADMY does read the entire table and evaluates each 
  1319.           view point definition.  Any non-standard DXF input codes 
  1320.           are noted via error messages.
  1321.  
  1322.           UCS (User Coordinate System) Table
  1323.              The UCS table presently has no effect on the CADL 
  1324.           target file.  Although the table does define specific 
  1325.           coordinate axes, these axes do not necessarily relate 
  1326.           directly to any entity definition.  If an entity requires 
  1327.           its drawing plane to be defined, that information is 
  1328.           included as part of the entity's definition.
  1329.              ALCADMY does read the entire table and evaluates each 
  1330.           UCS definition.  Any non-standard DXF input codes are noted 
  1331.           via error messages.
  1332.  
  1333.           VPORT (Viewport) Table
  1334.              The Viewport table presently has no effect on the CADL 
  1335.           target file.  The table does define specific viewports used 
  1336.           within AutoCAD, but these viewports do not have any 
  1337.           relationship to data entity definitions.
  1338.              ALCADMY does read the entire table and evaluates each 
  1339.           viewport definition.  Any non-standard DXF input codes 
  1340.           are noted via error messages.
  1341.  
  1342.           DWGMGR (Drawing Manager) Table
  1343.              The Drawing Manager table has not yet been defined and 
  1344.           therefore has no effect on the CADL target file.  ALCADMY 
  1345.           does read any entries in the table if it exists but does 
  1346.           not evaluate any of the information.
  1347.  
  1348.         Block Section
  1349.  
  1350.            All translatable data within an inserted block is 
  1351.         translated to the CADL target file.  The placement, scaling, 
  1352.         and rotation are preserved and applied to the data as the 
  1353.         block is inserted.  As each block is read, the block 
  1354.         description and accompanying entity data are evaluated, and 
  1355.         then immediately written out to a temporary file.  Any non-
  1356.         standard DXF block or entity description codes are noted via 
  1357.         error messages.
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.                                                                   24
  1364.  
  1365.            As a block is inserted, the temporary block file is read, 
  1366.         translated, and closed.  ALCADMY does handle nested blocks 
  1367.         with a maximum nesting depth of 40 blocks.  The nesting 
  1368.         limit is ALCADMY's limitation.  When this nesting limit is 
  1369.         reached, ALCADMY will not insert the defined block at the 
  1370.         41st nesting depth.  This limitation will result in the loss 
  1371.         of any data that would have been inserted beyond a depth of 
  1372.         40.  However, a nesting depth of 10 is rare, and this 
  1373.         limitation should present no problem to most DXF files.
  1374.            In accordance with normal block creations, a block may 
  1375.         insert only a pre-existing block. Therefore, a block may not 
  1376.         contain a recursive insert, nor can it insert a block that 
  1377.         may cause a recursion.  If recursion does result, ALCADMY 
  1378.         will be placed into the defined recursive loop that will end 
  1379.         when ALCADMY reaches its maximum nesting depth, severs the 
  1380.         loop, and generates an error message.  If this occurs, the 
  1381.         translation results are unpredictable and the target file 
  1382.         should be considered unreliable.
  1383.            As part of each block being defined, a unique Block name 
  1384.         is supplied.  ALCADMY uses this Block name as the name of the 
  1385.         temporary file it creates to store the block's data.  In 
  1386.         accordance with standard DOS file naming conventions of up to 
  1387.         8 characters per filename, the user should likewise use a 
  1388.         maximum of 8 characters per block name to insure filename 
  1389.         uniqueness.  If a block name exceeds 8 characters, ALCADMY 
  1390.         uses an internal hashing sequence, based on the name 
  1391.         supplied, to create a filename.  While this sequence has 
  1392.         shown itself to be highly effective, it cannot guarantee 
  1393.         uniqueness.  If 2 or more Block names hash out to the same 
  1394.         character sequence, an error message will be generated 
  1395.         alerting the user to the situation.  Details on this message 
  1396.         are given below in the Errors Section.
  1397.  
  1398.         Entity Section
  1399.  
  1400.            As defined in AutoCAD Release 9, permissible definitions 
  1401.         in the Entity Section are as follows:
  1402.  
  1403.           (D) 3DFACE          (D) DIMENSION        * (D) SHAPE
  1404.           (D) 3DLINE          (D) INSERT             (D) SOLID
  1405.           (D) ARC             (D) LINE               (D) TEXT
  1406.         * (S) ATTDEF          (D) POINT              (D) TRACE
  1407.           (S) ATTRIB          (D) POLYLINE           (D) VERTEX
  1408.           (D) CIRCLE          (S) SEQEND        
  1409.  
  1410.          *  - Does not effect the CADL file.
  1411.         (D) - Data Entity
  1412.         (S) - Support Entity
  1413.  
  1414.            The entities described below are not directly 
  1415.         translatable into CADL data primitives.  Therefore, each is 
  1416.         described as to how ALCADMY represents the entity in the 
  1417.         target file.
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.                                                                   25
  1424.  
  1425.            3Dface - ALCADMY will translate the 3Dface boundary 
  1426.                     coordinates into either a polygon (filled or 
  1427.                     unfilled, as defined by the fillmode), or into 
  1428.                     individual lines.  The translation method used 
  1429.                     is discussed in the Features Section.
  1430.  
  1431.            Insert - Data entities in the block specified are 
  1432.                     individually placed, scaled, and rotated as 
  1433.                     defined by the Insert definition.
  1434.  
  1435.                     NOTE: Arcs or circles input through an Insert 
  1436.                           command with unequal X and Y scaling 
  1437.                           factors will lose their original 
  1438.                           elliptical shapes.
  1439.  
  1440.                     NOTE: All of the individual block entities may 
  1441.                           be placed into a CADL Group.  This user 
  1442.                           option is discussed in the Features 
  1443.                           section.
  1444.  
  1445.            Polyline - A polyline is dissected into its individual 
  1446.                       line and/or arc segments for inclusion in the 
  1447.                       CADL target file.
  1448.  
  1449.                       NOTE: All of the individual polyline segments 
  1450.                             may be placed into a CADL group.  This 
  1451.                             user option is discussed in the Features 
  1452.                             section.
  1453.  
  1454.                       NOTE: CADKEY 3.0 users - A CADL polyline can 
  1455.                             contain only line segments.  Therefore, 
  1456.                             since a DXF polyline may contain arc 
  1457.                             information, it cannot be directly 
  1458.                             translated into a CADL polyline.
  1459.  
  1460.                       NOTE: A 3D Mesh is defined as a polyline with a 
  1461.                             series of node points in rows and 
  1462.                             columns.  These node points are the 
  1463.                             connected together with line segments.
  1464.                             CADKEY 3.0 users - The 3D Mesh is 
  1465.                             translated into polygons with each of the 
  1466.                             node points defining a corner of the 
  1467.                             polygon.  If there are less that 3 points 
  1468.                             that define the area, line segments are 
  1469.                             used.
  1470.  
  1471.            Solid - ALCADMY will translate the solid boundary 
  1472.                    coordinates into either a polygon (filled or 
  1473.                    unfilled, as defined by the fillmode), or into 
  1474.                    individual lines.  The translation method used is 
  1475.                    discussed in the Features Section.
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.                                                                   26
  1482.  
  1483.            Trace - ALCADMY will translate the trace boundary 
  1484.                    coordinates into either a polygon (filled or 
  1485.                    unfilled, as defined by the fillmode), or into 
  1486.                    individual lines.  The translation method used is 
  1487.                    discussed in the Features Section.
  1488.  
  1489.            Vertex - Each vertex entity defines one node point and 
  1490.                     the shape of a polyline segment.  ALCADMY 
  1491.                     evaluates each vertex and connects them into the 
  1492.                     continuous shape originally drawn by the 
  1493.                     polyline.
  1494.  
  1495.         Features
  1496.  
  1497.            After the source and target files have been identified, 
  1498.         several control questions must be answered for ALCADMY.  
  1499.         These control questions help tailor the CADL file to the 
  1500.         user's needs.  With each question there is a default answer.  
  1501.         If anything other than one of the displayed choices is 
  1502.         given, the default answer is used.  Below is a listing of 
  1503.         each control question and how it affects the CADL target 
  1504.         file.
  1505.  
  1506.         NOTE:  At any time when answering the first four control 
  1507.                features, the user may elect to abort the translation 
  1508.                process by pressing the ESCAPE key (ESC).  In doing 
  1509.                so, ALCADMY will immediately terminate the present 
  1510.                translation process and recall the main menu described 
  1511.                above.
  1512.  
  1513.         -- For which CADKEY CADL version is this file being written?
  1514.             A - Version 2.0x
  1515.             B - Version 2.1x
  1516.             C - Version 3.01
  1517.             D - Version 3.02 or later
  1518.            Enter your choice (A-D): [D]
  1519.  
  1520.            Differences in the selections:
  1521.              A:   These early CADL versions have several commands 
  1522.                that have since been replaced.  While later versions 
  1523.                may understand the older commands, these versions 
  1524.                will not accept the new commands.  Selection of this 
  1525.                version will use the old CADL commands where 
  1526.                appropriate.
  1527.                   Additionally, these versions also cannot employ 
  1528.                the GENDIM and POLYGON entities.  Therefore, the DXF 
  1529.                dimensions and planar entities are written out as 
  1530.                individual lines and text as appropriate, but they 
  1531.                cannot be grouped.  The next feature discussed will 
  1532.                not be offered with this selection.
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.                                                                   27
  1539.  
  1540.              B:   These CADL versions cannot employ the GENDIM and 
  1541.                POLYGON entities.  Therefore, the DXF dimensions and 
  1542.                planar entities are written out as individual lines 
  1543.                and text as appropriate.  However, the opportunity 
  1544.                does exist to keep these structures bound via the 
  1545.                CADL GROUP command entity. 
  1546.              C or D:   These CADL versions are capable of accepting 
  1547.                dimensioning information as a separate entity.  If 
  1548.                the source DXF file does contain dimensions 
  1549.                (DIMENSION), the information will be written as a 
  1550.                CADL GENDIM.
  1551.                   Any DXF planar entity (3DFACE, SOLID, and TRACE), 
  1552.                will be written out as a CADL POLYGON.  The solid and 
  1553.                trace entities will be filled based upon the 
  1554.                $FILLMODE command in the Header Section (default is 
  1555.                ON).  The fill color is white.
  1556.  
  1557.                NOTE: A DXF Dimension block with compound text 
  1558.                      involved may cause placement problems when 
  1559.                      translated into a CADL Gendim format.  To 
  1560.                      correct this placement problem, the user may 
  1561.                      wish to place complex dimension data in a 
  1562.                      separate DXF file and translate it into a CADL 
  1563.                      version 2.1x format.
  1564.  
  1565.                NOTE: There is a differentiation between version 3.01 
  1566.                      and later versions due to a correction in the
  1567.                      interpretation of the text font definition.
  1568.  
  1569.         -- Group the individual blocks and polylines (Y/N)? [Y]
  1570.  
  1571.               In a DXF system, each block and polyline is normally 
  1572.            considered a single entity until such time as the user 
  1573.            breaks it apart.  Since the CADL format does not have a 
  1574.            data primitive equal to either of those entities, the 
  1575.            singularity of each is usually lost.  ALCADMY offers a 
  1576.            method to retain the connectivity.  Through the use of 
  1577.            the Group command, the individual data pieces that 
  1578.            represent the original block or polyline are reassociated 
  1579.            in the CADL file.  This group assignment has no other 
  1580.            effect on the data piece other than to assign it to its 
  1581.            unique group.  Check your CAD reference manual for the 
  1582.            ability of your system to accept group definitions.
  1583.               If a 2.0x CADL file is being written, or if the user 
  1584.            decides not to group the DXF data, the group definition 
  1585.            will still be written, but will be placed into a CADL 
  1586.            remark.  This remark has no effect on the execution of 
  1587.            the target file.
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.                                                                   28
  1594.  
  1595.            NOTE: The CADL definition allows only 128 groups.  Once 
  1596.                  that number is exceeded, any additional polylines, 
  1597.                  dimensions, or blocks that are inserted will be 
  1598.                  input as individual data pieces with no grouping.  
  1599.                  The group definitions for blocks will continue to 
  1600.                  be written, but will be placed in a CADL remark as 
  1601.                  discussed above.
  1602.  
  1603.            NOTE: If a version 3.0x target file is not being made, up 
  1604.                  to 255 dimensions will be placed into a single 
  1605.                  group with each dimension being defined on an 
  1606.                  independent subgroup.  This reduces the number of 
  1607.                  groups required on a heavily dimensioned design.
  1608.                     Please note however, some CADKEY versions 
  1609.                  contain a bug that does not recognize the 
  1610.                  subgrouping definition in a CADL file and places 
  1611.                  all subgroups in subgroup 1.  If this condition 
  1612.                  exists, the entire group may need to be broken down 
  1613.                  into the individual components for any editing.
  1614.  
  1615.         -- Preserve the thickness of the entities (Y/N)? [Y]
  1616.  
  1617.               This feature permits the user to preserve a DXF 
  1618.            entity's assigned thickness. Since CADL entities have no 
  1619.            thickness value, ALCADMY will create the initial entity at 
  1620.            the appropriate location, create a duplicate entity at the 
  1621.            correct thickness height, and then create CADL lines 
  1622.            connecting the end points of the original to the duplicate 
  1623.            entities.  The effect of this operation is similar to 
  1624.            using the CADKEY X-FORM command with the JOIN option with 
  1625.            a Z-plane displacement of an entity.
  1626.  
  1627.            NOTE: In the case of arcs and circles, lines will also be 
  1628.                  drawn at specified intervals around the curved path 
  1629.                  to give an appearance similar to a DXF arc or circle 
  1630.                  with a thickness.
  1631.  
  1632.            NOTE: Some DXF entities may have a thickness assigned but 
  1633.                  it is not displayed or plotted (e.g. 3DLINE, 
  1634.                  3DFACE).  ALCADMY will ignore these thicknesses as 
  1635.                  they would be in an AutoCAD display.
  1636.  
  1637.         -- Add insert and polyline remarks to the file (Y/N)? [N]
  1638.  
  1639.               This feature offers the user the option of having the 
  1640.            beginning and ending of every INSERT and POLYLINE marked 
  1641.            with a CADL REMark.  In the case of an INSERT, the depth 
  1642.            of the INSERT is also included in the REMark.  This 
  1643.            feature will aid the user in a entity by entity comparison 
  1644.            between the source and target files. 
  1645.  
  1646.            NOTE: Heavy use of BLOCKs and nested BLOCKs can add 
  1647.                  significantly to the size of the target file.
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.                                                                   29
  1654.  
  1655.         -- Select the font for all text data:
  1656.               1 - Box
  1657.               2 - Slant
  1658.               3 - Bold
  1659.               4 - S Bold
  1660.               5 - Bold2
  1661.               6 - S Bold2
  1662.            Enter your choice (1-6): [1]
  1663.  
  1664.               When ALCADMY encounters the first DXF text entity 
  1665.            either in block data or as an independent entity, this 
  1666.            control feature will be generated.  Since DXF fonts are 
  1667.            dependent on external definition files, there are no CADL 
  1668.            equivalencies to the unlimited number of DXF fonts that 
  1669.            may be used.  Therefore, the user may choose the CADL 
  1670.            font for all of the text definitions.  Check your CAD 
  1671.            reference manual for your system's definition on font 
  1672.            assignments.
  1673.  
  1674.         Entity Attributes
  1675.  
  1676.            If a block contains entities assigned to the base layer 
  1677.         "0", these entities attributes "float" up through the nested 
  1678.         block insertions until a layer other than "0" is used.  The 
  1679.         attributes are then "fixed" to that of the non-"0" layer.  
  1680.         The attributes that are included in the entity definition do 
  1681.         not float.  Only if layer "0" is used throughout the nesting 
  1682.         will its attributes be used for the entity.
  1683.  
  1684.           Layers
  1685.              ALCADMY preserves the layer assignments made to the 
  1686.           data entities.  As each of the DXF layers is declared, it 
  1687.           is assigned a CADL level number.  During subsequent entity 
  1688.           definitions, the layer assignment is made by reference to 
  1689.           the layer name.  ALCADMY associates the layer name to 
  1690.           the attached level number for level assignment in the 
  1691.           target file.  ALCADMY maintains the "floating" layer 
  1692.           assignments discussed above.
  1693.  
  1694.           If the source file should define more than 256 layers, 
  1695.           error messages will be generated as to the fact, and any 
  1696.           entities residing on those layers will be placed on level 
  1697.           1. This limitation is imposed by the CADL definition for 
  1698.           the maximum number of allowable levels.
  1699.  
  1700.           NOTE: The terms "level" and "layer" are synonymous and 
  1701.                 refer to the same drawing overlays that can be 
  1702.                 displayed or hidden.  In keeping with CADL and DXF 
  1703.                 definitions, the term "level" will be used when 
  1704.                 referring to CADL structuring, and "layer" for DXF 
  1705.                 structuring.
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.                                                                   30
  1712.  
  1713.           Colors
  1714.              ALCADMY preserves the color assignments made to all 
  1715.           data entities.  The colors are mapped from those used in 
  1716.           AutoCAD Release 9 into those used in CADKEY (v3.12).  The 
  1717.           color of an entity may be assigned as part of its 
  1718.           definition.  If it is not assigned as part of the entity 
  1719.           definition, it  uses the color of the layer upon which it 
  1720.           resides.  ALCADMY maintains this assignment priority 
  1721.           along with the "floating" assignments discussed above.
  1722.  
  1723.           Linetypes
  1724.              ALCADMY preserves the linetype assignments as 
  1725.           discussed in the Table Section above.  The linetype of an 
  1726.           entity may be assigned as part of its definition.  If it 
  1727.           is not assigned as part of the entity definition, it uses 
  1728.           the linetype of the layer upon which it resides. ALCADMY 
  1729.           maintains this assignment priority along with the 
  1730.           "floating" assignments discussed above.
  1731.  
  1732.         Temporary Files
  1733.  
  1734.            ALCADMY generates a temporary file for each of the block 
  1735.         definitions.  There is no ALCADMY limit as to the size of 
  1736.         each block in the source file.  However,  the user should 
  1737.         insure no operating system limitation can be exceeded by 
  1738.         writing these files to the default disk.  Reaching any 
  1739.         limitation may cause abnormal program termination or an 
  1740.         incomplete target file.
  1741.  
  1742.         System Limitations
  1743.  
  1744.            To insure a complete translation, the user should work 
  1745.         within the following ALCADMY DXF to CADL limitations.
  1746.         1. The linetype names defined and used should conform to 
  1747.            those referenced in the Linetype Table above.
  1748.         2. No more than 256 layers should be defined and used.
  1749.         3. Blocks may not nest to a depth greater than 40.
  1750.         Any references exceeding these limitation will cause errors 
  1751.         to appear as detailed below.
  1752.  
  1753.         Messages
  1754.  
  1755.            The following is a listing of the possible error messages 
  1756.         that may be generated within ALCADMY in the course of 
  1757.         translating a DXF file.  The error-checking process has been 
  1758.         installed at the points in the translation process causing 
  1759.         the more common problems.  Not all errors can be predicted 
  1760.         and corrected from within the program.  Therefore, should a 
  1761.         translation not terminate normally, or should the drawing of 
  1762.         the CADL file not resemble the original that produced the 
  1763.         DXF file, the user should check the source file for any 
  1764.         unusual input.
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.                                                                   31
  1771.  
  1772.            When displaying errors/problems to the screen, ALCADMY 
  1773.         will also use the colors red or green text for the message.  
  1774.         The red messages may be considered errors and the green 
  1775.         messages as warnings.  Red messages indicate a situation 
  1776.         which may seriously affect the translation validity of the 
  1777.         target file being written.  Green messages indicate the 
  1778.         detection of a situation which should pose no problem to the 
  1779.         translation process.  These green messages may be generated 
  1780.         by the omission of some data, ALCADMY being unable to 
  1781.         understand the data it is being passed, or a situation which 
  1782.         ALCADMY can correct for internally.
  1783.  
  1784.         1. Block nesting depth exceeds 40 (block_name)
  1785.  
  1786.               Inserts of block data are often nested, meaning one 
  1787.            data block will insert another that contains additional 
  1788.            data.  The DXF definition does not place a limit on the 
  1789.            depth of these nestings.  ALCADMY does however, impose 
  1790.            a maximum nesting limitation of 40 deep.  If the above 
  1791.            message is generated, an attempt for deeper nesting has 
  1792.            been made.  The "block_name" included in the error 
  1793.            message identifies the block originating the nesting.
  1794.            The result on the translation is that the inserts beyond 
  1795.            the depth limitation of 40 are disregarded and will be 
  1796.            missing from the target file.  Possible causes are:
  1797.            a. The blocks do nest beyond the 40 depth limit.
  1798.            b. The blocks cause a recursive nesting, putting itself 
  1799.               into an infinite loop that is severed by ALCADMY 
  1800.               when reaching a depth of 40.
  1801.  
  1802.            NOTE: A block may insert only a pre-existing block.  
  1803.                  Therefore, a block may not attempt to insert 
  1804.                  itself, nor can it insert another block that will 
  1805.                  insert the original block.  The result of any such 
  1806.                  recursive inserts is a continually deepening nest 
  1807.                  of insertions that will be severed at the nesting 
  1808.                  depth of 40.  The result of a recursive insert is 
  1809.                  normally a large, confusing target file.
  1810.  
  1811.            SOLUTION: Track block nestings to insure the depth does 
  1812.                      not exceed 40.  Those that do should be broken 
  1813.                      into smaller inserts to reduce the block 
  1814.                      nesting number.  Check the block inserts for 
  1815.                      any recursion.
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.                                                                   32
  1822.  
  1823.         2. Duplicate block file (block name).
  1824.  
  1825.               Each Block must be defined with a unique name.  ALCADMY 
  1826.            uses this name to create a temporary file to store the 
  1827.            block data.  If the block name exceeds 8 characters, 
  1828.            ALCADMY uses an internal hashing sequence to create the 
  1829.            file name to be used for the block.  While this sequence 
  1830.            has shown to be highly effective, it cannot guarantee 
  1831.            uniqueness to every block name combination.  When ALCADMY 
  1832.            encounters a new block and determines the filename to be 
  1833.            used, it attempts to create the temporary block file.  If 
  1834.            a file with this name already exists, the above message is 
  1835.            generated, supplying the name of the block causing the 
  1836.            duplicate.  Possible causes are:
  1837.            a. The target file has blocks with the same name.
  1838.            b. The hashing sequence used by ALCADMY has created the 
  1839.               same name for two blocks with more than 8 characters.
  1840.  
  1841.            SOLUTION: Insure all blocks are uniquely named and alter 
  1842.                      the name of the block(s) mentioned in the 
  1843.                      message.
  1844.  
  1845.            NOTE: If a block name is changed, all INSERTs referencing 
  1846.                  that block must also reflect the change.
  1847.  
  1848.         3. Group code [code2] read, [code1] expected
  1849.  
  1850.               The DXF format definition is very specific as to the 
  1851.            ordering of certain pieces of file data.  Therefore, as 
  1852.            these format requirements are encountered, ALCADMY 
  1853.            expects the source file to follow the definition.  If the 
  1854.            file does not contain the code expected, the above 
  1855.            message is generated.  The message supplies the expected 
  1856.            value as [code1] and the actual value which has been read 
  1857.            in the file as [code2].  Possible causes are:
  1858.            a. Source file is only a partial DXF file and is possibly 
  1859.               missing sections.
  1860.            b. Group codes used are different than those specified by 
  1861.               the DXF definition.
  1862.  
  1863.            SOLUTION: Check the source file for a non-DXF standard 
  1864.                      group code placement.  This error normally 
  1865.                      occurs at the beginning or ending of the DXF 
  1866.                      sections.
  1867.         4. Insert with undefined block name (block_name)
  1868.  
  1869.               Every insert entity must specify (by name) the block 
  1870.            that is to be placed into the drawing.  When ALCADMY 
  1871.            encounters an insert, it attempts to locate its temporary 
  1872.            file that defines the specified block.  The block_name 
  1873.            given in parentheses is the name specified by the insert 
  1874.            entity.  The above message is generated when the 
  1875.            temporary file cannot be found.  Possible causes are:
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.                                                                   33
  1882.  
  1883.            a. The block specified does not exist in the source file.
  1884.            b. The block file could not be written to the default 
  1885.               drive.
  1886.  
  1887.            SOLUTION: Compare the block names in the insert 
  1888.                      definitions with those used in the Block Table.  
  1889.                      Check the condition of the default drive.
  1890.  
  1891.         5. Invalid entity (entity_type) in block [block_name]
  1892.  
  1893.               The data entities contained in all blocks are declared 
  1894.            in the same format as those of the date entities in the 
  1895.            Entity Section.  As each entity is defined, the first 
  1896.            parameter states the entity type being defined.  ALCADMY 
  1897.            1 evaluates this declaration and compares it against the 
  1898.            list of legal entity types (See Entity Section above).  
  1899.            If no match is found, the above message is generated.  
  1900.            The "entity_type" supplies the parameter read, and 
  1901.            "block_name" supplies the name of the block in which the 
  1902.            unknown parameter was found.  Possible causes are:
  1903.            a. The entity defined is spelled incorrectly.
  1904.            b. The entity defined is unknown to ALCADMY.
  1905.  
  1906.            SOLUTION: Check the block indicated for the entity 
  1907.                      identified and correct the parameter to a legal 
  1908.                      DXF entity name.
  1909.  
  1910.            NOTE: An entity that cannot be identified is not included 
  1911.                  in the target file.  This error should not effect 
  1912.                  any other entity.
  1913.  
  1914.         6. Invalid entity (entity_type) in Entity Section
  1915.  
  1916.               As each entity is defined, the first parameter states 
  1917.            the entity type being defined.  ALCADMY evaluates this 
  1918.            declaration and compares it against the list of legal 
  1919.            entity types (See Entity Section above).  If no match is 
  1920.            found, the above message is generated.  The "entity_type" 
  1921.            supplies the parameter value read.  Possible causes are:
  1922.            a. The entity defined is spelled incorrectly.
  1923.            b. The entity defined is unknown to ALCADMY.
  1924.  
  1925.            SOLUTION: Check the Entity Section for the entity 
  1926.                      identified and correct the parameter to a legal 
  1927.                      DXF entity name.
  1928.  
  1929.            NOTE: An entity that cannot be identified is not included 
  1930.                  in the target file.  This error should not effect 
  1931.                  any other entity.
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.                                                                   34
  1938.  
  1939.         7. Invalid HEADER code read (code)
  1940.  
  1941.               The file commands in the Header Section are read and 
  1942.            evaluated by ALCADMY.  Any non-standard parameter codes 
  1943.            will generate the above message with the unknown code 
  1944.            value in parentheses.  The commands themselves should 
  1945.            have no effect on the translation process since only the 
  1946.            command to set the active layer has a CADL equivalency.  
  1947.            This command is translated, but does not effect any of 
  1948.            the entities during the translation process. Possible 
  1949.            causes are:
  1950.            a. Illegal parameter code generated in source file.
  1951.            b. Preceding parameter was incorrectly declared and may 
  1952.               have used two lines. This may place ALCADMY out of 
  1953.               sequence with the source file.
  1954.  
  1955.            SOLUTION: Check the Header Section for the non-standard 
  1956.                      code and correct as necessary.  Also check the 
  1957.                      preceding parameters.
  1958.  
  1959.         8. Invalid LAYER code read (code)
  1960.  
  1961.               Every parameter in a layer definition is preceded by 
  1962.            an indexing code to identify the significance of the 
  1963.            parameter value.  These codes are specific and well-
  1964.            defined.  When a non-standard code is read, the above 
  1965.            message is generated with the unknown code value in 
  1966.            parentheses.  This error will have unknown effects on the 
  1967.            entities that will reside on it.  Possible causes are:
  1968.            a. Illegal parameter code generated in source file.
  1969.            b. Preceding parameter was incorrectly declared and may 
  1970.               have used two lines. This may place ALCADMY out of 
  1971.               sequence with the source file.
  1972.  
  1973.            SOLUTION: Check the layer definitions for the non-
  1974.                      standard code and correct as necessary.  Also 
  1975.                      check the preceding parameters.
  1976.  
  1977.         9. Invalid LINETYPE code read (code)
  1978.  
  1979.               The linetype definitions are read and evaluated by 
  1980.            ALCADMY.  Any non-standard parameter codes will 
  1981.            generate the above message with the unknown code value in 
  1982.            parentheses.  The definitions themselves should have no 
  1983.            effect on the translation process, since only the 
  1984.            linetype name has any importance to ALCADMY.  Reference 
  1985.            the Linetype Table above for the list of usable linetype 
  1986.            names.  Possible causes are:
  1987.            a. Illegal parameter code generated in source file.
  1988.            b. Preceding parameter was incorrectly declared and may 
  1989.               have used two lines. This may place ALCADMY out of 
  1990.               sequence with the source file.
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.                                                                   35
  1997.  
  1998.            SOLUTION: Check the linetype definitions for the non-
  1999.                      standard code and correct as necessary.  Also 
  2000.                      check the preceding parameters.
  2001.  
  2002.  
  2003.         10. Invalid STYLE code read (code)
  2004.  
  2005.               The style definitions are read and evaluated by 
  2006.            ALCADMY.  Any non-standard parameter codes will 
  2007.            generate the above message with the unknown code value in 
  2008.            parentheses.  The definitions themselves should have no 
  2009.            effect on the translation process.  ALCADMY does not 
  2010.            use any of the DXF fonts for the text data. Possible 
  2011.            causes are:
  2012.            a. Illegal parameter code generated in source file.
  2013.            b. The preceding parameter was incorrectly declared and 
  2014.               may  have used two lines.  This declaration may place 
  2015.               ALCADMY out of sequence with the source file.
  2016.  
  2017.            SOLUTION: Check the style definitions for the non-
  2018.                      standard code and correct as necessary.  Also 
  2019.                      check the preceding parameters.
  2020.  
  2021.         11. Invalid VIEW code read (code)
  2022.  
  2023.               The view definitions are read and evaluated by 
  2024.            ALCADMY.  Any non-standard parameter codes will 
  2025.            generate the above message with the unknown code value in 
  2026.            parentheses.  The definitions themselves should have no 
  2027.            effect on the translation process.  ALCADMY does not 
  2028.            use any of the preset DXF views for entity definition.  
  2029.            Possible causes are:
  2030.            a. Illegal parameter code generated in source file.
  2031.            b. Preceding parameter was incorrectly declared and may 
  2032.               have used two lines. This may place ALCADMY out of 
  2033.               sequence with the source file.
  2034.  
  2035.            SOLUTION: Check the view definitions for the non-standard 
  2036.                      code and correct as necessary.  Also check the 
  2037.                      preceding parameters.
  2038.  
  2039.         12. Layer definitions exceed 256 (layer_name)
  2040.  
  2041.               The CADL definition specifies a maximum of 256 levels.  
  2042.            Therefore, ALCADMY will map only the first 256 layer 
  2043.            definitions into the target file.  Layer definitions 
  2044.            beyond the 256 limit will generate the above message.  
  2045.            The name of the layer exceeding the limit will be shown 
  2046.            in parentheses.  Any entities that are defined on the 
  2047.            named layer will be reassigned to level 1 in the target 
  2048.            file.  Possible cause is:
  2049.            a. More than 256 layers defined.
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.                                                                   36
  2056.  
  2057.            SOLUTION: Reassign those entities on the layers beyond 
  2058.                      the 256 limit to a lower numbered layer.  Any 
  2059.                      layer is not being used to hold an entity 
  2060.                      should be deleted from the DXF file.
  2061.  
  2062.         13. Polyline and/or attribute nested
  2063.  
  2064.               The polyline and attribute are complex entities that 
  2065.            use the SEQEND entity as an end-of-entity marker.  If any 
  2066.            entity definition is started while a complex entity 
  2067.            definition is still active, the above message is 
  2068.            generated.  A complex entity is considered active until a 
  2069.            SEQEND is encountered.  The effect of the error cannot be 
  2070.            determined due to the different entity combinations that 
  2071.            may cause the problem.  Possible causes are:
  2072.            a. A complex entity was not terminated by a SEQEND.
  2073.            b. The entities are nested illegally.
  2074.  
  2075.            SOLUTION: Check the complex entities for a SEQEND to end 
  2076.                      the entity. Insure no nesting exists.
  2077.  
  2078.            NOTE: ALCADMY does not translate the Attrib entity 
  2079.                  which may or may not be included as part of another 
  2080.                  complex data type.  If an Attrib entity is used in 
  2081.                  the definition of a polyline, this error will be 
  2082.                  generated even though no true error exists.
  2083.  
  2084.         14. Seqend without a beginning entity
  2085.  
  2086.               The seqend entity is used to mark the end of a complex 
  2087.            entity definition such as the polyline or attribute 
  2088.            entities.  If ALCADMY encounters a seqend that does not 
  2089.            terminate any currently active complex entity definition, 
  2090.            the above message is generated.  The error should have no 
  2091.            effect on the translation process if the seqend is an 
  2092.            isolated entity.  Possible causes are:
  2093.            a. A complex entity was incorrectly generated.
  2094.            b. An isolated seqend was included in the source file.
  2095.  
  2096.            SOLUTION: Check the complex entities for a seqend to end 
  2097.                      the entity definition.  Check for any isolated 
  2098.                      seqend entities.
  2099.  
  2100.         15. Unable to open dimension file (block_name)
  2101.  
  2102.                The dimension entity references a defined block of 
  2103.             data defined in the Block Section of the source file.  
  2104.             The block of data has a name that is used as the 
  2105.             temporary file name by ALCADMY.  If ALCADMY cannot 
  2106.             find the temporary file, the above message is generated 
  2107.             with the name of the requested dimension block in 
  2108.             parentheses.  The effect of this error is that the 
  2109.             dimension will not be included in the target file.  
  2110.             Possible causes are:
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.                                                                   37
  2117.  
  2118.            a. The named dimension block was never declared in the 
  2119.               Block Section, or it is misspelled.
  2120.            b. The named block was declared, but its name contained 
  2121.               characters not allowed by normal DOS file naming 
  2122.               conventions.
  2123.            c. The temporary block file was never written due to a 
  2124.               system limitation.
  2125.  
  2126.            SOLUTION: Check the block names in the Block Section and 
  2127.                      the insert entities for any inconsistencies or 
  2128.                      DOS conflicts. Check the access and available 
  2129.                      space on the default drive.
  2130.  
  2131.            NOTE: Dimension block names are normally preceded by an 
  2132.                  asterisk (*) to distinguish them as system-created 
  2133.                  blocks as opposed to user-created blocks.  The 
  2134.                  asterisk will be stripped by ALCADMY prior to 
  2135.                  creating or reading a temporary block file.
  2136.  
  2137.         16. Unable to open block file (block_name)
  2138.  
  2139.               The insert entity takes a predefined block of data and 
  2140.            scales, rotates, and places it at a desired point.  The 
  2141.            block of data has a name and is stored in a temporary  
  2142.            file on the default disk.  If ALCADMY cannot find the 
  2143.            specified temporary file, the above message is generated 
  2144.            with the name of the requested block in parentheses.  The 
  2145.            effect of this error is that the block will not be 
  2146.            included in the target file.  Possible causes are:
  2147.            a. The named block was never declared in the Block 
  2148.               Section, or it is misspelled.
  2149.            b. The named block was declared, but its name contained 
  2150.               characters not allowed by normal DOS file naming 
  2151.               conventions.
  2152.            c. The temporary block file was never written due to a 
  2153.               system limitation.
  2154.  
  2155.            SOLUTION: Check the block names in the Block Section and 
  2156.                      the insert entities for any inconsistencies or 
  2157.                      DOS conflicts. Check the access and available 
  2158.                      space on the default drive.
  2159.  
  2160.         17. Undefined layer referenced (layer_name)
  2161.  
  2162.               Every entity definition must include a layer 
  2163.            assignment.  If the definition defines the layer name as 
  2164.            one that was not declared in the Layer Table, the above 
  2165.            message is generated with the referenced layer in 
  2166.            parentheses.  If fewer than 256 layers have been defined, 
  2167.            this error will place the named layer in the list of 
  2168.            declared layer names and assign it a corresponding CADL 
  2169.            level number.  This may place entities on undesired 
  2170.            levels.  Possible causes are:
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.                                                                   38
  2177.  
  2178.            a. Layer referenced in entity definition is misspelled.
  2179.            b. Layer referenced in entity definition is correct, but 
  2180.               was not defined in the Layer Table.
  2181.            c. The layer was misspelled in the Layer Table.
  2182.  
  2183.            SOLUTION: Check both the Layer Table and the entity 
  2184.                      definitions for layer name inconsistencies.
  2185.  
  2186.         18. Unable to write block file (block_name)
  2187.  
  2188.               As blocks are declared in the Block Section, each is 
  2189.            written to the default drive as a temporary file.  If the 
  2190.            the file cannot be written, the above message is 
  2191.            generated with the name of the block in parentheses.  The 
  2192.            effect of this error is that any attempt to insert the 
  2193.            block will result in the file not being found, resulting 
  2194.            in the exclusion of the block from the target file.
  2195.            Reference error 16.  Possible causes are:
  2196.  
  2197.            a. Cannot access the default drive.
  2198.            b. Default drive is full.
  2199.  
  2200.            SOLUTION: Insure the default drive is accessible and 
  2201.                      there is sufficient space to contain the 
  2202.                      temporary files.
  2203.  
  2204.         19. [Parameter2] read, [parameter1] expected
  2205.  
  2206.               The DXF format has specific requirements as to the 
  2207.            sequence of sections and included tables.  ALCADMY 
  2208.            expects this sequence to be followed.  When a non-
  2209.            standard or an out-of-sequence parameter is read, the 
  2210.            above message is generated.  The message supplies the 
  2211.            expected and the parameters read for analysis.  The 
  2212.            effect of this error on the target file is unknown.  
  2213.            Possible causes are:
  2214.            a. Parameters not in standard DXF sequence.
  2215.            b. Non-standard parameter in source file.
  2216.  
  2217.            SOLUTION: Check the source file sequence against the DXF 
  2218.                      format definition and correct any errors.
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.                                                                   39
  2225.  
  2226.         ADDITIONAL USES
  2227.  
  2228.            ALCADMY provides a superior means of translating CAD 
  2229.         data between the DXF and CADL formats.  However, it may 
  2230.         also prove to be highly useful when staying in one of these 
  2231.         formats.  Two excellent examples are supplied below:
  2232.  
  2233.  
  2234.         1. Working in the CADL format
  2235.  
  2236.            There is often need to convert a drawing into strictly 
  2237.         line data (e.g. some analysis packages can work only with 
  2238.         lines).  ALCADMY offers a fast and simple solution to this 
  2239.         conversion problem.
  2240.            By translating the drawing's CADL file into a 3D version 
  2241.         2.5x DXF file, all of the arcs, circles, polygons, polylines 
  2242.         and splines will be approximated as line data.  ALCADMY 
  2243.         can then translate the new DXF file back into a version 2.1x 
  2244.         CADL file.  The result is a CADL file containing only lines.
  2245.  
  2246.         NOTE: This assumes no points or text data were in the 
  2247.               original file.
  2248.  
  2249.  
  2250.         2. Working in the DXF format
  2251.  
  2252.            Trying to edit a complex drawing composed primarily of 
  2253.         blocks can be a very time consuming, if not an impossible 
  2254.         task.  The individual entities that make up a block are not 
  2255.         directly editable, since there may be other instances of the 
  2256.         same block in the drawing.  A simple solution to this 
  2257.         problem is to use ALCADMY.
  2258.            By translating the drawing's DXF file into a CADL file, 
  2259.         each block insertion will have been reduced to the 
  2260.         individual block entities.  ALCADMY can then translate the 
  2261.         new CADL file back into another DXF file.  The result is a 
  2262.         DXF file containing only individual entities, each defining 
  2263.         its own layer, color, and linetype.
  2264.  
  2265.         NOTE: Any polylines in the original DXF file will be broken 
  2266.               down into the individual line and arc components.
  2267.  
  2268.  
  2269.  ______________________________________________________ 
  2270. |                                                      |       Mail to:
  2271. |  ALCADMY (v3.1) Registration  DATE:________________  | _____________________
  2272. |                                                      ||                     |
  2273. |    Name: __________________________________________  ||                     |
  2274. |                                                      || CADAMA Design Group |
  2275. |    Company: _______________________________________  ||                     |
  2276. |                                                      || 831 Turnberry Cv S. |
  2277. |    Address: _______________________________________  ||                     |
  2278. |                                                      || Niceville, Fl 32578 |
  2279. |    City: _______________ State/Province: __________  ||                     |
  2280. |                                                      || U.S.A.              |
  2281. |    Country: ___________________  Zip: _____________  ||_____________________|
  2282. |                                                      |
  2283. |  PC based CAD Systems and versions:                  |
  2284. |                                                      |
  2285. |    CADKEY (v____________)   AutoCAD (v____________)  |
  2286. |                                                      |
  2287. |    other: _________________________ (v____________)  |
  2288. |                                                      |
  2289. |    others: (Please list on back)                     |
  2290. |                                                      |
  2291. |  ALCADMY was received through (check one):           |
  2292. |                                                      |
  2293. |    CADKEY, Inc.                              ______  |
  2294. |                                                      |
  2295. |    CADAMA Design Group                       ______  |
  2296. |                                                      |
  2297. |    other (specify) ________________________________  |
  2298. |                                                      |
  2299. |    ________________________________________________  |
  2300. |______________________________________________________|
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.