Create a new file from DXF file

Icon

Menu bar

Keyboard shortcut

../_images/DXF-Import.en_US.png

File > Import

Ctrl + I

The DXF import function allows you to transfer an entire front panel from a DXF file to an FPD file. You can also use the DXF import to import just the outer contour or just the inner counters (drill holes and cut-outs) of a front panel.

DXF file requirements

  • It must be a 2D file.

  • Since the largest closed contour of the DXF file is the one generally identified as the outer contour, the drawing must not include any drawing frames or similar. It is also not possible to select the desired front panel from several front panels in a DXF file during import.

  • Normally, the DXF file should contain the entire front panel. In addition, it should not contain any other objects

  • If the file contains labels that should be imported, the text must be formatted as paths.

Calling the function

Select File > Import from the menu bar and load the desired DXF file from your directory. The DXF import wizard opens. From here, it takes two steps to get to the front panel: In the first dialog, you specify how to interpret the DXF file’s contents and set some other options. In the second dialog you can select which of the identified elements are to be transferred to the FPD file.

DXF import wizard – options

../_images/NewFile_FromDXF_dxf_importassistant_options.en_US.png

Option

Description

Units

In most cases, the DXF import wizard recognizes units of measurement in the DXF file (mm or inches) and imports them. If the units cannot be recognized, you will be prompted to enter them in manually.

Scale

Enter the scale found in the drawing in the DXF file here. The front panel is scaled accordingly so that it is produced in the correct size.

File content

Note: You do not use the option you selected here to decide which parts of the DXF file you ultimately want to import, but rather you give the import wizard a note about what is contained in the DXF file at hand. This has an influence on the milling elements recognized in the next step.

Entire front panel

The drawing in the DXF file displays the entire front panel. Normally, this is an outer contour plus its inner contours in the form of drill holes, cut-outs and, if necessary, further milling elements, some of which are nested within each other, as well as labels. However, if the file contains several elements that are not framed by the same outer contour, the largest contour found in the drawing is identified as the outer contour of the front panel. Only this recognized front panel will be transferred for the import. Elements found outside this contour are ignored.

Panel contour only

The largest contour of the DXF file is imported as a front panel outline. With the exception of open contours that can be imported as non-produced elements (optional), any further contours contained in the file are not imported.

Inner contours only

Select this option if the DXF file only contains the drill holes, cavities, cut-outs and so on in the front panel. The outer contours are ignored, and only the inner contours are placed.

Note: A new file is only generated using this option if no front panel file is open. If a front panel file is open, the inner contours are imported into that file.

Import options

Close gaps

If the DXF file contains lines that should be closed but due to inaccuracies (gaps or self-intersections), are not, you can choose to tolerate these inaccuracies and close the affected contours. You specify the error tolerance at which this should occur in the Tolerance value field.

Open contours

Import as non-produced element

Milling elements cannot be generated from open contours. However, they can be imported as non-produced elements, that is, as non-produced HPGL engraving elements.

Tip: You can undo the “Do not produce” option in the FPD file later on so that these elements will be engraved or printed. That way, you can import labels as long as they use one font and are formatted as paths.*

Ignore

Open contours will not be imported.

Recognize standard elements

Activating this option will cause contours that match standard elements in Front Panel Designer to be recognized. These standard elements are created during import. This has the advantage that you can continue to edit these elements in the corresponding property dialogs in Front Panel Designer.

The following elements are recognized:

Detected standard shape

>

Generated milling element

Circle

>

Drill hole

Rectangle

>

Rectangular cut-out

Circle in circle

>

Circle-in-circle cavity

Rectangle in rectangle

>

Rectangle-in-rectangle cavity

Note: Cavities are initially generated without depth. Enter the desired depth into the cavity’s properties dialog following the import (double-click the cavity).

All other closed contours are categorized as free contour elements and input as free contours in the FPD file.

DXF import wizard – element recognition

../_images/NewFile_FromDXF_dxf_importassistant_element_recognition.en_US.png

At this stage, you will be shown a preview as well as the results of the defined properties. You can select which elements should be imported into the FPD file.

Area

Description

Preview

The recognized elements are displayed together with the original contours from the DXF file (red dashed line), so that you can detect any deviations.

Element tree

The elements in the element tree are sorted by category. Elements of similar type and size are grouped together. You can highlight an element in the preview display with a color by clicking the corresponding row. To exclude an element from the import, click the checkbox next to the respective element.

Note: You can also deselect the front panel itself in the element tree (with either the Entire front panel or Only outer contour options). In this case, a new file is only generated if no front panel file is open. If a front panel file is open, the selected elements will be imported into this front panel as inner contours.

Further editing following import

Import of a complete front panel:

After you have completed the import by clicking Finish, the front panel’s properties dialog opens. All further changes to the front panel’s settings – in particular, material thickness – are made here (see Basic shape, Dimensions, etc.). You can continue to edit the imported elements after the FPD file has been created.

Import of inner contours into an existing FPD file:

The imported elements can be processed immediately following the import.

You can continue to edit the recognized elements from the DXF import assistant by opening the properties dialog (double-click the desired element). Cut-outs can be converted to cavities and vice versa (right-click the element > Context menu > Convert element).

Reference point

The imported file’s reference point is the front panel’s bottom-left corner or, if the front panel is not right-angled, the bottom-left corner of the unrotated rectangle enclosing it.

If there is no outer contour in the DXF file, the origin of the DXF file is defined as the reference point of the imported file.