Git Product home page Git Product logo

brd2json's Introduction

brd2json

ULP for Eagle and Fusion 360 Electronics which generates a JSON representation of the board.

The primary purpose is to integrate with openscopeproject/InteractiveHtmlBom, as the format of the objects in the generated JSON file is aligned with the internal data structures used in that tool.

Eagle users: Please use the eagle branch

Implementation Status and Limitations

The ULP is mostly feature-complete. Some known limitations:

  • Proportional fonts aren't supported (won't be rendered) - use vector fonts if you want them rendered. An easy solution here is to set the "Always Vector Font" option in the Eagle/Fusion 360 Electronics preferences.

brd2json demo

Usage

  • With your board open in Eagle or Fusion 360, simply run the ULP and the JSON file will be automatically generated

  • Upon completion, a dialog will pop up listing the full path of the generated JSON file, for easy copy-paste. Using Fusion 360 Electronics On Windows 10, it will look something like this:

    C:\Users\<username>\AppData\Local\Temp\Neutron\ElectronFileOutput\<autogenerated gibberish>\<boardname>.json

  • Finally, pass the .json file as an argument to InteractiveHtmlBom. This is the same as the method listed in the wiki for processing an EasyEDA JSON file.

    python generate_interactive_bom.py "<path>\<boardname>.json"

Extra Fields

All attributes of each element are inserted in the JSON file for (optional) use. To display a particular attribute as an additional column in the resulting interactive BOM, use the --extra-fields command-line argument. For instance:

python generate_interactive_bom.py "<path>\<boardname>.json" --extra-fields ASSY will include the attribute "ASSY" as an added column - any elements which lack this attribute will simply be blank.

brd2json's People

Contributors

funkenjaeger avatar connycola avatar crazor avatar

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.