Importing CAD Files - Concepts

AGi32 allows for the import of CAD drawing files in RealDWG (.dwg) and DXF formats from 2012 up to AutoCAD 2018.

Layer Selection

The following layer selection methods are available in both the Import CAD File - Layer Selection tab and the Import Mapping tab:

AGi32 provides four types of layer selection:

  1. Smart Select Layers - This is the default layer selection method. This method only selects layers that are defined as visible (On and Unfrozen).
  2. Individual Layer Selection - Layers may be selected individually through toggle selection. AGi32 support the Windows Shift and Ctrl methods for multiple layer selection.
  3. Select All Layers - This option selects all layers
  4. Clear Selected Layers - This option deselects all layers.

The Layers selection table only allows for layer selection, it does not provide property control (in other words you cannot switch a layer that is Off to On). These changes may only be applied in a CAD program prior to import in AGi32.

Layers that are selected for import are imported regardless of their properties. If layer selection methods other than Smart Select are employed, the AGi32 file may contain "empty" layers (layers that contain no imported data).

 

Imported Entity Types

AGi32 will import the following CAD-created entities:

Entity

Comments

Supported Drawing Entity Types:

  • Line
  • Arc
  • Polyline (LWPolyline, 3DPolyline)
  • Spline
  • Circle
  • Ellipse (Elliptical Arc)
  • Text
  • Mtext (unformatted)
  • Mline
  • Trace
  • Solid (2D)
  • Dimensions (most types)
  • Leader (most types)

Drawing entity types are never imported as objects. Some drawing entities, such as those with thickness assigned, may look like 3D objects in CAD (they may even shade in CAD), but they are still 2D and will not be converted to objects in AGi32.

 

Lines, Arcs, LWPolylines, Circles, Trace and 2D Solids with thickness assigned will be imported with defined thickness into AGi32. These are wireframe drawing entities and will not be converted into objects (surfaces) in AGi32.

 

Mtext formatting is not supported.

 

Curved 2D entities (e.g., arcs, circles, etc.) will be reconstructed in AGi32 using the specified curve increment. It is recommended that you change the Curve Increment for Import to 5 degrees for exterior background drawings, as these environments typically have shallow curvature lines.

 

Splines can be imported with Coarse, Medium and High levels of precision. Coarse is the default and s typically adequate for most projects.

Supported Object Types:

  • 3D Face
  • Polyface Mesh
  • Polygon Mesh
  • 3D Solids
  • Regions
  • Bodies
  • Surfaces (Extruded, Revolved, Lofted, Swept, Planar)
  • Meshes

Zero-area and degenerate (self-intersecting) surfaces are not imported.

All 3D Faces, Polyface and Polygon Meshes are imported.

Non-planar and self-intersecting faces are deconstructed into two planar triangles.

All 3D surfaces (planar and non-planar) imported into AGi32 are meshed into planar triangles or quadrilaterals during the import process.

Other Supported Entities (Misc)

  • Block References (Inserts)
  • External Reference (XREF)

XREFs are imported automatically if their references can be found. Otherwise, only the master drawing is imported.

Unsupported Entity Types:

  • Attribute
  • Attribute Definitions
  • Hatch
  • Hyperlink
  • MInsert Block
  • Point
  • Raster Image
  • Ray
  • Shape
  • Tolerance
  • XLine
  • Proxy
  • Paper Space (all entities in Paper Space)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Units and Scaling

Units

AGi32 will read the CAD units setting from the DWG or DXF file and will recognize either the “Engineering” or “Architectural” units settings (both are in inches). All other CAD units settings (decimal, scientific etc.) are assumed to be the same as the current AGi32 units (i.e., if the current AGi32 units are Feet, the imported CAD file is also assumed to be in Feet; if the current AGi32 units are Meters, the imported CAD file is also assumed to be in Meters). In this case it is up to the user to select the correct units, if this assumption is incorrect.

Scaling

An additional Scaling Factor may be applied upon import in addition to any unit conversion scaling. The scaling factor may entered as a decimal value (e.g., 100, 0.75, etc.) or as a fraction (1/2, 7/8, etc.). Math operations are not supported (i.e., +, -, *).

Drawing Extents

The Drawing Extents and drawing location are shown in this section (after Units and Scaling are applied). Drawing Extents displays the minimum extents (LLHC = Lower Left Hand Corner), maximum extents (URHC = Upper Right Hand Corner) and total extents in the selected AGi32 units.

 

Layers and Blocks

AGi32 imports drawing and object entities on a one-to-one basis. By default, each discreet entity becomes an individual AGi32 entity (either drawing entity or object). Entities are not grouped together into a single object unless specified by the user.

Grouping Drawing Entities

Drawing Entities may be grouped into a single layer in the Miscellaneous section of the Import CAD File dialog. The new Layer Name is specified by the user at this time. Before combining layers, it is important to consider how the CAD file will be used in the job file. Combining the entire file on one layer makes it easy to turn on or off or delete the CAD file; however, it may be desirable to maintain the layers and turn on or off or delete individual layers.

When drawing entities are grouped, all the drawing entities in all selected layers will be combined into one single layer. Drawing entities will retain their individual properties (e.g., color, text formatting, etc.).

Grouping Objects

3D entities may be grouped into a single object in the 3D Import Options section of the Import CAD File dialog. The new Object Name is specified by the user at this time. Each layer is made into an Object Component which may be assigned surface attributes as one definitive grouping. This method of grouping the layers together is only appropriate for entity import (where the imported file represents a single complex entity such as a plant, person, piece of furniture, etc.).

When a whole 3D environment is imported in AGi32, grouping 3D Entities into a single object is strongly discouraged. Complex environments grouped together can cause coplanar surfaces (such as end panels within exterior walls), which may cause calculation errors and abrupt program termination in AGi32.

When 3D entities are grouped, all the objects in all the selected layers will take on the drawing entity properties of the first layer and the surface attributes assigned by default, unless surface mapping is employed.

When not grouped together, 3D entity file comes in as 2841 objects. Each object is selectable individually.

When grouped together, 3D entity file comes in as one object and edited, copied, rotated, etc. as one object.

Blocks

CAD files support infinitely nested block hierarchies (blocks within blocks within blocks...). However, AGi32 supports only a single level of block 'hierarchy'. The user may select one of three options to convert the potentially infinite hierarchy to a single level:

Layer/Block Mapping in Project Manager

Project: Each imported CAD file is contained entirely in a new AGi32 project. The import project name consists of the DWG/DXF filename and a date/time stamp.

Drawing Entities: Each layer or block becomes a drawing entity within the Drawing Entity Type classification of the imported project. Color, LineWeight, and LineType are determined by their corresponding entity properties.

Objects: Objects are located within the Object Type classification of the imported project by Object Label. Object Labels are determined by layer or block and the number of objects on that layer or block. Format:   LayerName_1, LayerName_2, ... , LayerName_N,    BlockName_1, BlockName_2, ... , BlockName_N,    etc.

Layer and block names are also preserved in the Component Label of each object.

 

3D Entities

All 3D surfaces imported into AGi32 are assigned surface properties (such as Color, Reflectance , Texture, etc.). By default, AGi32 imports all 3D surfaces as double-sided surfaces with 50% grayscale reflectance. The surface types and properties may be modified during the import process with import mapping (see below), or after import by using the Surface Edit command.

All 3D surfaces (planar and non-planar) imported into AGi32 are meshed into planar triangles or quadrilaterals during the import process.

The degree to which non-planar (curved) surfaces are meshed can be adjusted in the Advanced Import Options (see below).

Planar surfaces can be merged together. See Coplanar Merging in the Advanced Import Options (below).

Object naming convention

Object Labels are determined by their layer or block name and the number of objects on that layer or block.

Format:   LayerName_1, LayerName_2, ... , LayerName_N,    BlockName_1, BlockName_2, ... , BlockName_N,etc. (e.g., two objects on Layer Skin would  be named Skin_1 and Skin_2).

Layer and block names are also preserved in the Component Label of each object. For example, in a group labeled ImportCar, Layer Wheels would become the name of the Component containing the wheel surfaces,Layer Body would become the name of the Component containing the body surfaces, etc.

Using 3D Entity Models as Library Objects

Composite objects can be saved, to use and reuse, as library objects. Once you save an imported object as a library object, you can reuse it in any job file, complete with its associated material properties.

Note: It is strongly recommended that you create your library objects at a true scale, so that they do not need to be scaled repeatedly with each reuse. We recommend checking the scale of your imported object quickly, in a test file, before you spend a lot of time assigning the desired surface materials.

 

Import Mapping (3D Entities)

Entities that are imported as AGi32 objects are assigned surface properties during import. The user can customize these properties by applying an import map. Otherwise, a default import map is used.

Import Maps may be saved and opened. Their location depends on the computer's operating system. In Microsoft Vista, for example, the location is C:\ProgramData\AGi32\Import_Maps. Additionally, an import map is automatically saved for each imported file. If the same file is imported again, the previously saved import map is automatically loaded. Import maps may be deleted by deleting the import map files directly.

Import Filters

Surface Properties (see Surface Edit command for detailed information)

Surface Property

Comment

Surface Label

Optional surface labels provide for naming objects with consistent name, allowing for easy identification in Project Manager.

Removed

Selecting this option removes selected surfaces from calculation consideration (surfaces become invisible).

Surface Type

Available Surface Types: Double Sided, Single Sided, Daylight Transition Glass (Transparent and Diffuse), Daylight Transition Opening, Roadway Pavement Single Sided (Direct Flux Only), and Roadway Contributor Single Sided).

Daylight Exterior

Selecting this option assigns selected surfaces as Daylight Exterior surfaces (impacts daylighting calculations only).

Color / Reflectance

Specify a Color  / Reflectance value for the selected surfaces. Clicking in this cell results in the Color / Reflectance Selector dialog being displayed.

Texture

Specify a Texture image to be applied to the selected surfaces. Clicking in the Texture cell opens the Select Texture dialog. A preview thumbnail of the texture is displayed once a texture image is selected.

Transmittance

Double Sided surfaces may be assigned a diffuse transmittance value (i.e., they behave like frosted glass).

Color / Transparency

When the Glass surface type is specified, you can specify a Color  / Transparency value for the selected surfaces. Clicking in either cell results in the Color / Spectral Radiant Emittance (SRE) Selector dialog being displayed.

Specularity

Specularity values range between zero and 1, where any value greater than zero results in a high-gloss (shiny) surface in Ray Trace imagery.

Glossiness

Glossiness values range between zero and 1, where any value other than zero or 1 results in a low gloss finish in Ray Trace imagery. (Must be assigned in conjunction with specularity.)

Color Bleed

Color Bleed values range between zero and 1, where any value less than one results in less color reflection (used to mitigate saturated color reflection between surfaces for more-realistic appearing renderings).

Mesh Level

Mesh level changes results in finer or coarser surface discretization for calculations and rendering. (Change from default settings.)

Color / Luminance

Specify a Luminance value (in Cd/sq.m) for self-emitting surfaces. By default, luminance color equals surface color, but they may be different. Clicking in the Color / Luminance cell results in the Color / Spectral Radiant Emittance (SRE) Selector dialog being displayed.

Direct Flux Only

Selecting this option assigns selected surfaces as Direct Flux Only surfaces (surfaces receive no reflected light); useful for optimization purposes.

Default Map/Filter
Filter Types
Import Mapping tabs

There are two ways to create import maps: by layer and advanced.

By-layer import mapping allows the user to quickly apply surface properties to entities based on the entities' layer (automatically creating layer filters).  The CAD Viewer shows a preview of the currently selected layers. To quickly select and clear layers, use the Select All and Clear Selected buttons. Alternatively, you may use the Ctrl-A keystroke combination to toggle the selection between Select All and Clear All.

Advanced import mapping provides more powerful control by providing access to all available filter types. However, the CAD Preview is not updated when creating advanced import maps.

 

CAD Viewer

CAD Viewer Usage

Navigation, Tag and View Control Icons

Icon

Command

Keyboard Shortcut

Comments

Front View

 

Displays a Front (South) Elevation View of Object or Room in graphic display.

Back

 

Displays a Back (North) Elevation View of Object or Room in graphic display.

Left

 

Displays a Left (West) Elevation View of Object or Room in graphic display.

Right

 

Displays a Right (East) Elevation View of Object or Room in graphic display.

Top

 

Displays a Top Plan View of Object or Room in graphic display.

Bottom

 

Displays a Bottom Plan View of Object or Room in graphic display.

Clip   Cuts away the front plane of the image continuously to reveal the objects within and beyond. The size of the image does not increase or decrease. This command is very useful when viewing an image with exterior and interior components (e.g., interior and site lighting).
Dolly   Moves the observer and the focus point in and out of the model along a straight line. Depending on the view direction, from the observer’s point of view, this feature allows you to “walk” into and out of the space.
Orbit   Moves the observer around the model while maintaining the same focus point. Imagine that you are a spaceship orbiting the earth, always looking at the center of the earth.
Pan   Moves the observer and focus point relative to a fixed model position. Imagine that you are looking straight ahead and moving laterally left/right or up/down. The image will move opposite to the panning direction.
Rotate   Allows the observer to look left or right and up or down from a fixed position. Use this command when you are in a space and want to look at different surfaces without changing your position. A panorama view is obtained by moving constantly to the left or right.
Walk   Combines the Dolly, Pan and Rotate commands into one movement. Dragging the mouse up/down moves the observer forward and backward. Dragging the mouse left/right, rotates the observer view position left and right. Using the Shift and Ctrl keys in conjunction with dragging or the arrow keys invokes the Rotate and Pan commands as well.
Zoom  

Similar to the Zoom In and Zoom Out commands in AGi32’s Model Mode, with the difference being that the image size is continuously increased or decreased as the mouse is held down and dragged.

Zoom Extents   Zooms to the extents of the currently selected layers.

 

Display Options

Clicking on the Display Options button below the image opens a list of ways that the image appearance may be modified. For example, you may select to keep outlines visible and surfaces filled in, but not show text or drawing entities associated with this file. In a 3D file, you may also change the Transparency of the model. These selections apply to the image seen in the CAD Viewer only. By default, all options are selected and 3D files are displayed with Transparency = 0% (opaque), with the background color available for modification.

 

Color Mapping

ACI colors are automatically converted to Windows color numbers. Please note, there are only 256 ACIcolors. Windows uses either; 16, 256, 16-bit or 24-bit colors. Consequently, there may be slight variation in the color between ACI colors and AGi32 colors. New CAD files may have wireframe colors specified using 24-bit colors. AGi32 will be able to match these colors exactly when the file is imported in AGi32.

 

Line Type Mapping

When importing CAD files into AGi32, CAD linetypes must be mapped to one of AGi32's available line types. The table below shows details of mapping CAD standard linetypes into AGi32.

AGi32 Line Type

ACAD Line Type

SOLID

CONTINUOUS

DASH

CENTER

CENTER2

CENTERX2

DASHED

DASHED2

HIDDEN

HIDDEN2

HIDDENX2

PHANTOM

PHANTOM2

PHANTOMX2

DOT

DOT

DOT2

DOTX2

DASHDOT

BORDER

BORDER2

BORDERX2

DASHDOT

DASHDOT2

DASHDOTX2

DASHDOTDOT

DIVIDE

DIVIDE2

DIVIDEX2

