Table of Contents

Importing DXF files into myCNC

NOTE: The myCNC DXF import is provided AS IS, and may not be suitable as a full-fledged CAM software package replacement. The DXF import functionality performs best on simple contours, and is limited in scope for certain applications (plasma, etc). Please consult the myCNC team for more information on DXF import functionality.

The following manual is designed to give the reader a quick introduction on importing DXF files into myCNC software to convert to G-Code. Note that the DXF import window allows the user to combine different technologies, provided that their tool paths have been drawn in different layers (DXF files) or in different pens/colours (HPGL files). That will allow to assign a particular technology to each such layer/pen (for example, using a spindle or a marker alongside a tangential knife). The myCNC software will automatically add all the necessary tool change and tool lift macros when generating the G-code file from the imported drawing.

A quick overview of the DXF import functions is available here:

An introduction to combining different technologies for different layers of the original drawing can also be seen in the camera vision video (relevant information begins at 5:20). Note that while the examples shown are specifically for the tangential knife and camera tools, the principle remains the same for all the other available options (half-knife, creasing wheel, spindle, plasma, marker, etc):

DXF Import Main Screen

Upon pressing the Open DXF file and navigating to the particular file you would like to open, the following window is shown:

dxf-import-002-main-window.jpg

This window can be split into the following areas:

File Manager

The file manager allows the user to pick the particular DXF file they would like to open. Note that the folders available to the user through myCNC software's DXF import feature are listed in Settings > Config > Preferences > Common. Only the folders listed there can be accessed during the importing process.

Technology Settings

As can be seen in the Technology Settings section, the list of available technologies is as follows:

The settings for these technologies can also be accessed through Settings > Config > DXF import settings. Depending on the user's needs, unnecessary technologies can be disabled to reduce screen clutter.

Below are the descriptions of the available settings for each of the technologies listed in the Technology Settings:

Engraving

Multipass cutting

Pockets

Pen

Laser Pointer

Plasma/Gas

NOTE: The DXF import functionality performs best on simple contours, and is limited in scope for plasma and gas cutting applications.

Knife

Half-knife

Creasing wheel

V-knife

Knife that's held at an angle (often a 45-degree knife). Typically used for simple shaped (lines, rectangles, etc). Double Pass option is currently (as of September 2022) only used on the V-knife, allowing to go back and forth cutting the material from both sides.

A typical task that is solved by using a V-knife is to create boxes for ventilation - strips are cut out and rolled into a square pipe.

V-knife also has the direction of cut functionality for its contours:

In the examples above, two contours are selected to be cut clockwise, while two are selected as counterclockwise.

A diagram illustrating a typical v-knife setup:

In the diagram above, the working height is the cutting height. The entry is made at H, the material thickness, plus the lift height.

NOTE: As V-cut and V-knife functionality is primarily designed to cut materials such as thick foams (of a set given thickness), no additional options are provided for applications such as chamfering.

For each straight cutting section, a displacement perpendicular to the movement is taken depending on the thickness of the material and the lift value, an incision is made so that the knife will arrive to a given XY coordinate when it reaches the working height.

At the end of the cutting line, the knife is removed from the material and is moved ont the next line (taking correction into account). For this reason, the current implementation does not works on circles/arcs - when attempting to make a curve, the knife will be inserted and removed at joint points, resulting in an uneven/chopped edge. Therefore, V-knife functionality is currently recommended for straight line cutting only.

S-knife

:!: Custom client request, may not be suitable for production.

Similar to regular knife (“straight-knife”), however the rotation is limited to +-180 degrees.

Knife-L180

:!: Custom client request, may not be suitable for production.

Similar to S-knife, custom client modification.

DXF File settings

The DXF file settings allow the user to specify the particular tools and tool numbers used for each layer of the DXF file, as well as edit the following options:

Layers and colours for tool paths

