GithubHelp home page GithubHelp logo

Comments (11)

thesourcerer8 avatar thesourcerer8 commented on July 30, 2024

You have to unpack the .schdoc and .pcbdoc files with the "unpack.pl" first, it will give you the FileHeader.dat and the Root Entry directory. Those are inside the .SchDoc and .PcbDoc files.
On the startpage (https://github.com/thesourcerer8/altium2kicad) I wrote:
"To convert your Altium project to KiCad:
Go to the directory with your .PcbDoc and .SchDoc files and run:
unpack.pl (it unpacks the .PcbDoc and .SchDoc files into subdirectores)"
Is that not clear enough? Do you have any ideas how I could improve those instructions? Should I add some warnings to the convertpcb.pl and convertschema.pl that you have to run unpack.pl first if they don't find anything? Or should they do it automatically?
In case this does not work for you, can you send me your files? I will take a look at Webench and try to make sure the files they generate import properly.

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

Sorry, thought I did that... Let me try again.

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

~/Altium/2017-03-02_19-43-15$unpack.pl
Done.
~/Altium/2017-03-02_19-43-15$ll
total 760
-rw-rw-r-- 1 rhowlett rhowlett 31200 Aug 2 2013 UL_Import.PrjScr
-rw-rw-r-- 1 rhowlett rhowlett 263 Aug 2 2013 UL_Form.pas
-rw-rw-r-- 1 rhowlett rhowlett 983 Aug 2 2013 UL_Form.dfm
-rw-rw-r-- 1 rhowlett rhowlett 36096 Jan 29 2016 UL_Import.pas
-rw-rw-r-- 1 rhowlett rhowlett 3296 Apr 1 2016 readme.txt
-rw-rw-r-- 1 rhowlett rhowlett 37412 Mar 2 19:43 2017-03-02_19-43-15.txt
-rw-rw-r-- 1 rhowlett rhowlett 757 Mar 2 19:43 2017-03-02_19-43-15.prjdoc
-rw-rw-r-- 1 rhowlett rhowlett 77725 Mar 2 19:43 2017-03-02_19-43-151.schdoc
-rw-rw-r-- 1 rhowlett rhowlett 50280 Mar 2 19:43 0603.stp
-rw-rw-r-- 1 rhowlett rhowlett 404924 Mar 2 19:43 DR74.stp
-rw-rw-r-- 1 rhowlett rhowlett 50372 Mar 2 19:43 0402.stp
drwxrwxr-x 2 rhowlett rhowlett 4096 Mar 2 20:56 .
drwxrwxr-x 4 rhowlett rhowlett 4096 Mar 2 21:32 ..
~/Altium/2017-03-02_19-43-15$

No new directory(s)...?

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

ok, looked at the script.. need to give it an argument (that could be clearer). So now I get a directory, but it is empty. Looking at the unpack.pl script now:)

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

so, I started to see a bunch of unpack functions and then a line with:
next unless($revision==62); # We might stumble across other ASCII files that way
So, I looked at the file and who would have guessed, its an ASCII file! Oh well... actually looks like I could write a script for this. Do you know if anyone is tackling this? Its a:
|HEADER=Protel for Windows - Schematic Capture Ascii File Version 5.0

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

Well I'm on my way!
https://github.com/vadmium/python-altium/blob/master/format.md

from altium2kicad.

thesourcerer8 avatar thesourcerer8 commented on July 30, 2024

Oh, that seems to be Schema in the old Protel 5.0 format. I only ever found one example of it, but I didn't tried to support it yet, since I believed it's too old that there will be much demand for it.
Ok, for this you definitely do not need the unpack.pl, which is only for the newer Altium Designer formats, but the old format isn't packed.
I created a modified version of the convertschema.pl (the new protel branch) now which parses the file directly, but it somehow does not convert it correctly, and I don't see why at the moment.
To work, you have to create a 2 subdirectories "A" and "A/Root Entry" and copy the *.SchDoc into a file named "A/Root\ Entry/FileHeader.dat" (I'll change it to parse them directly, without the subdirectories in the future).
I don't have an idea why it does not parse correctly.
Yes, vadmium documented the schematic file-format.

from altium2kicad.

rhowlett avatar rhowlett commented on July 30, 2024

cool!

from altium2kicad.

thesourcerer8 avatar thesourcerer8 commented on July 30, 2024

Did it work for you? Do you need any further improvements? Should I merge it into the official altium2kicad branch?

from altium2kicad.

cezarsantanna-zz avatar cezarsantanna-zz commented on July 30, 2024

I tried to use the Protel branch, but all the symbols are all together in one point, all the wires stay on the original position, the same with text, only the symbols are wrong!

from altium2kicad.

thesourcerer8 avatar thesourcerer8 commented on July 30, 2024

I have merged the Protel branch back into the master branch, and improved the parsing of the Webench generated files.

from altium2kicad.

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.