-
Notifications
You must be signed in to change notification settings - Fork 67
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
[HOW] Is it possible to enable / disable footprints in variants? #574
Comments
I think this is closely related to FR #492 The exact thing you mention looks even more complex, because you want the variant to do it, not just a pre-flight. This isn't the variants objective. The idea of the variants is that you manufacture ONE PCB and then generate various products. But you want to manufacture more than one PCB. In the current workflow this change belongs to a pre-flight. So I think you should wait (and/or push ;-) for #492 That said: you have another option. If you can restrict your changes to just text (avoid trying to change/remove a logo) you can do it using text variables just use @SOME_NAME@ in the PCB and then use a set_text_variables pre-flight to modify it. Again: As this is a pre-flight you'll need to run KiBot one time for each variant, which is the recommended mechanism for anything that isn't trivial. |
Hi @set-soft, thank you. Is it possible to include specific layers from outside in the Gerber files? I placed the variable content on a different layer so I can leave this layer out. |
I'm not sure if I understand your question. You can generate gerbers for any layer, even for documentation layers. The variable to replace should be in the layer you want to generate. In your project the logo and message are in the front silk screen, so you could change the text from "Important"... to @SOME_NAME@ and then use set_text_variables to change it, i.e. using the content of a text file. As you can't remove the rectangle containing the text you could use a different text when you want to "disable" it, just any other stuff that fits in the rectangle |
*var_rename* and *var_rename_kicost* filters can be used to change footprints using variants See #574
Hi @Kampi ! If you want to experiment: the above patch adds a mechanism to change footprints using the variants mechanism. An example of config can be found in var_rename_footprint.kibot.yaml (also var_rename_kicost_footprint.kibot.yaml) The test cases are: var_rename_footprint.kicad_pcb and var_rename_footprint.kicad_sch (also var_rename_kicost_footprint.kicad_pcb and var_rename_kicost_footprint.kicad_sch) |
What do you want to achieve?
I have some text and a logo in my PCB design on a specific layer and I want to enable / disable it in the Gerber files for specific variants.
Do you have some PCB/Schematic to use as example?
Please use this one.
Do you have some configuration file (.kibot.yaml) that you are using?
Environment (please complete the following information):
Where are you running KiBot:
The text was updated successfully, but these errors were encountered: