# JMap DWG - DXF reader

<table data-header-hidden><thead><tr><th width="193.5"></th><th></th></tr></thead><tbody><tr><td>Read</td><td>Yes</td></tr><tr><td>Write</td><td>No</td></tr></tbody></table>

JMap Server can read DWG and DXF files produced by Autodesk Autocad versions 12 to 2018 as a spatial data source. Block attributes are read and converted into element attributes.

<table data-header-hidden><thead><tr><th width="200.5"></th><th></th></tr></thead><tbody><tr><td><strong>Parameters</strong></td><td> </td></tr><tr><td>Selected files</td><td>Select one or more DWG or DXF files to read. If selecting more than one file, all files must have the same list of attributes and geometries must be of the same type.</td></tr><tr><td>Source</td><td>The Autocad file contains a model space and a paper space. The paper space contains additional elements that are intended for printing. Select the space to use in order for the data to be read by JMap (typically the model space).</td></tr><tr><td>Line and polygon options</td><td><strong>No conversion</strong>: No conversion will be done.<br><strong>Convert closed lines to polygons</strong>: Closed line objects will be read as polygons by JMap.<br><strong>Convert polygons to lines</strong>: Polygon objects will be read as lines by JMap.</td></tr><tr><td>Block reference options</td><td><strong>No conversion</strong>: No conversion will be done. The different types of objects (lines, polygons, …) will be treated separately by JMap.<br><strong>Convert block references to complex elements</strong>: The different types of objects (lines, polygons, annotations…) that compose the blocks will be read together and treated as complex elements by JMap.<br>The maximum size of annotations (texts) is 255 points. The annotations are not displayed at very large scales (zoom too close to the complexes).<br><strong>Convert block references to points</strong>: JMap will replace block references by points. This has the effect of considerably reducing the size of the data when the blocks are composed of many objects.</td></tr><tr><td>Layers</td><td>Select one or more layers to include in the data source. Data on other layers will not be read.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/spatial-data-sources/vector-data-sources/jmap-dwg-dxf-reader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
