BPJWES / KiCAD_Partslist_editor

MIT License
10 stars 5 forks source link

How to use this tool? #4

Open KarlZeilhofer opened 7 years ago

KarlZeilhofer commented 7 years ago

Hi,

I'm working mainly with KiCad and I have written some tools by myself. See https://github.com/KarlZeilhofer/kicad2csvbom and https://github.com/KarlZeilhofer/KiCadSheetRearranger

I'm very interested in your tool, but I couldn't find out how to use it properly.

Is there any further documentation or a short demo-video available?
I'm using Linux Mint, and ran your tool directly with python3 (I had to install python3-tk, which would be kind if this is mentioned in the help-file).

Here a proposal for help-text:

On linux you have to install python3 and python3-tk with 
sudo apt-get install python3 python3-tk
Then you can run the part list editor with 
python3 SCH_TO_CSV_OOP.py

Kind regards, Karl

BPJWES commented 7 years ago

Hi,

Thanks for your comments and suggestions, I have not had time to work on the tool in the last few weeks.

In the latest commit I have included your installation suggestions for Linux, and updated the help.txt file to include a better description of how the program should be used.

I have not yet had time to make a short demonstration video, but I think it is a good idea. I will work on this in the near-future.

Kind regards,

Berjan

KarlZeilhofer commented 7 years ago

Thanks for your improvements. Now I know, that there is some issue in the python code. It couldn't open my schematics. Have you tested it on linux?

BPJWES commented 7 years ago

Hi,

Could you perhaps tell me what exactly fails, as I am able to run it just fine under Ubuntu 15.10. The schematic file I just tested with was built using KiCad 4.0

Does the python console give a specific error, or does a pop-up appear?

Kind regards,

Berjan

P.S. I did find a few small bugs when testing, which I fixed, but these only occurred when updating the .sch files to include the information added through the .csv file.

KarlZeilhofer commented 7 years ago

As you perhaps saw in my pull request,

https://github.com/KarlZeilhofer/KiCAD_Partslist_editor/pull/1

the path of the files which should be opened (subsheet filenames) was parsed incorrectly. E.g. instead of /home/karl/mykicadproject python stores only / in it's variable to_open

the error which appears sais "Hierarchical schematics could not be found" (line 97)

BPJWES commented 7 years ago

Hi,

I was able to reproduce this issue on Ubuntu 15.10 . (I tested it before on linux without a complex hierarchy).

I could not use your pull request directly as it was not made against my repo, I did implement your fix, which also works fine on windows. Thank you.

Kind regards,

Berjan

KarlZeilhofer commented 7 years ago

Hi, I sent you another PR, hope this works now. If you find anything you don't like on my changes, please feel free to edit them. Greets from Austria