← Commit history

orderable attributes: rebuild .lbr with adom-lbr 2.18.0 so MPN, MANUFACTURER and the distributor part numbers reach <technology> (LCSC_PN C559032). The published library carried no attributes at all, so a BOM had nothing to buy from. Distributor PNs matched on exact MPN AND corroborating manufacturer.

Ray ·cb7f9376b7 · ·parent 6249e26
2 files changed +27−7
cn3158.lbr+24−6
@@ -63,6 +63,18 @@   <smd name="7" x="2.4750" y="0.6350" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="8" x="2.4750" y="1.9050" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="9" x="0.0000" y="-0.0000" dx="2.4100" dy="3.3000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-2.6000" y="2.4700"/>+    <vertex x="-2.8400" y="2.8000"/>+    <vertex x="-2.3600" y="2.8000"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.9750" y="2.4500"/>+    <vertex x="1.9500" y="2.4500"/>+    <vertex x="1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="1.4750"/>+  </polygon>   <wire x1="-2.0600" y1="2.5600" x2="2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="2.4650" x2="-2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="-2.5600" x2="-2.0600" y2="-2.4650" width="0.1200" layer="21"/>@@ -71,7 +83,7 @@   <wire x1="2.0600" y1="-2.5600" x2="-2.0600" y2="-2.5600" width="0.1200" layer="21"/>   <text x="0" y="3.480" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-3.480" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-2.6000" y="2.4700"/><vertex x="-2.8400" y="2.8000"/><vertex x="-2.3600" y="2.8000"/></polygon></package>+</package> </packages> <symbols> <symbol name="CN3158">@@ -86,8 +98,8 @@   <pin name="GND" x="-16.509999999999998" y="-2.539999999999999" length="middle" direction="pwr"/>   <pin name="VIN" x="-16.509999999999998" y="-7.620000000000001" length="middle" direction="pwr"/>   <pin name="BAT" x="-16.509999999999998" y="0" length="middle" direction="out"/>-  <pin name="~{DONE}" x="16.509999999999998" y="7.62" length="middle" direction="oc" rot="R180"/>-  <pin name="~{CHRG}" x="16.509999999999998" y="10.16" length="middle" direction="oc" rot="R180"/>+  <pin name="DONE" x="16.509999999999998" y="7.62" length="middle" direction="oc" rot="R180"/>+  <pin name="CHRG" x="16.509999999999998" y="10.16" length="middle" direction="oc" rot="R180"/>   <pin name="FB" x="-16.509999999999998" y="10.16" length="middle" direction="in"/>   <pin name="GND@2" x="-16.509999999999998" y="-5.08" length="middle" direction="pas"/> </symbol>@@ -106,12 +118,18 @@         <connect gate="G$1" pin="GND" pad="3"/>         <connect gate="G$1" pin="VIN" pad="4"/>         <connect gate="G$1" pin="BAT" pad="5"/>-        <connect gate="G$1" pin="~{DONE}" pad="6"/>-        <connect gate="G$1" pin="~{CHRG}" pad="7"/>+        <connect gate="G$1" pin="DONE" pad="6"/>+        <connect gate="G$1" pin="CHRG" pad="7"/>         <connect gate="G$1" pin="FB" pad="8"/>         <connect gate="G$1" pin="GND@2" pad="9"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CN3158" constant="no"/>+          <attribute name="MANUFACTURER" value="ShangHai Consonance Elec" constant="no"/>+          <attribute name="LCSC_PN" value="C559032" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
page.json+3−1
@@ -26,7 +26,9 @@       "model_3d_step": "cn3158.step",       "lbr": "cn3158.lbr"     },-    "distributor_links": {},+    "distributor_links": {+      "lcsc": "C559032"+    },     "pins": [       {         "number": "1",