Skip to content
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] Copy files from the project directory to the output directory #279

Closed
mdeweerd opened this issue Sep 4, 2022 · 9 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@mdeweerd
Copy link

mdeweerd commented Sep 4, 2022

Goal: add information to the output directories/packages to make them part of a delivery.

I did not find an option to add (copy) files from the project directory to a target directory. For instance, I want to add some LCD svgs and private datasheets to the output directory.

Alternatives: #109

@mdeweerd mdeweerd added the enhancement New feature or request label Sep 4, 2022
@set-soft
Copy link
Member

set-soft commented Sep 5, 2022

Currently you can do it only for the compress output.
Adding a copy output isn't bad idea, but will be very low priority.

@set-soft
Copy link
Member

Hi @mdeweerd !
Is barely tested, but should do the work.

@mdeweerd
Copy link
Author

Excellent ;-). It will be useful and I will add it to my setup so I'll let you know!
(I'll also add the variant comparison and let you know about that).

@set-soft
Copy link
Member

@mdeweerd , I'm changing the syntax of this output to allow more uses.

@mdeweerd
Copy link
Author

mdeweerd commented Sep 19, 2022

Thanks for informing, I haven't updated my configuration yet to test use this, so I'll wait a bit.

@set-soft
Copy link
Member

set-soft commented Sep 20, 2022

@mdeweerd I finished the syntax change.
Now you can also export the 3D models, as a plus you can get a PCB modified to use the exported 3D models. The directories layout doesn't allow full customization, and some paths could fail, but I think is a good start for the feature we discussed some time ago.

A small change remains, but doesn't affect the syntax (I must add ${KIPRJMOD} to the relative paths, to avoid issues)

@mdeweerd
Copy link
Author

I hope that you documented that use case - I did not check it yet, but I wonder if this is for a 3D of the kicad_pcb file when it is copied, or if that means that the step (can) somehow refers to external 3D models. I remember the feature that we discussed regarding the customisation of which 3D models to use, but not one where copying the 3D model themselves is useful, but it certainly would be usefull for a proper "backup"/"archive". Exporting the PCB itself as a component/3DModel has been handy at one point where one PCB designed in KiCAD was a board soldered on another design.

@set-soft
Copy link
Member

I hope that you documented that use case

Yeap, I pushed the doc changes today, after adding the ${KIPRJMOD} fix

  • I did not check it yet, but I wonder if this is for a 3D of the kicad_pcb file when it is copied, or if that means that the step (can) somehow refers to external 3D models.

This is for the PCB copy, and when you explicitly ask for it.

I remember the feature that we discussed regarding the customisation of which 3D models to use, but not one where copying the 3D model themselves is useful, but it certainly would be usefull for a proper "backup"/"archive". Exporting the PCB itself as a component/3DModel has been handy at one point where one PCB designed in KiCAD was a board soldered on another design.

It can also be used to make a PCB self contained. We always work in this way because we give all the design files to our clients, so we must be sure they can edit the PCB without missing libs and/or 3D models.

@set-soft
Copy link
Member

set-soft commented Sep 21, 2022

@mdeweerd, I think this option can do what you mentioned in openscopeproject/InteractiveHtmlBom#278 Maybe another job for KiBot: verify that all the models are in the project - copy them in and adjust the project if not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants