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
699 stars 176 forks source link

Improve the left-click to select other geometric primitives #140

Closed lianzaozi closed 3 years ago

lianzaozi commented 4 years ago

Thanks for your hard work

Now the plotter software has an inconvenient use, that is, when I select certain geometric primitives by left-clicking in the track display area, I often select other geometric primitives near this geometric primitive. But left-click on other geometric primitives can sometimes be accurately selected. This problem exists in every version of plotter software.

Test dxf file 2007.zip

The circles and lines selected in the blue frame in the screenshot, I left-click on them, and the graphics near them are selected. When I zoomed in and displayed the track display area and left click on them, sometimes I could select them again. image1

The small cross mark in the gif animation that demonstrates the operation process is the position of my mouse. When I left click the mouse, the cross mark will have a highlighted yellow circle, by looking at whether there is a yellow circle at the cross mark Can tell if I pressed the mouse button. gif1

svenhb commented 4 years ago

Yes, I know. Up to know I just look for known coordinates near by, which are known from G-Code. To find a line when clicking in the middle of it, I need to interpolate all possible coordinates inbetween...

lianzaozi commented 4 years ago

Thank you for your reply.

svenhb commented 3 years ago

Check new release for improovement: https://github.com/svenhb/GRBL-Plotter/releases

lslouka commented 3 years ago

Hello. I have a problem with compile firmware for ATMEGA 2560. When I connect atmega, I read only Missing 11 Real-time Status Reports per 10 seconds. If I use your hex file grbl-Mega-5X-v1.1l.20190605.hex all is working fine. Can you please send me a GRBL code for arduino IDE from which was generate this hex file? I must set some settings for my machine. My e-mail adress is: ace1x@centrum.cz

svenhb commented 3 years ago

Hello, as I remember I took the hex file directly from here: https://github.com/fra589/grbl-Mega-5X/releases. But I'm not sure, so need to look on my computer.

lianzaozi commented 3 years ago

When the software of V1.6.0.1 selects a straight line, other straight lines are also selected, and when an ellipse is selected, the elliptical arc will also be selected.

lianzaozi commented 3 years ago

11111 222222 123456789 2007_test_dxf.zip

svenhb commented 3 years ago

Because the lines are placed in same figure (the two arcs also). Will fix this

lianzaozi commented 3 years ago

The software of V1.6.0.2 cannot open the dxf file. The dxf file "2007_test_dxf.zip" used in the test has been uploaded. 111111

22222

svenhb commented 3 years ago

I updated the setup in the 1.6.0.2 release

lianzaozi commented 3 years ago

What do I need to set up to read DXF files properly

svenhb commented 3 years ago

What do I need to set up to read DXF files properly

What do you mean?

lianzaozi commented 3 years ago

我需要设置什么才能正确读取 DXF 文件

你的意思是?

The latest version of the software can not load the DXF file, what can I do?

svenhb commented 3 years ago

1.6.0.3 can : https://github.com/svenhb/GRBL-Plotter/releases/download/v1.6.0.2/GRBL-Plotter_1603_release.zip

lianzaozi commented 3 years ago

hello

How to set slotting compensation in plotter software? If I cut the size of 100100, in the laser cutting process, the laser will burn some of the material, resulting in the cut out of the size of less than 100100

svenhb commented 3 years ago

Try cutter radius compensation, use + or - radius for inner or outer contour: Grey background path shows original path, before radius compensation. Result depends on figure path direction: clockwise or counter-clockwise. image

lianzaozi commented 3 years ago

Thank you for your answer. If I want to cut a circle, both inside and outside of it need to be compensated. Is there any way to do that?

lianzaozi commented 3 years ago

Cut concentric rings

svenhb commented 3 years ago

Perhaps,

I would create both cuts in LibreCad via Polyline - Equidistance polyline image

lianzaozi commented 3 years ago

Thank you for your answer. I don't quite understand. Does it have to be cut twice? Can it be solved once and for all? If there are too many concentric rings to cut, then the procedure is a little cumbersome

svenhb commented 3 years ago

Perhaps I don't understand your needs: I though you want to cut a circle inside and outside the shape - for me the result is a ring.

lianzaozi commented 3 years ago

yes

lianzaozi commented 3 years ago

The effect of clicking the left button to select primitives has been improved a lot, which is very good. I will conduct more tests. The software version I use for testing is V1.6.0.5.

lianzaozi commented 3 years ago

An error is reported when the software of the applicable version V1.6.0.5 opens the ".nc" file, which is automatically generated by the plotter software reading the dxf file.

nc file 2007test - 1.zip

dxf file

2007_test - 1dxf.zip

lianzaozi commented 3 years ago

123

svenhb commented 3 years ago

I updated the setup to 1.6.0.6 https://github.com/svenhb/GRBL-Plotter/releases/download/v1.6.0.5/GRBL-Plotter_Setup.exe

svenhb commented 3 years ago

Also update of changed files: GCodeVisuAndTransform.cs, MainFormLoadFile.cs

svenhb commented 3 years ago

I think it's solved and works