Comments (7)
What is you command to make the track?
Also, can you please tell why layer dieletric 1
has two thickness value. What does the addsublayer
thing do?
(layer "dielectric 1" (type "prepreg") (thickness 0.037617 locked) (material "106 185HR") (epsilon_r 3.74) (loss_tangent 0.02)
addsublayer (thickness 0.087757 locked) (material "2113 185HR") (epsilon_r 4.02) (loss_tangent 0))
from fcad_pcb.
What is you command to make the track?
import fcad_pcb
from fcad_pcb import kicad
from kicad_parser import KicadPCB
pcb = kicad.KicadFcad(filename)
pcb.setLayer('B.Cu')
pcb.makeZones(shape_type='face',thickness=0.05, fit_arcs=True,holes=True)
pcb.makeTracks(holes=True)
pcb.makePads(shape_type='face',thickness=0.05,holes=True,fit_arcs=True)
or
import fcad_pcb
from fcad_pcb import kicad
from kicad_parser import KicadPCB
pcb = kicad.KicadFcad(filename)
pcb.setLayer('B.Cu')
coppers = pcb.makeCoppers(shape_type='solid', holes=True, fuse=True)
Also, can you please tell why layer
dieletric 1
has two thickness value. What does theaddsublayer
thing do?
that was a setting from a report of a user, which replicated a failing user case in this pcb
Could you please have a look also at #57 (comment)
and here #57 (comment) ?
from fcad_pcb.
@realthunder
I forgot to add the FC version
[code]
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.21.29484 (Git)
Build type: Release
Branch: master
Hash: 4de0e6fb198a60bd09400d64994e7aa8308b1e23
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
[/code]
from fcad_pcb.
The shape making failed because the tricky hole cutting shown below. You can fix it by increasing the arc fitting accuracy like below. The default accuracy (actually tolerance) is 5e-4.
pcb = kicad.KicadFcad(filename, arc_fit_accuracy=1e-4)
from fcad_pcb.
@realthunder
I tried but still in some user case I cannot solve the issue...
then I tried:
- create tracks without holes
- create holes
- extrude holes as solid (I had to convert holes with shape2dview, because hole wires were not co-planar..?)
- make a cut between track faces and solid extrude holes
and I got in some case an issue in the result...
then I tried to change step 4) with a 'fuzzy' cut (available since OCC 7) - make a 'fuzzy' cut between track faces and solid extrude holes
and this is giving me, ATM, always a correct result
https://dev.opencascade.org/doc/occt-7.3.0/overview/html/occt_user_guides__boolean_operations.html#occt_algorithms_11a_1
Do you think it could be possible to add a cut with fuzzy option in fcad_pcb, when cutting holes?
The following results are obtained using Basic Operations and the Fuzzy ones with the fuzzy value 6e-5
from fcad_pcb.
Can you please collect some files where the cut failed? I'd like to dig a bit deeper into those failure cases.
from fcad_pcb.
@realthunder
I'm sorry but I cannot replicate the issue on other boards atm ... I need to dig deeply in my testing board folder...
from fcad_pcb.
Related Issues (20)
- inconsistent shape of via after applying pcb.via_bound=1 HOT 7
- How can I get the full PCB? HOT 1
- Feature request: import pcb stackup information automatically HOT 1
- missing feature: Net Tie as tracks HOT 6
- tracks error with footprint 'gr_poly width' != 0
- fill zone for 'F&B.Cu' layers
- makeZones doesn't find a layer in kicad v5.1 HOT 1
- makePads, makeTracks, makeZones fail if no holes in pcb
- 'kicad - pcb.org' domain compromised. Please update to kicad.org
- kicad v5.99: PCB with a rounded corners HOT 1
- no module named fcad_pcb HOT 7
- sexp parser does not support escaped " HOT 2
- parsing and loading a footprint instead of a board
- Cannot install EasyAlias Realthunder Windows 11 HOT 8
- kicad 6 stackup issue on load tracks HOT 4
- Trouble with minimum width parameter of polygons HOT 7
- Boards created from Gerber files in Gerber Viewer HOT 3
- loading tracks error on LinkBranch and TNP V1 HOT 2
- Error in makeCopper() look like an error creating custom pads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcad_pcb.