> For the complete documentation index, see [llms.txt](https://docs.rayon.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rayon.design/documentation/import-export/dwg-dxf-import.md).

# DWG/DXF import

All about importing AutoCAD files into Rayon.

Rayon supports almost **all concepts native to the DWG or DXF formats, offering a lossless import experience**.

### DWG import compatibility

Rayon supports most of AutoCAD's concepts. It is important to understand how each one gets mapped in Rayon. We outline here what each concept translates to in our software...

<details>

<summary><strong>Geometries</strong></summary>

**AutoCAD geometries are converted into Rayon shapes.** Very few changes happen here. As of now, Rayon supports AutoCAD's main geometric concepts: line, polyline, circle, rectangle, etc.

[More on shapes here.](/documentation/design/shape-tools.md)

</details>

<details>

<summary><strong>Layers</strong></summary>

**Layers are converted into Rayon layers**. Rayon layers serve the same function as AutoCAD layers: they store entities. However, 2 things are important to consider:

* **Occlusion** — In Rayon, layer ordering defines the scene ordering. In other words, the order of layers defines which entity comes above which other. In this way, layers control occlusion in Rayon, which differs from AutoCAD.
* **Styling** — In Rayon, the style of things (shapes, blocks, etc.) is not controlled at the layer level, but at the style level. Styles in Rayon are distinct from layers, and offer more customization options. When importing into Rayon, our software will...\
  (1) translate the layer color into the color entities take in wireframe mode, based on their layer.\
  (2) translate the viewport color into a Rayon style.

</details>

<details>

<summary><strong>Annotations</strong></summary>

**AutoCAD annotations are converted into Rayon annotations.** Very few changes happen here. As of now, Rayon supports AutoCAD's main annotation concepts: dimensions, leaders, angular dimensions, texts, etc.\
[More on annotations here.](/documentation/design/annotations-dimensions-leaders-text.md)

</details>

<details>

<summary><strong>Blocks</strong></summary>

**AutoCAD blocks are converted into Rayon blocks.** Regular blocks import directly, and dynamic blocks are supported natively: their parameters and actions are converted into Rayon parametric blocks.\
[More on blocks here.](/documentation/design/blocks.md)

</details>

<details>

<summary><strong>Viewports</strong></summary>

**AutoCAD viewports are converted into Rayon views.**\
[More on views here.](/documentation/layout-and-present/views.md)

</details>

<details>

<summary><strong>Layout</strong> <strong>space</strong></summary>

**AutoCAD layout spaces are turned into paper canvases.**\
[More on canvases here.](/documentation/layout-and-present/canvases.md)

</details>

<details>

<summary><strong>Xrefs</strong></summary>

**AutoCAD Xrefs are converted into Rayon references.** However, for the time being, Rayon does not support advanced Xref features (*eTransmit* packages, for instance).\
[More on Xref import here.](#importing-xrefs)

</details>

<details>

<summary><strong>Others</strong></summary>

There are still a few concepts that Rayon **does not support natively.**

* Advanced Xref features (eTransmit)
* *AutoCAD Architecture* add-on features (walls, schedules, etc.)
* CTBs
* 3D files
* A few drawing concepts like XCLIP and ray lines.

</details>

### Importing options <a href="#h_e434426e1e" id="h_e434426e1e"></a>

{% hint style="info" %}
Please note that DWG/DXF, PDF and image import is capped at 25 MB, and that pop-up blockers need to be disabled for the import to work properly.
{% endhint %}

Import can happen either **from the** **project manager** or **from the editor**.

**From the project manager**, click on **`Import`** in the top right of the screen and **choose a file.**

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FEJyyRUei1H0uHhMhLFE1%2FPreviewer%20(1).png?alt=media&#x26;token=fb623590-af4c-40de-95b8-e0a31c008632" alt=""><figcaption></figcaption></figure>

**From the editor**, you will find the import option in the **`Menu`** in the top left corner of the screen. The following steps to import will then be **similar.**

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FOgiHVvCbeXOXzmwbBHh5%2FPreviewer%20(2).png?alt=media&#x26;token=3a999e0a-aca3-41a0-800d-738eb51391f7" alt=""><figcaption></figcaption></figure>

You will then be offered **a few import options** to toggle (model name, whether to keep empty layers, blocks, etc.). Clicking on **`Import`** will take you to the import window.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FZZo93LM6220jJsBg5zoc%2FPreviewer%20C.png?alt=media&#x26;token=62f5bb3d-724d-49ff-8c9f-fa8d30b6c3d5" alt=""><figcaption></figcaption></figure>

In the import window, you will be invited to **specify the scale of your drawing**. This will happen in 2 steps...

* First, **draw a line of a known distance.**
* Then, pick the **unit you deem most representative** of the distance you drew. Note that at this step, Rayon will ***only*** ask you for the unit, and will not allow you to change the distance specified.
* Press **`Continue`** to complete your import.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FynkpWXPpk8NgsWCe2kPg%2FPreviewer%20(7).png?alt=media&#x26;token=064a6266-c121-4c3d-9de9-01add89278ba" alt=""><figcaption></figcaption></figure>

The editor will then open. To complete your import, click on the canvas to **`Pick an insertion point`**. **That's it!** Your file is imported into **a new model.** Please note that if the scale of the resulting import doesn’t look right, you can scale your model after import.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FauNY5zvhNPC9ZfaDKJGN%2FPreviewer%20(10).png?alt=media&#x26;token=ddc789c3-a123-412c-b428-718913dfffbf" alt=""><figcaption></figcaption></figure>

### Importing Xrefs

In Rayon, **Xref files are imported as references**. During the import flow, if your DWG contains Xrefs, **an option to import missing Xrefs will appear** in the import bar.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FDAPQORhBBxg7dJsj2U1W%2FPreviewer.png?alt=media&#x26;token=58812b89-c207-46b9-a24e-36c1b63110e0" alt=""><figcaption></figcaption></figure>

When clicking on **`Open Xref`**, a panel will open, prompting you to **upload missing DWG files**.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2F3gn89nYP9rsb0XxB22d9%2FPreviewer%20(1).png?alt=media&#x26;token=576588d5-68f1-4e14-9c91-85d12475e3c2" alt=""><figcaption></figcaption></figure>

For each new DWG you upload, a blue tick will appear to confirm the upload. Once all **Xrefs** have been loaded, you can click on **`continue`** to scale your model and **`Import`** it to your workspace.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FEbPl3UzeT8ogN5n2ukTs%2FPreviewer-2.png?alt=media&#x26;token=b7d195db-3f9c-449f-9a49-5fd1f2b03b0c" alt=""><figcaption></figcaption></figure>

In your model, the **Xrefs** panel will allow you to upload missing references, as well as update them.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FKQML9FUXfo9zDFRxPlCH%2FFrame%201846%20(1).png?alt=media&#x26;token=ddf726b9-9bc7-4f4b-8d00-09532c1ca8a0" alt=""><figcaption></figcaption></figure>

***

### We are always available

Book a demo with our team, [right here](https://b1kzip68v9f.typeform.com/to/Hgr0eQ4k#source=docs).\
To get some support, reach out to us through our **in-app support chat**.\
More about [our support policy right here](/other-resources/others/support-policy.md).
