Giter Site home page Giter Site logo

Comments (4)

markh-de avatar markh-de commented on August 26, 2024 1

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.

rob-bits avatar rob-bits commented on August 26, 2024 1

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

image
image
image

from kivar.

rob-bits avatar rob-bits commented on August 26, 2024

Thanks! I will try this out soon.

from kivar.

markh-de avatar markh-de commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.