From 2330d1c9a01e44236a1f6691ee940a7687730898 Mon Sep 17 00:00:00 2001 From: "U. Bruhin" Date: Thu, 25 Apr 2024 11:35:08 +0200 Subject: [PATCH] Add more attributes to capacitor components - Add attributes VOLTAGE_RATING (unipolar + bipolar) and DIELECTRIC (bipolar only). - Also add these attributes to the component's default value to make them appear in schematics --- cmp/c54375c5-7149-4ded-95c5-7462f7301ee7/component.lp | 5 +++-- cmp/d167e0e3-6a92-4b76-b013-77b9c230e5f1/component.lp | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cmp/c54375c5-7149-4ded-95c5-7462f7301ee7/component.lp b/cmp/c54375c5-7149-4ded-95c5-7462f7301ee7/component.lp index f387ea65..c6dd0858 100644 --- a/cmp/c54375c5-7149-4ded-95c5-7462f7301ee7/component.lp +++ b/cmp/c54375c5-7149-4ded-95c5-7462f7301ee7/component.lp @@ -3,15 +3,16 @@ (description "") (keywords "capacitor,capacitance,unipolar") (author "U. Bruhin") - (version "0.2") + (version "0.3") (created 2015-03-01T20:23:21Z) (deprecated false) (generated_by "") (category c011cc6b-b762-498e-8494-d1994f3043cf) (schematic_only false) - (default_value "{{CAPACITANCE}}") + (default_value "{{CAPACITANCE}}\n{{VOLTAGE_RATING}}") (prefix "C") (attribute "CAPACITANCE" (type capacitance) (unit microfarad) (value "")) + (attribute "VOLTAGE_RATING" (type voltage) (unit volt) (value "")) (signal af3ffca8-0085-4edb-a775-fcb759f63411 (name "-") (role passive) (required true) (negated false) (clock false) (forced_net "") ) diff --git a/cmp/d167e0e3-6a92-4b76-b013-77b9c230e5f1/component.lp b/cmp/d167e0e3-6a92-4b76-b013-77b9c230e5f1/component.lp index e0f6ce2d..0fafb5b3 100644 --- a/cmp/d167e0e3-6a92-4b76-b013-77b9c230e5f1/component.lp +++ b/cmp/d167e0e3-6a92-4b76-b013-77b9c230e5f1/component.lp @@ -3,15 +3,17 @@ (description "") (keywords "capacitor,capacitance,bipolar") (author "U. Bruhin") - (version "0.2") + (version "0.3") (created 2015-03-01T20:00:00Z) (deprecated false) (generated_by "") (category c011cc6b-b762-498e-8494-d1994f3043cf) (schematic_only false) - (default_value "{{CAPACITANCE}}") + (default_value "{{CAPACITANCE}}\n{{VOLTAGE_RATING}}\n{{DIELECTRIC}}") (prefix "C") (attribute "CAPACITANCE" (type capacitance) (unit nanofarad) (value "")) + (attribute "VOLTAGE_RATING" (type voltage) (unit volt) (value "")) + (attribute "DIELECTRIC" (type string) (unit none) (value "")) (signal 1c1c7abc-7b40-4f92-b533-f65604644db7 (name "1") (role passive) (required true) (negated false) (clock false) (forced_net "") )