[Solved] PCB with inner shape: very cumbersome to design!

See Post-v7 new features and development news - #37 by dsa-t

1 Like

nice system! this will help enormously.
I don’t know why I can’t comment there, so I do it here.
However how is it managed an overlapping like in this case?
I just drawn it very exaggerated to make it clear what I mean.
image

If the specified tolerance is greater than the distance between the end points, then it joins lines at intersection, otherwise it does nothing:

image

image

1 Like

Here an “attention to detail”.
By importing this DXF into PCBNew and starting DRC to find out not coincident stuff, KiCAD crashes, and quite dramatically.
So what does it serve if goes everything to hell? :-/
PCB - Distributor.dxf (12.4 KB)

So what does it serve if goes everything to hell?

The everything is a big (and not funny) exaggeration. You have one situation with a bug/crash. OTOH the DRC worked fine with all my imported dxf-drawings. So in principle the proposed workflow (import dxf to edge.cuts, then run DRC to spot the unconnected line-segments) is working.

Regarding your example: a crash is always a serious issue and this should be investigated further. Unfortunately I couldn’t reproduce your crash, the “pcb-distributor.dxf” imported fine, the DRC was running and reported some “malformed board outline” errors, no crash. (used kicad version: v7.08-testing, on WIn10).
The next step is a real bugreport from you (on gitlab), or at least:

  • the exact kicad version information, incuding used OS
  • a zipped project archive, where the dxf is already imported and the DRC produces a reliable crash

the everything is related my project of course and it’s not an exaggeration if applied as it should: to my project.

My version is the 7.0.8 and Os is Win 11 Pro (I uploaded the details in one of my previous comments.

It seems you have identical version but in your case it doesn’t crash
ORTF-3D - Distributor.zip (11.3 KB)
Here the project. Please verify it does/doesn’t crash on your system

2 Likes

yes, crash. I will open a gitlab issue.

3 Likes

I thought to have found the culprit but it wasn’t. Once I deleted the diagonal lines and the horizontal segment, and started DRC: it crashed. Instead when I DRCed without touching any line, it worked

Note: I tried also on 7.99 version.

here the result …
image

The culprit are the circles. All circles are doubled - two identical circles on top of each other. This is already the case in the original dxf-file.
If you delete every duplicated circle then the DRC runs fine.

2 Likes

This, being my last contribution to an ever-growing post/topic…

Attention (IMHO) includes knowing how to use Kicad’s Tools and messages to help understand and solve (some problems).

I imported your Distributor dxf and Hovered over it - a message pops up asking to clarify which object to select. This happens if there is more than One Item… Thus, a a helpful ‘Clue’

1 Like

A repeatable crash is good to report, hopefully fixed soon

there is also the overflow in importing from inches

1 Like

there is also the overflow in importing from inches

This is a principle problem with the size of that dxf-drawing. (I played with “Sheet Metal2.dxf” from answer 30).
If you interpret the values as inch the dxf-drawing is simply too big for the standard kicad canvas.

1 Like

Question for experts: how can I import dwg? the problem is that every dxf converter converts differently with different errors… is there a simple way to do this with the least errors?

dwg is a proprietary Autodesk’s format, so you’ll need to open it with a program that has paid for the license to open dwg files.

dwg is a closed source format…
there is an open source lib to parse it, used i.e. by LibreCAD since 2011, but more errors can be expected compared to dxf analysis.

Yeah there is no replacement for DXF despite its issues. But hey if it was good in 1982, but is it best possible thing 41 years later?

Maybe you could use a 2D step file but that a serious pain in the ass to implement.

1 Like

it is enough to organize the main number of 2d formats, then there will be a choice and bypass… at the moment it is only dxf, which does not work well with complex forms… there is no dwg even through the converter…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.