CabMasterPro User Guide
In This Topic
    ASCII Import and Export : Developer
    In This Topic
    ASCII Import/Export is a feature that allows you to save a drawing or library to a human-readable text file, as opposed the normal QID or QIL format. The word "ASCII" essentially says that the file is plain text instead of "binary" (computer language). The Import/Export feature has several uses, but isn't commonly needed by typical CabMasterPro designers. They include:

    Two utilities for working with ASCII exports are provided with CabMasterPro - the Tab Explorer and Export Editor. Both are designed specifically for CabMasterPro exports, and can be used to browse and search an exported library, or make multiple changes using filters.

    This is only available to Developer software users.

    Minimal and Full Export

    The two exporting options available from the File menu are Export to ASCII (Minimal). and Export to ASCII (Full)

    See below which discusses ASCII (text) or XML file format for export.

    The difference between the two is that a minimal export does not save the properties that are the same as the in-built default values. For example, if the offset of a section is zero, this line will not be exported because zero is the default. A full export will output every property in a drawing, regardless of its value. In practice, the main differences are:

    Importing and Merging

    The Import from ASCII and Merge from ASCII options are very similar: both load values from a text file and add them to the current drawing. If a property already exists, it is overwritten with the new value. The main difference is that Import clears the current properties first, so is effectively the same as starting a new drawing (or library) and then using Merge. Merge is the most common option, as it allows you to add a handful of property values to an existing drawing.

    OLE objects cannot be imported into a drawing or library. You will receive a warning when you try to export an OLE object, and you should delete the object then retry the export.

    Format of an Export File

    This section is provided for those that wish to manually edit export files. Exports can be opened in any text editor, but the easiest and recommended way to edit export files is by using the CabMasterPro Tab Explorer and Tab Explorer and Export Editor utilities. Refer to the documentation included with these utilities, and remember to check the CabMasterPro website for updated versions.

    The format of an export file is simple:

    An example export line looks like this:

    code     "F450"     "F"&width     Cabinet|12

    XML or ASCII

    ASCII File format

    The term "ASCII file" refers to a "text" file that is readable by the naked eye (it only contains the letters a-z, numbers, carriage returns, and punctuation marks). Therefore, any file that one can read with a common editor, like simple Windows Notepad program, is considered an ASCII file.

    XML File format

    Some benefits of using XML format files are that they:

    • are self-describing, making them easy to read, create, and extend. They are human readable, making it easy to understand how data is interpreted during bulk operations.
    • contain the data types of target columns. The XML encoding clearly describes the data types and data elements of the data file and also the mapping between data elements and table columns.
    • allow for loading of a field that contains a single large object (LOB) data type from a data file.
    • can be enhanced yet remain compatible with its earlier versions. Furthermore, the clarity of XML encoding facilitates the creation of multiple format files for a given data file. This is useful if you have to map all or some of the data fields to columns in different tables or views.
    • can be used to bulk import data into tables or non-partitioned views and to bulk export data.