-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Export KiCanvas with schematic like Interative BOM #572
Comments
Interesting! the script is self contained, it has some issues, but looks really promising |
Hi @andersruneson ! Ok, I added some basic support. Some stuff isn't really working (quick-start example and Makefile use are broken). For testing I'm using: # Example KiBot config file
kibot:
version: 1
outputs:
- name: 'KiCanvas'
comment: "Example of KiCanvas export"
type: kicanvas
dir: KiCanvas
options:
source: ['schematic', 'pcb', 'project']
overlay: false
# local_script: false
# source: ['schematic', 'pcb', 'project', 'pp']
# source: pp |
Wow fast, I'll have a try! Thanks. |
Thanks for this - seems to be working well. Only thing missing for me is that only the top level schematic is loaded. |
Hm, I get the following output:
From this config:
The generated html-file renders completely empty in chome, but has the following content which looks decent:
|
Sort of ... looks like you must explicitly list the sub-sheets, but it has various drawbacks, look here: theacodes/kicanvas#77 Should fix the issue mentioned by @bluespider42 in #572
This is just for debug, I was fixing the targets and wanted to list them in a very visible way. Now they are fixed.
Try excluding the project, it doesn't work as expected.
Which browser are you using? For chrome you need something like:
Don't know about other browsers. This is because the Java Script is loading files from the local filesystem using a mechanism that is for the network. This cross reference is forbidden. The last patch solves some problems with sub-sheets, but KiCanvas needs a lot of adjusts on this side. I added an issue to discuss it: theacodes/kicanvas#77 |
I added a Java Script check to inform this problem. And also suggested upstream to add such a check (theacodes/kicanvas#78) I'm closing this issue, bugs in the KiCanvas output should go to new issues. |
It works, well done! Hope kicanvas fixes the issues you reported. |
Is your feature request related to a problem? Please describe.
Well, when exporting gerbers, schematics etc with KiBot it would be nice to also get a stand-alone KiCanvas schematic (https://kicanvas.org/home/) just like the interactive BOM. I'm not sure KiCanvas can be packaged like that so I might need to suggest this to KiCanvas first.
Describe the solution you'd like
Add an output, kicanvas, where the schematic will be distributed with KiCanvas runtime, maybe the files need to be put in a folder, and then a .html-file that opens the KiCanvas in the local browser.
Describe alternatives you've considered
Ah, we can use the schematic pdf, but KiCanvas gives more features of course.
Additional context
The text was updated successfully, but these errors were encountered: