|
|
||
|---|---|---|
| .. | ||
| README.md | ||
README.md
KiBOM variants
This is an analysis and test of the variants implementation of KiBOM
What goes inside the SCH
- The variants are implemented using the
Configfield (the name can be configured). - By default a component is included in all variants.
- You can exclude a component from one variant adding
-VARIANT_NAMEto theConfig.- If you want to exclude this component from more than one variant just add more
-VARIANT_NAMEentries. Comma separated.
- If you want to exclude this component from more than one variant just add more
- If a component will be included only in one variant you can use
+VARIANT_NAME.- Again you can add more than one
+VARIANT_NAMEentry. So the component will be included only if generating one of the selected variants.
- Again you can add more than one
What goes outside the SCH
- When you generate the BoM you can select one or more variants, again comma separated.
- The
-VARIANT_NAMEand+VARIANT_NAMEis tested using a list of all the indicated variants. - By default the list of variants is ['default']. So default is like a special variant.
Where is in the code?
The Component.isFitted() method implements the functionality.
Conclusion
Advantages
- Almost all the information is inside the project.
- You have "exclude from" and "include only" options.
Disadvantages
- The
Configfield could become large.