> 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/importing-files.md). Agents can also search and read this documentation through its [MCP server](https://docs.rayon.design/~gitbook/mcp).

# DWG/DXF import

All about importing AutoCAD files into Rayon.

Rayon supports almost **all concepts native to the DWG or DXF formats**. Import is **2D only**. After an import, Rayon tells you what it could not bring in.

### 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. Gradients import too.

[More on shapes here.](https://docs.rayon.design/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 controlled at the style level, and a style value can inherit from the layer of the entity that uses it. Styles in Rayon are distinct from layers, and offer more customization options. When importing into Rayon, our software will...\
  (1) turn each layer's color into the color its entities show in wireframe mode.\
  (2) turn the colors the drawing shows in its default display into Rayon styles.\
  [More on inheriting values here.](https://docs.rayon.design/documentation/design/layers.md#h_inheritable_values)

AutoCAD layer states come through as Rayon layer states. [More on layer states here.](https://docs.rayon.design/documentation/design/layers.md#layer-states)

</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, text, etc. Associative dimensions stay associative.\
[More on annotations here.](https://docs.rayon.design/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. Dynamic blocks with linear, flip, visibility or rotation parameters become Rayon parametric blocks. Dynamic blocks with other parameters, such as XY and lookup, come in as regular blocks, one for each state the drawing used. Block attributes come in as custom properties of each block instance.\
[More on blocks here.](https://docs.rayon.design/documentation/design/blocks.md)

</details>

<details>

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

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

</details>

<details>

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

**AutoCAD layout spaces are turned into paper canvases** when you tick **`Layouts`** in the import dialog. It is not ticked the first time. After that, Rayon remembers your last choice. The **`Layouts`** option only shows when you import from the project manager.\
[More on canvases here.](https://docs.rayon.design/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 objects in a DWG or DXF file. For 3D models, see [importing 3D files](https://docs.rayon.design/documentation/work-in-3d/the-3d-canvas.md#importing-3d-files).
* PDF references
* A few drawing concepts like ray lines. Construction lines (xlines) come in as guidelines.

A font with license restrictions does not import either. Rayon uses a fallback font instead.

</details>

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

{% hint style="info" %}
Please note that DWG and DXF files must be under 35 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%2FdMPq0cXmPGcdZ9Km3ZaB%2Fdwg-pm-import-button.png?alt=media" alt=""><figcaption></figcaption></figure>

**From the editor**, you will find the import option in the **`Menu`** in the top left corner of the screen. Go to **`Import`**, then **`DWG / DXF (2D)`**. 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%2FfvG9VOdXVd79Sai9XwdB%2Fdwg-import-menu.png?alt=media" alt=""><figcaption></figcaption></figure>

You can also **drop a DWG or DXF file on a 2D canvas**. It starts the same import as the **`Menu`**, one file at a time. A 3D canvas refuses the drop.

To import a DWT template, use the project manager or drop it on a 2D canvas.

You will then be offered **a few import options**. Under **`Import items`**, tick what you want to bring in: **`Layouts`**, **`Hidden layers`**, **`Empty layers`** and **`Blocks without instance`**. From the project manager, you also set the **`Model name`**. From the editor, the dialog has no **`Model name`** and no **`Layouts`**. **`Import as reference`** is covered [below](#importing-xrefs). Clicking on **`Continue`** will take you to the import window.

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

* First, **measure a known length** by picking its two ends.
* Then, pick the **unit that matches** the distance you measured. Note that at this step, Rayon will ***only*** ask you for the unit, and will not allow you to type a distance.
* Press **`Import`** to complete your import.

To import without scaling, click **`Continue`** on the first step.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FpQrAKqYZ4dVezJurKg8W%2Fdwg-import-unit-step.png?alt=media" alt="The import window with a measured length on a floor plan, a distance and unit select above the bar, and an Import button in the bar."><figcaption></figcaption></figure>

**From the project manager**, your file is imported into **a new model**, and the editor opens on it. **From the editor**, the import window closes, and your file lands in the open model. **That's it!** Please note that if the scale of the resulting import doesn’t look right, you can scale your model after import.

If the canvas you import into already holds content, the drawing lands at the center of your screen. A notification then offers **`Move to origin`**. If the open model also came from a DWG or DXF, the notification can offer **`Use host coordinates`** as well, which lines the drawing up with the model's own coordinates.

If part of your drawing could not come through, a notification tells you so once the import is placed. Click **`Details`** to read the **`Missing entities`** list. It can name skipped 3D objects or PDF references. It also flags entities that are not on the XY plane. If the import limit was reached, it says so.

To export your drawing as a DWG or DXF, read our page on [exporting & printing](https://docs.rayon.design/documentation/import-export/exporting-and-printing.md).

### Importing Xrefs

In Rayon, **Xref files are imported as references**. During the import flow, if your DWG contains Xrefs, **Rayon lists the missing Xrefs** in a card above the import bar.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FgGHSYuECfjWG1utUZbKX%2Fdwg-xref-step.png?alt=media" alt="A card listing two Xrefs, one loaded and one with an Upload button, above a bar with Skip and Continue."><figcaption></figcaption></figure>

Click **`Upload`** on a row and pick that DWG. For each new DWG you upload, a blue tick will appear to confirm the upload. Once at least one **Xref** has been loaded, you can click on **`Continue`** to scale your model and **`Import`** it. You can also click on **`Skip`** and upload your Xrefs later.

**To import a whole DWG or DXF as a reference**, tick **`Import as reference`** under **`External reference`** in the import dialog. From the editor, it comes into the open model as a reference. From the project manager, you get a new model holding it as a reference. Ticking it also turns off **`Layouts`**.

**To reference a canvas from another Rayon model**, go to **`Menu`**, **`Import`**, **`Rayon`**, then **`Model`**. The **`Import canvas from model`** dialog opens. Use the dropdown at its top to reach your other workspaces, then pick a model. If the model has several canvases, you then pick one. Only model and paper canvases that hold content are offered.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FNTYHcerKW3M968fcvDN9%2Fdwg-import-canvas-from-model.png?alt=media" alt="The Import canvas from model dialog, with a location select at the top and a grid of model cards."><figcaption></figcaption></figure>

In your model, the **`References`** panel lists your references under **`In this model`** and **`Not loaded`**. Its link icon, on the left rail, only shows once your model has references. Right-click a reference, or open its **...** menu, to manage it:

* **`Sync from source`** updates a reference to a Rayon canvas from its source model. It only shows for those references, and you need access to the source model.
* Under **`Replace`**, **`From a file`** or **`From a model`** swaps a reference. To upload a missing reference, use **`From a file`**.
* **`Delete (keep as a block)`** turns a loaded reference into a regular block.
* **`Delete`** removes the reference and every instance of it.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FJnmytW1nfSma297rvTAA%2Fdwg-references-panel.png?alt=media" 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](https://docs.rayon.design/other-resources/others/support-policy.md).
