Comments (4)
The (soon to be released) version 0.2.0 will be able to do this.
You can download/clone the current main branch and run the release.sh
in the source folder to create release files and test the current implementation. The code is more or less complete, it's just the documentation that still needs work.
See #62 for installation hints.
If you're interested in a (more or less official) pre-release, then I can generate one here on GitHub.
Pay attention to read the matching version of the documentation. The main branch is still for 0.1.x releases. When testing the 0.2.0 code, you'd need to read the documentation on the dedicated 0.2.0 documentation branch.
It includes a migration guide that should explain the most important changes vs. versions 0.1.x.
For a quick start, I adapted your example to use the correct syntax below.
KiVar 0.2.0+ allows two formats. One lists the choice names in the field content (right) side (very similar to the "classic" format of version 0.1.x). The other format can be used for long strings (such as datasheet URLs) and lists the choice names in the field name (left) side.
If you'd like to use the short (classic) format, try this:
Field Name | Field Content |
---|---|
Var |
Test1(3k) Test2(1k) TestAspect |
MPN.Var |
Test1(xxcvcx) Test2(yyyxy) |
SPECS.Var |
Test1("3k/0402/1%") Test2("1k/0402/5%") |
Or, if you prefer a more verbose notation (con: it clutters the list of your available fields, for example in the Symbol Fields Editor, because you get a lot of different field names in all your components), then use this - or use a mixture of both formats as you like:
Field Name | Field Content |
---|---|
Var.Aspect |
TestAspect |
Var(Test1) |
3k |
Var(Test2) |
1k |
MPN.Var(Test1) |
xxcvcx |
MPN.Var(Test2) |
yyyxy |
SPECS.Var(Test1) |
"3k/0402/1%" |
SPECS.Var(Test2) |
"1k/0402/5%" |
If questions arise, don't hesitate to ask. :)
from kivar.
Tested, and works perfectly! Thanks!
I used the following example values:
Field | Value |
---|---|
Var | Var1(3k) Var2(1k) Var3(DNP -!) R1_aspect |
MPN.Var | Var1(MPN1Value) Var2(MPN2Value) Var3(None) |
SPECS.Var | Var1(3k/0402/1%) Var2(1k/0402/5%) Var3(None) |
Value | DNP |
MPN | None |
SPECS | None |
from kivar.
Thanks! I will try this out soon.
from kivar.
Nice.
If you want to assign an empty string in the DNP case (might look cleaner than "None"), just assign an empty quoted string, such as ''
or ""
(support for double-quotes is new). Example: Var3('')
.
Regarding the alignment of your displayed fields: Try pressing O
on your component, so that all fields are aligned automatically. Currently, MPN and SPECS seem to be right-aligned (or rotated) centered.
from kivar.
Related Issues (20)
- Add deep rule ambiguity check
- Allthough identical rules are formulated, one Component does not react as the others HOT 3
- footprint visibility when populating/unpopulating HOT 5
- Enable/disable solder paste per footprint HOT 2
- KiVar 0.1.2: No rule definitions found - kivar-demo HOT 1
- New plugin icon
- kivar-cli: Script does not read KiVar.Rule HOT 4
- Add rules migration hint to plugin
- Add a release series maintenance branch for v0.2.x HOT 1
- Create own PCM repo for pre-releases HOT 1
- How to install KiVar from actual repository state HOT 6
- link to migrate does not work + migrate part of the docs not present HOT 1
- KiVar warn about legacy rules only if there are no rules in new format HOT 4
- Add colored output support for CLI application
- Add output file option to avoid overwriting original board HOT 1
- Update documentation for 0.3.0
- Allow creating new choice definitions with aux rules, too HOT 1
- RFC: Introduce reserved "?" Choice name, which only applies to undefined Choices HOT 1
- Action Plugin doesn't work on macOS (13.6.9) HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kivar.