myCNC (as of version 1.88.5609) allows the users to assign different tools within the generated files to different colours (as opposed to the standard layers). In order to enable this option, head into Settings > Config > DXF Import Settings, and enable the Colors option for DXF Tools:

This will make the DXF files with different colours per specific contours to be recognized as distinct tool paths, which you can then assign to the necessary tools at the DXF Import screen:

(NOTE: The above screenshot also features the laser cutting DXF import mode: Laser Cutting)

DXF toolpath optimization

The DXF toolpath optimization toggle allows the myCNC software to optimize cut time in DXF/HPGL files by choosing the closest next cut as the program is running. This setting is usually left ON, as it allows to create a valid toolpath for a simple Photoshop file etc, however in case that the file you are importing already has a specified toolpath it can be toggled OFF so that the toolpaths do not conflict. See the screenshot below for a comparison of unoptimized versus optimized HPGL import:

Example of setting up DXF import functionality

In our example, we will be enabling DXF import for plasma cutting. Please note, that plasma cutting using DXF files is limited in functionality (lacking features such as kerf compensation, etc), and should not be used as a dedicated CAM software replacement.

1) Enable the checkmark in the Plasma line within DXF settings and disable other tabs (unless multiple tools are used):

2) A tab with plasma cutting settings should appear in the DXF import window, fill in the parameters such as feed and lead-in:

3) Assign the layer in which your part is drawn to the Plasma tool M71 / M74. Check the Enable checkbox for this layer:

Visualization

The visualization window serves as a visual indication for the user as to how the DXF file that is being imported will look. It also allows to catch some simple mistakes in file settings such as the wrong technology or the wrong priority being selected for each layer of the DXF file.

As an example, below is a visualization of a DXF file designed with a tangential knife in mind. If the tool has been incorrectly selected to be a plasma cutter, the visualization can serve as a useful reminder to the user:

DXF import settings configuration dialogue

For a full description of the DXF settings configuration dialogue, please consult the myCNC Configuration Dialogues page.

Segment Merge Tolerance

Segment Merge Tolerance has been introduced to fix an issue where the visualization at the Import screen would appear to have disconnected lines. For HPGL files this Tolerance value must be at least 0.03mm (as the files tend to contain integer values with a precision of approximately 0.025, and even with correct rendering, there may be discrepancies in rounding). For DXF files, this value depends on the original drawing method and the software used to design the file. Ideally, DXF files should work well with a Tolerance value of around 0.001mm, however the actual necessary value may be different depending on the imported files.

If this issue appears, a value of around 0.05 may be a good starting point to try and fix this visual problem.

DXF2-Import (Plasma Update)

The UI and functionalty overhaul for DXF import is available as of the late 2023. The highlights are as follows:

The video below showcases the functionality of DXF2-Import in more detail:

To enable the new DXF2 Import functionality:

1. On your PC, open your profile folder (for plasma cutting, typically X1366P):

On Linux, this folder will be located in

/home/user_name/.config/myCNC/profiles...

On Windows, this folder will be located in

C:/Users/User_Name/myCNC/profiles...

Read more about myCNC profiles here: MyCNC profiles

2. Within your current profile folder (for plasma cutting, this is typically X1366P), open the cnc-screen.xml file in your text editor of choice (Pluma by default on Ubuntu MATE).

3. Within the opened file, locate the following block of code:

<gitem where="xp" position="160;0" width="80" height="80" 
image="dxf-open" action="dxf-import" 
tooltip="Import a DXF file" tooltip_ru="Открыть DXF файл" 
type="button" hotkey="F4"></gitem>

Note: The exact block of code may look slightly different (with regards to the position value, etc), with the important part being the dxf-import line.

Replace the section

action="dxf-import"

with

action="dxf2-import"

:

Save the file and close the text editor program.

4. Reload the myCNC software for the changes to take effect.

To switch back to the original DXF Import window, repeat the steps and replace the line back to action=“dxf-import”.

A video showcasing the steps to enable DXF2 Import: