DW Artifice, Inc.


Working with the dw.INI File


The dw.INI file contains settings for the import and export functions of DesignWorkshop for Windows. These settings allow the user to customize DesignWorkshop for specialized uses. The dw.INI file may be edited with any text-based editor and is located within the same folder as the DesignWorkshop application. An example of the default dw.INI preferences file is included at the bottom of this page.

There are three sections in the dw.INI file: ACAD, IMAGE, and FRAME. The ACAD section controls settings related to importing and exporting DXF and DWG files. The IMAGE section controls settings related to exporting pixel-based images. The FRAME section will be updated automatically, and should not be edited by hand.


[ACAD] Section

The ACAD section controls settings related to the importing and exporting of DXF and DWG files and consists of Version, Geometry, QD3DGeometry, ExportScaleFactor, and ImportScaleFactor.


Version=ACAD13

The Version setting controls the file version that will be written when exporting a DXF or DWG file. DesignWorkshop Professional for Windows will read files of any version regardless of this setting. This setting is only used when exporting files. Valid settings are: ACAD25 for AutoCAD 2.5, ACAD26 for AutoCAD 2.6, ACAD9 for Auto CAD 9, ACAD10 for AutoCAD 10, ACAD11 for AutoCAD 11, ACAD13 for AutoCAD 13, or ACAD14 for AutoCAD 14.


Geometry=FACES

FACES is currently the only valid value for this parameter.


QD3DGeometry=FACES

The QD3DGeometry setting controls the types of entities written to a DXF or DWG file when it is exported from a Lights and Textures window. This can be set to WIREFRAME, FACES, or POLYMESH.

Use the POLYMESH setting to export each geometric object as one object made from a triangulated mesh. Use FACES to export all objects . Many 3D software applications cannot properly import the POLYMESH type of geometry, so the default setting is FACES. However, if POLYMESH can be read by your target software, it often provides superior results.


ExportScaleFactor=12

The ExportScaleFactor setting controls the scaling factor of geometry when it is exported from DesignWorkshop. The internal units for DesignWorkshop are feet, so you if want the units of exported files (such as DWG or DXF) set to inches (common in file exchange within the US) then use the default ExportScaleFactor of 12. To export with objects scaled to feet, use ExportScaleFactor=1. For metric users, to export with objects scaled to meters, use ExportScaleFactor=3.048.

Here are some ExportScaleFactor settings for common units:

To export Feet, set   ExportScaleFactor=1
To export Inches, set   ExportScaleFactor=12

To export Meters, set   ExportScaleFactor=3.048
To export Millimeters, set   ExportScaleFactor=3048.0


ImportScaleFactor=0.08333333

The ImportScaleFactor setting controls the scaling factor of geometry when it is imported into DesignWorkshop. The internal units for DesignWorkshop are feet, so if the units of imported files are inches, the ImportScaleFactor should equal 0.08333333.

Here are some ImportScaleFactor settings for common units:

To import Feet, set   ImportScaleFactor=1
To import Inches, set   ImportScaleFactor=0.08333333

To import Meters, set   ImportScaleFactor=0.328084
To import Millimeters, set   ImportScaleFactor=0.000328084


[IMAGE] Section

The IMAGE section controls settings related to the exporting of pixel-based images from the Lights and Textures window in DesignWorkshop.

Resolution=RES24BIT

The Resolution setting controls the bit-depth of pixel images exported from the DesignWorkshop Lights and Textures window. This can be set to RES2BIT for black and white images, RES4BITVGA for 16 color VGA images, RES4BIT for 16 color images, RES8BIT for 256 color images, or RES24BIT for 16 million color images. RES24BIT is the default and suggested setting as this will produce the best-looking images.


TIFFCompression=LZW

The TIFFCompression setting controls the method of compression used when exporting TIFF files from the DesignWorkshop Lights and Textures window. This can be set to NONE, LZW, or PACKBITS. The default and suggested setting is LZW because it produces compact image files with a high level of quality.


JPEGScale=NORMAL

The JPEGScale setting controls the scale of JPEG images exported from the DesignWorkshop Lights and Textures window. This can bet set to NORMAL, HALF, QUARTER, or EIGHTH. JPEGs can be exported at full size (NORMAL), one half size (HALF), one fourth size (QUARTER), or one eighth size (EIGHTH). The default and suggested setting is NORMAL.


Quality=100

The Quality setting controls the quality of the image being exported from the DesignWorkshop Lights and Textures window. This can be set anywhere from 0 to 100. Lower quality settings produce better compression and smaller file sizes. The default setting for this is 100 to produce the highest-quality images possible.


Smooth=0

Valid settings are from 0 to 100. 0 equals no smoothing.


Dither=FALSE

Valid settings are TRUE and FALSE.


PGNInterlace=FALSE

Valid settings are TRUE and FALSE.


GIFCompression=TRUE

Valid settings are TRUE and FALSE.


[FRAME] Section

This section is updated automatically by the software and should not be edited by hand.


Example dw.INI Preferences File

The following is an example of the default dw.INI preferences file. If you ever find that your dw.INI file has been edited beyond recognition and/or is no longer functioning, please feel free to copy the contents of this example and paste them into your dw.INI file. Notice that there is no FRAME section included in this example as that section will be written automatically by the software.

# DesignWorkshop dw.INI Preferences File
# Version 1.8
# Created at 98/12/09, 12:31
#
# # # dw.INI Format Notes # # #
#
# # Notation # #
#
# This is a comment.
#
[ACAD]
# Valid values are:
# Version: ACAD25, ACAD26, ACAD9, ACAD10, ACAD11, ACAD13, ACAD14
# Geometry: WIREFRAME or FACES
# QD3DGeometry: WIREFRAME, FACES, or POLYMESH
Version=ACAD13
Geometry=FACES
QD3DGeometry=FACES
ExportScaleFactor=12
ImportScaleFactor=0.08333333
#
[IMAGE]
# Valid values are:
# Resolution: RES2BIT, RES4BITVGA, RES4BIT, RES8BIT, RES24BIT
# TIFFCompression: NONE, CCITT, LZW, PACKBITS
# JPEGScale: NORMAL, HALF, QUARTER, EIGHTH
# Quality: 0 to 100, 100=best quality
# Smooth: 0 to 100, 0=no smoothing
# Dither: TRUE or FALSE
# PGNInterlace: TRUE or FALSE
# GIFCompression: TRUE or FALSE
Resolution=RES24BIT
TIFFCompression=LZW
JPEGScale=NORMAL
Quality=100
Smooth=0
Dither=FALSE
PGNInterlace=FALSE
GIFCompression=TRUE
#
# Do not edit values in the FRAME section. It is controlled by the software.

Foyer | CAD Store | DesignWorkshop | Gallery | Great Buildings | Discussion | Support | Search | Index
© 1998-99 Artifice, Inc. - All Rights Reserved.   This document is provided for on-line viewing only.

http://www.artifice.com/support/notes/dw_ini.html