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

[HOW]Integration of the variants: file_id: in User parameter and Ibom Titel #470

Closed
MarkusSBS opened this issue Jul 24, 2023 · 3 comments
Closed
Assignees
Labels
question This is just a question, not a problem

Comments

@MarkusSBS
Copy link

MarkusSBS commented Jul 24, 2023

Hello

Is it possible to integrade the content of the file_id into a user parameter for a variant.?

This would be usefull for a print on the PCB. The expansion of %v in file name works as expected.

and is it possible to include the variant into the Ibom title header?

@MarkusSBS MarkusSBS added the question This is just a question, not a problem label Jul 24, 2023
@set-soft
Copy link
Member

Hallo @MarkusSBS !

Is it possible to integrade the content of the file_id into a user parameter for a variant.?

This would be usefull for a print on the PCB. The expansion of %v in file name works as expected.

Not sure if I understand what you want: Do you want to expand %v in a text found in the PCB? (i.e. a silk screen text)
If you are using a global variant (i.e passing it from the command line) you can try defining a text variable (set_text_variables preflight) that contains "%v". It will define a text variable that will be stored in the project file. So then KiCad will be able to access this information.

and is it possible to include the variant into the Ibom title header?

Do you mean the displayed top left name? I'm afraid this is the name of the KiCad project, not something we really control in a direct way. But it could be implemented because we use a copy of the project, so we could use a different name.

If this is what you want please open a feature request asking to allow specifying the project name used for a variant in the iBoM output.

@MarkusSBS
Copy link
Author

Not sure if I understand what you want: Do you want to expand %v in a text found in the PCB? (i.e. a silk screen text)
If you are using a global variant (i.e passing it from the command line) you can try defining a text variable (set_text_variables preflight) that contains "%v". It will define a text variable that will be stored in the project file. So then KiCad will be able to access this information.

thats what i want i was not aware that the %v works with every text not just the file name expansion

Do you mean the displayed top left name? I'm afraid this is the name of the KiCad project, not something we really control in a direct way. But it could be implemented because we use a copy of the project, so we could use a different name.

Yes i want to change the top left name to identify the version. like Fancyprojekt, WithoutUSB

set-soft added a commit that referenced this issue Jul 31, 2023
- To force the name displayed at the top left corner

Closes #470
@set-soft
Copy link
Member

Hallo @MarkusSBS !
Try the above patch. Use something like forced_name: '%f, %V'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is just a question, not a problem
Projects
None yet
Development

No branches or pull requests

2 participants