User Tools

Site Tools


quickstart:mycnc-quick-start:dxf-import

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
quickstart:mycnc-quick-start:dxf-import [2019/07/05 13:54] ivanquickstart:mycnc-quick-start:dxf-import [2024/02/01 16:36] (current) ivan
Line 1: Line 1:
 =====Importing DXF files into myCNC===== =====Importing DXF files into myCNC=====
  
-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: 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: {{youtube>nVJqMyc6_uE?large}} 
 + 
 +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 [[https://youtu.be/TE0sd5bI9vA?t=320|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): 
 + 
 +{{youtube>TE0sd5bI9vA?large}} 
 + 
 +====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: Upon pressing the **Open DXF** file and navigating to the particular file you would like to open, the following window is shown:
Line 31: Line 41:
   * Knife-45   * Knife-45
   * Marking   * Marking
 +  * S-knife
 +  * V-knife
  
 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.  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. 
Line 68: Line 80:
  
 ===Plasma/Gas=== ===Plasma/Gas===
 +
 +**NOTE**: The DXF import functionality performs best on simple contours, and is limited in scope for plasma and gas cutting applications. 
 +
   * **Mode**: Select between Line, Arc, and Tangent   * **Mode**: Select between Line, Arc, and Tangent
   * **Line length**: Specifies the line length   * **Line length**: Specifies the line length
Line 99: Line 114:
   * **Footer**: Inserts macros at the end of the generated G-code   * **Footer**: Inserts macros at the end of the generated G-code
  
-===Knife-45===+===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.  
   * **Tool lift**: Specifies the height by which the 45-degree knife will be lifted as it travels between parts   * **Tool lift**: Specifies the height by which the 45-degree knife will be lifted as it travels between parts
   * **Material thickness**: Specifies the material thickness in mm   * **Material thickness**: Specifies the material thickness in mm
Line 107: Line 127:
   * **Feed Z**: Specifies the speed with which the 45-degree knife moves in the Z plane (lift/descend)   * **Feed Z**: Specifies the speed with which the 45-degree knife moves in the Z plane (lift/descend)
   * **Working height**: Usually left at 0.   * **Working height**: Usually left at 0.
 +
 +V-knife also has the direction of cut functionality for its contours:
 +
 +{{:quickstart:mycnc-quick-start:dxf-import-008-v-knife.png}}
 +
 +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:
 +
 +{{:quickstart:mycnc-quick-start:dxf-import-v-cut.png}}
 +
 +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==== ====DXF File settings====
Line 116: Line 166:
   * **Direction** toggle   * **Direction** toggle
   * **Double-pass** toggle   * **Double-pass** toggle
 +
 +
 +=== 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: 
 +
 +{{:quickstart:mycnc-quick-start:dxf-import-012-colours-config.png}}
 +
 +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:
 +
 +{{:quickstart:mycnc-quick-start:dxf-import-011-colours.png}}
 +
 +//(NOTE: The above screenshot also features the laser cutting DXF import mode: [[mycnc:laser_cutting|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: 
 +
 +{{:mycnc:config-002-dxf-toolpath-optim.png}}
 +
 +====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):
 +{{:quickstart:mycnc-quick-start:dxf-import-example-001.png}}
 +
 +2) A tab with plasma cutting settings should appear in the DXF import window, fill in the parameters such as feed and lead-in: 
 +{{:quickstart:mycnc-quick-start:dxf-import-example-004.png}}
 +
 +3) Assign the layer in which your part is drawn to the Plasma tool M71 / M74. Check the Enable checkbox for this layer:
 +{{:quickstart:mycnc-quick-start:dxf-import-example-005.png}}
  
 ====Visualization==== ====Visualization====
Line 127: Line 209:
 For a full description of the DXF settings configuration dialogue, please consult the [[mycnc:mycnc_configuration_dialogs#dxf_import_settings|myCNC Configuration Dialogues page]]. For a full description of the DXF settings configuration dialogue, please consult the [[mycnc:mycnc_configuration_dialogs#dxf_import_settings|myCNC Configuration Dialogues page]].
  
 +====Segment Merge Tolerance====
 +
 +{{:quickstart:mycnc-quick-start:dxf2-import-001-general.png}}
 +
 +//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.
 +{{:quickstart:mycnc-quick-start:dxf-import-010-segment-merge-tolerance-2.png}}
 +
 +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)====
 +
 +{{:quickstart:mycnc-quick-start:dxf2-import-001-general.png}}
 +
 +The UI and functionalty overhaul for DXF import is available as of the late 2023. The highlights are as follows:
 +
 +  * For closed contours, a correction for the width of the cut (kerf) can now be considered - internal cutouts and external parts are taken into account
 +    * For open contours, the system still follows a given toolpath
 +  * Lead-in/lead-out editing, size, position and type of lead-in/lead-out adjustiments
 +  * Ability to freely move, scale, mirror and rotate imported DXF file(s) in the CAM editor
 +  * Cut Sequence functionality, allowing to change the cutting sequence for the imported files
 +  * Ability to save/load existing CAM projects within the DXF Import window.
 +
 +The video below showcases the functionality of DXF2-Import in more detail:
 +
 +{{youtube>xc10ZxAtnYQ?}}
 +
 +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  
 +
 +<code>/home/user_name/.config/myCNC/profiles...</code>
 +
 +On Windows, this folder will be located in
 +
 +<code>C:/Users/User_Name/myCNC/profiles...</code>
 +
 +{{:quickstart:mycnc-quick-start:dxf2-import-002-profiles.png}}
 +
 +Read more about myCNC profiles here: [[mycnc:mycnc_profiles|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:
 +
 +<code XML><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></code>
 +
 +//**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
 +
 +<code XML>action="dxf-import"</code>
 +
 +with 
 +
 +<code XML>action="dxf2-import"</code>:
 +
 +{{:quickstart:mycnc-quick-start:dxf2-import-003-cnc-screen-xml.png}}
 +
 +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:
 +
 +{{youtube>omUNSnmTYPg?}}
quickstart/mycnc-quick-start/dxf-import.1562349270.txt.gz · Last modified: 2019/07/05 13:54 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki