Giter Site home page Giter Site logo

dejan-stankovic / meetup-ad-schematic Goto Github PK

View Code? Open in Web Editor NEW
36.0 10.0 9.0 123 KB

Introduction to reverse engineering design file formats as presented on Hardware Developers Didactic Galactic meetup on October 9th

Java 100.00%
translator ecad

meetup-ad-schematic's Introduction

HARDWARE DIDACTIC GALACTIC MEETUP

October 9th meetup @ SupplyFrame San Francisco office

Reverse Engineering Design File Formats

More details can be found at https://hackaday.io/projects/hacker/185

Compiling and running

Clone repository and then run following to compile the code:

mvn install compile package

or just:

mvn package

This creates a JAR file with all the dependencies so that you can easily run on a command line:

java -jar target/final-altium-schematic-importer-1.0.jar -c <path/to/your/file.SchDoc>

Output looks something like:

Successful!

{
  "RECORD": "31",
  "CUSTOMY": "950",
  "children": [
    {
      "RECORD": "41",
      "NAME": "ConfigurationParameters",
      "TEXT": "*",
      "ISHIDDEN": "T",
      "READONLYSTATE": "1",
      "COLOR": "8388608",
      "OWNERPARTID": "-1",
      "FONTID": "1",
      "UNIQUEID": "QTURANBL"
    },
    {
      "Y3": "220",
      "Y4": "220",
      "X1": "1210",
      "Y1": "340",
      "X2": "1140",
      "RECORD": "6",
      "Y2": "340",
      "X3": "1140",
      "X4": "1210",
      "X5": "1210",
      "Y5": "340",
      "LINEWIDTH": "1",
      "LINESTYLE": "1",
      "OWNERPARTID": "-1",
      "LOCATIONCOUNT": "5",
      "COLOR": "16711680"
    },
    {
      "Y3": "980",
      "Y4": "980",
      "X1": "1240",
      "Y1": "1060",
      "X2": "1180",
      "RECORD": "6",
      "Y2": "1060",
      "X3": "1180",
      "X4": "1240",
      "X5": "1240",
      "Y5": "1060",
      "LINEWIDTH": "1",
      "LINESTYLE": "1",
      "OWNERPARTID": "-1",
      "LOCATIONCOUNT": "5",
      "COLOR": "16711680"
    },
    {
      "Y3": "750",
      "LOCATIONCOUNT": "4",
 .....
}

Alternatively, if you only want to unpack the Compund Document, invoke without -c parameter:

java -jar target/final-altium-schematic-importer-1.0.jar <path/to/your/file.SchDoc>

There is very little error checking (or none, as the case may be), because I wanted to keep the code as simple as possible. If you want to improve, please hack away!

If you use this or have any suggestions please let me know [email protected].

meetup-ad-schematic's People

Contributors

dejan-stankovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.