All other linetypes are imported as Solid linetypes in AGi32.

 

Font Mapping

CAD files use their own fonts, and there is no correlation with Windows fonts. Since AGi32 uses Windows fonts, imported text is converted to the current AGi32 default system font. This default font setting is located in the Tools - System Settings dialog and can be changed as desired. Imported text can be changed using the Modify - Drawing - Edit Text command.

Note: If the font described in the imported CAD file is found on the end user's computer (in the Windows Font folder), AGi32 will use the CAD font instead of the AGi32 default system font.

 

XREF Drawings

External References (XREFs) found in the imported file will automatically be imported if the XREF file can be found.

Binding XREFs

  1. In CAD, the command BIND is used to bind an external reference (this can be done in the XREF dialog in CAD).
  2. Binding permanently inserts the XREF as a block into the original drawing. Always do the bind on a copy of the original drawing (so that you do not lose your “live” links).
  3. You cannot bind XREFs with proxy objects or names with invalid characters.
  4.  

Text Size and Offset Factors

Text Size and Offset Factor are applied to text in DXF files when they are imported into and exported from AGi32. These parameters are applied to the text so that in AGi32 it looks similar to its original appearance in CAD.

The text size in AGi32 determines the size of the character block containing the font glyph and top and bottom leading spaces.  In CAD software, the text is created without any top and bottom leading spaces.

We have to match this:

to this:

Text Size Factor adjusts the CAD Text Size to correspond to the AGi32 Text Size, which includes the top and bottom leading spaces. An example illustrates these concepts.

Offset Factor offsets the text to account for the bottom leading space in AGi32.

 

Advanced Import Options

Curve Increment

Imported circles, arcs, ellipses, etc. are broken into straight-line segments. A smaller Curve Increment will import the curved geometry more accurately, but at the expense of more line segments.

Spline Precision

Imported spline precision can be adjusted between Coarse (default), Medium and High. The default setting is typically adequate. Adjust the setting upward should you find splines not following the CAD created precision.

Curved (Non-Planar) Surfaces

AGi32 breaks curved 3D surfaces into meshes of planar triangles and quadrilaterals. There are two choices here:

  • Optimize Curved Surfaces - Produces the optimal balance between number of imported surfaces and accuracy of the imported surfaces to the original surface.
  • Use Curve Increment - Applies the curve increment when importing surfaces. A smaller curve increment allows you to make the imported surfaces more accurately resemble the original surface, but at the expense of more surfaces (takes longer to import and to calculate).

Planar Tolerance

Many planar surfaces are not exactly planar. this value determines which surfaces are considered to be planar for importing purposes. Surfaces that exceed this value are broken into (planar) triangles or not imported. Larger values will allow more surfaces to be imported, but may adversely affect rendering and calculations.

Minimum Area Tolerance

Surfaces with an area less than the tolerance are considered "null surfaces" and will not be imported. Small surfaces may not be important for calculation purposes (won't affect results), but may significantly slow down the calculation.

Merge Coplanar Surfaces

Many 3D CAD model are (unnecessarily) meshed into triangles and quadrilaterals. Merging these surfaces together can result in drastic improvements in calculation time, display performance, etc. This feature merges surfaces together if:

Coplanar merging is enabled by default. Check the import summary after importing is complete to see how many surfaces were merged.

Merging coplanar surfaces is tricky business since many surfaces are not exactly coplanar. There are two choices here:

Increasing these tolerances increases the number of surfaces that will potentially be merged together. Merging surfaces that are not actually coplanar can adversely affect rendering and calculations.

Surface Checks

When AGi32 imports 3D entities as objects, they may be inspected for consistent surface orientation and duplicate surfaces. These checks are performed within each object by processing the vertices of a specified percentage of surfaces together within each object. By default, AGi32 uses a value of 0.25 (25%) as its grouping value. This value, the '3D Entity Check Range' may be changed in the Advanced Import Options section of the Import CAD File dialog.