sn4k3 / UVtools

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
GNU Affero General Public License v3.0
1.23k stars 104 forks source link

Possible XLN/DRL conversion error #676

Closed tecchese closed 1 year ago

tecchese commented 1 year ago

System

UVtools v3.12.0 X64
Operative system: Microsoft Windows 10.0.19045 X64
Processor: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Processor cores: 8
Memory RAM: 5.60 / 15.89 GB
Runtime: win10-x64
Framework: .NET 6.0.14
AvaloniaUI: 0.10.18
OpenCV: 4.6.0

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: db9_conn_copy.pwma [Version: 516] [Class: PhotonWorkshopFile]

Printer and Slicer

No response

Description of the bug

PCB Excellon file is not converted (blank image) in PCB exposure tool.

see: drl

GBR is ok:

gbl

Saved excellon and GBR bottom layout, then saved as PDF and converted again in GBR with Gerbview: ok...

pdf

How to reproduce

Please try by yourself, I attached ZIP files Thank you for your support.

Files

test.zip untitled_2023-03-12.zip

sn4k3 commented 1 year ago

Problem is on drill file, it lacks of G05 == turn on drill mode and if drill is off it should not drill at all. If you insert G05 after M71 it will work.

I can latter ignore the requirement of G05 to do the holes

tecchese commented 1 year ago

Yes, if I insert manually G05 after M71 it works but there are still problems (see video). Untitled.zip The method of subtracting the holes by inverting the color for the imported Excellon file is confusing and the preview doesn't help. Also you need to add the XLN extension (used by EagleCAD) for importing Excellon files.

sn4k3 commented 1 year ago

it works but there are still problems (see video).

What is the problem exactly? I run your drl + grl and I got the correct output as your first image of converted pdf to gbr.

Also you need to add the XLN extension (used by EagleCAD) for importing Excellon files.

I will take a look

tecchese commented 1 year ago

The correct procedure to drill a copper layer is:

  1. Add Drill file (Excellon format)
  2. Add a Top (or Bottom) Copper Layer file in Gerber format
  3. Activate "Create one layer per gerber file" ====>> "Draw all gerber files into same layer"
  4. Click "PCB exposure"

BUT: if I activate "Invert Color" before clicking "PCB Exposure", all layers are color inverted. This could cause confusion because, for example, the Soldermask layer shouldn't be inverted in color. It might be wiser to select which layer can be inverted individually, not for all. I hope it is clear.

Thank you for the excellent support

sn4k3 commented 1 year ago

It might be wiser to select which layer can be inverted individually, not for all.

You can, there is a check box for inverting individual gerbers, does that work for you?

image

sn4k3 commented 1 year ago

Result of no inverting:

image

Result of inverting only one gerber: image image

tecchese commented 1 year ago

For me it does not work... I get no result when I click on the checkbox indicated by the red arrow... this is the question... In addition if I select a layer the size scale data disappears uvtest Also on the top you can notice the description partially cut.

sn4k3 commented 1 year ago

For the individual invert to work, order does matter as it only inverts drawings instead of whole layer, that means where's white, black will be drawn instead, so order whites in first place is important.

In addition if I select a layer the size scale data disappears

Looks like a UI problem, you are using the normal theme right? Can you set back to the Fluent theme?

tecchese commented 1 year ago

When I changed theme I get this: crashra

sn4k3 commented 1 year ago

Yes you need to restart UVtools. If unable to change and save you need to go to settings file and change there or remove the theme key

tecchese commented 1 year ago

Ok, I selected the default Fluent Theme and everything seems to work...but it isn't true unfortunately... see this pic: pvbuvtools

All the invert level checkboxes (except drill level) on the right always stay active when I checked them repeatedly and there is no way to go back (i.e. to uncheck them)... very strange behaviour.

Thanks for the awesome support and patience.

sn4k3 commented 1 year ago

All the invert level checkboxes (except drill level) on the right always stay active when I checked them repeatedly and there is no way to go back (i.e. to uncheck them)... very strange behaviour.

I know about that, It's already fixed on main dev

sn4k3 commented 1 year ago

Fixed