Coder Social home page Coder Social logo

Comments (6)

easyw avatar easyw commented on May 20, 2024

@realthunder
thanks for your support.

'NetTie-minimal-test.zip' works with your commit 14e9bf5
but it seems this one 0b19965 is breaking the functionality
11:53:43 Traceback (most recent call last): File "C:/Cad/Prj_K/3D-FreeCad-tools/fcad_pcb-test-3.py", line 73, in <module> pcb.make(copper_thickness=0.035, load_parts=True, board_thickness=1.53, combo=False, fuseCoppers=True ) File "d:fcad_pcb\kicad.py", line 2183, in make objs.append(self.makeBoard(prefix=None,thickness=board_thickness)) File "d:fcad_pcb\kicad.py", line 1256, in makeBoard thickness = layers[0][1] <class 'TypeError'>: 'float' object is not subscriptable

Moreover 'NetTie-minimal-test-2.zip' in my tests is not working also with the previous patch
12:06:58 Traceback (most recent call last): File "C:/Cad/Prj_K/3D-FreeCad-tools/fcad_pcb-test-3.py", line 73, in <module> pcb.make(copper_thickness=0.035, load_parts=True, board_thickness=1.53, combo=False, fuseCoppers=True ) File "d:fcad_pcb\kicad.py", line 2040, in make coppers = self.makeCoppers(shape_type='solid',holes=True,prefix=None, File "d:fcad_pcb\kicad.py", line 1875, in makeCoppers copper = self.makeCopper(shape_type,t,fit_arcs=fit_arcs, File "d:fcad_pcb\kicad.py", line 1793, in makeCopper obj = getattr(self,'make{}'.format(name))(fit_arcs=sub_fit_arcs, File "d:fcad_pcb\kicad.py", line 1481, in makePads self._makeShape(m, 'fp', pads) File "d:fcad_pcb\kicad.py", line 1072, in _makeShape wires.append(self._makeWires( File "d:fcad_pcb\kicad.py", line 883, in _makeWires return self._makeArea(obj,name,offset=offset,fill=fill, File "d:fcad_pcb\kicad.py", line 855, in _makeArea ret = ret.getShape() <class 'ValueError'>: {'sclassname': 'class Base::ValueError', 'sErrMsg': 'shapes are not planar', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'shapes are not planar', 'btranslatable': False, 'breported': False}

from fcad_pcb.

realthunder avatar realthunder commented on May 20, 2024

Fixed. Please try.

from fcad_pcb.

realthunder avatar realthunder commented on May 20, 2024

BTW, I have added support for board stackup. So, if you do not specify board_thickness when calling make() for your sample file you'll find the board consisting of three dielectric layers.

from fcad_pcb.

easyw avatar easyw commented on May 20, 2024

@realthunder

Fixed. Please try.

thanks a lot...
I 'm noticing two small issues:

  1. when specifying a board_thickness it seems the tracks go to the wrong layer: bot instead of top
  2. with 'NetTie-minimal-test-2.zip' I get a wrong width for the fp_line track (3mm instead of 1mm)

from fcad_pcb.

kicadstepup avatar kicadstepup commented on May 20, 2024

@realthunder
many thanks!

from fcad_pcb.

easyw avatar easyw commented on May 20, 2024

@realthunder
I'm still getting a small issue...
with the attached board, everything is fine if I give the board_thickness, but there is an issue if I don't specify this parameter
coupler-rf.zip

image

from fcad_pcb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.