Skip to content

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

Notifications You must be signed in to change notification settings

dejan-stankovic/meetup-ad-schematic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 dstanko.au@gmail.com.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages