svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
681 stars 176 forks source link

Increase the sorting number display, and mark the processing direction #132

Closed lianzaozi closed 4 years ago

lianzaozi commented 4 years ago

The dxf2gcode software will add a sorting digital display for each track, and mark the processing direction. I think it is very good. Will future versions of the plotter software add types of functions? If you want to add, you can make the numbers indicating the sorting order and the arrows indicating the processing direction optional, so that the user can decide whether to show or hide.

The screenshot below is the display mode in dxf2gcode image3

lianzaozi commented 4 years ago

The number displayed by dxf2gcode is in front of the layer, followed by the order of the primitives in the layer.

The image below is a screenshot of a dxf file with 4 layers. image5

Dxf file for testing shape.zip

svenhb commented 4 years ago

Check new release for simple display of path direction and id in pen-up path

lianzaozi commented 4 years ago

Some errors occurred in the software of version V1.5.0.2. I used the software of version V1.5.0.2 to open the test2.zip file and the dxf file obtained after decompression had an error. The traces of some primitives were not displayed. Use version V1 .5.0.1 software does not have this problem

The screenshot image1 below is a screenshot of the software version V1.5.0.2 image1

image2 is a screenshot of the software version V1.5.0.1 image2

test dxf file test2.zip

svenhb commented 4 years ago

There was a bug in the implementation of #132 Please check new release

lianzaozi commented 4 years ago

The software version V1.5.0.3 fixed the problem that some geometric primitives in the software version V1.5.0.3 could not be displayed.

Now I have another question, that is, the arrow of the first point is not displayed. Is this due to other reasons? Image1

Suggestion: Is it possible to make "show/hide arrows" and "show/hide numbers" and "show/hide idling tracks" into three options in the setting page The user chooses which option to enable, and the corresponding item is displayed in the track display interface.

If the user enables "Show/Hide Arrows" and "Show/Hide Numbers" and "Show/Hide Idle Tracks" in the settings, the software interface will display idling track + arrow + direction, switch the space bar on the keyboard At the same time show and hide the idling track + arrow + direction.

If the user disables the "Show/Hide Arrows" and "Disable Show/Hide Numbers" functions in the settings and enable the "Show Idle Track" function at the same time, the software interface displays the Idle Track, and it displays and hides the Idle Track when switching the space bar .

This will be very convenient for different users. Because when there are many geometric primitives, the idling track + arrow + direction are displayed at the same time, the software display interface will be messy. However, sometimes arrows and numbers are convenient for users to judge the trajectory sorting results and processing direction.

lianzaozi commented 4 years ago

The reason why the arrow and number are not displayed on the first processing track is because the starting point and origin of the first processing track coincide?

svenhb commented 4 years ago

Strange, with all graphics I tested, the first number and arrow will be displayed... I tried with/without offset, or sorting...

lianzaozi commented 4 years ago

This is the dxf file I used for testing test.zip

svenhb commented 4 years ago

First figure starts and ends on position 0;0 - hard to see: image

lianzaozi commented 4 years ago

You are right, the first number can be displayed, but the first arrow is not.

lianzaozi commented 4 years ago

Hi svenhb I found some patterns

  1. The plotter software reads the svg file and can display the first number and arrow, but the plotter software reads the dxf file can display the first number but not the first arrow.

  2. When the svg file and dxf file is read for different times, the arrow and the number can sometimes be displayed correctly, and sometimes the two numbers 1 and the arrow are displayed.

3.Two arrows are displayed in the gif below. Could it be one arrow representing the starting point and the other representing the end point? If it is an arrow representing the start point and the other representing the end point, then the two arrows should not touch each other. As you can see in the gif, when two arrows are displayed, their positions are in contact. But sometimes it is two arrows, sometimes it is another. The number 1 sometimes appears twice, sometimes only once.

The software version I tested is v1.5.0.3 The following are the files used for testing H.zip

line.zip

gif10 is the screen record of reading the same svg file multiple times.

gif10

gif11 is the screen record of reading the same dxf file multiple times.

gif11

Test dxf file ellipse1.zip

The first arrow is not displayed image1 Test file 2013.zip

svenhb commented 4 years ago

Can be switched in Setup: image

lianzaozi commented 4 years ago

Thank you I am going to test it

lianzaozi commented 4 years ago

The Gong that shows and hides arrows and numbers is very easy to use. thank you