delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2020/11/18/16:22:50

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1605733671;
bh=VXvTNvNGBeVMTLwQtHuuF1Uq8ohfbN+PSOrAJcEnDE0=;
h=X-UI-Sender-Class:From:Subject:To:Date;
b=E+eqkFiznFroNo6gmUJP0DTa19uc3PedLW0N9eRzZxBDQjuzLbobSs+CTWgGcdSld
mG+QLu4HcqZi234fRcvTN5fMxgR7q9QsSNPOLos2BxcTyEelBnQnJ9+n3VCSk4B//S
CX7TbiowuA/sby7LaBhMszCMbS3Vp0/KkdwqpuGM=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
From: "Klaus Rudolph (lts-rudolph AT gmx DOT de) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
Subject: [geda-help] How to add own m4 footprint to pcb
To: geda-help AT delorie DOT com
Message-ID: <324d9cd1-0b89-4cea-ad01-054874a98487@gmx.de>
Date: Wed, 18 Nov 2020 22:07:51 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.4.0
MIME-Version: 1.0
X-Provags-ID: V03:K1:KrE5Jyuhp0BZFbneiJQ69QwOJxm7RGpjJpBg2f0MQeFSgAQWlb3
h2a6LHgNFFEKeIgIqJQjjFyL4x22+kW+cLvxrsgreb1gfPBBpgcFixQ37bOsx0MiqVVVUsl
PAOWirKEjxx2eZSqXmKMaGAxpWoSZ9SrQeEGMqlMxzba5GPU5iitAfFLJ4UpOu52zkURxd/
pj1b9dE/JzqAV56mu+e8w==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:llCG/u92x5M=:6DfKAawWtPyC/Q4JSN2Bqc
U9S/dSbqjrvFnR8JtGw/DgdGBY0tadlKv9zPx2+BJFNTkx1ZQYJHEH+R5jNjaIfx/GmzSXEil
aqtKoK5ykCb7rs7XVB+zjtaW0bSPu3MdcMNAT5cjKfGDyWiUVHC7DcbFAzD7oMIXPSJ1z9msc
LbRW3FE7IRi+juYGKCxQRJt+xfec1G7gXLl1Buig7tGpv2jRdsloQ+gyGhIBQxqPnCwM3CRXc
T4opt3VsF6jVGhrKNRarEzaqDaMG5Er3Zzn3EWY50jLk7Jz8JMUyo7K7UOHG6Cs9VjofQk3/Y
0CE5bLwAPPHogZP/zqmD6Mv5HlHkODIr/859CxEGfS2IuYg1WxDYIG8SNfI+hV0yMt3+kyFiS
EGMCuUIxG+UVvwca5nY8Gzfc5YPot6eBR8AgNvy1oYSEHtdbsD9KgWtRftsb59ZI7KkUdE3Of
MtUtlwIcWhAubmN8DrT55CCXHgdHfFyKd2BFtabIXcDATK3b7s/tLCg3CntuptEmBcSBXgPRi
IgOrO2NWecx7k8L/1WJHAWHkkAIkj34vcC8IHgvrF9urB/U4kACx5XJ9Y/VGVwRDGQxtfc1o5
SmxWijBJMXmpTdLvuVsKg8GFuunHhtiIMoagFLyMNTBuYVkr0w0EX+cb0VXxdhzjtQUW1pkpZ
EftJrRF6V3vDVgfFW0jhnZNCV7D1/t+8e8kdVDcbpaTi87gLMAGU0jpi1Ttrw9hUY1yqpjxrc
urlU+gb4S5viZX84wQ2IeTmpeYgnrGomkPNOnYVaYqyclW0/ao3VmQrZqIj3eqmyOe9JvlV9k
6hPCp2GaqABNsWK+o9/PcCnQTXUAgJ83qFJUmy1qR+MnTELNo3bH+RbtQrZ/xmPdzIDdaekcY
yOKzdwv+sreLNd7t4bsQ==
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 0AIL8eQR029037
Reply-To: geda-help AT delorie DOT com

Hi all,

I created the following directory structure:
[krud AT specht schaltung]$ tree testdir_for_pcb_libs/
testdir_for_pcb_libs/
├── m4
│   ├── own.inc
│   ├── own.list
│   └── own.m4
└── pcblib.contents

The files have the following content:

[krud AT specht schaltung]$ cat testdir_for_pcb_libs/m4/own.inc
define(`PKG_ALF100', `PKG_DIODE_LAY(`$1', `$2', `$3',  100)')
define(`PKG_ALF200', `PKG_DIODE_LAY(`$1', `$2', `$3',  200)')

[krud AT specht schaltung]$ cat testdir_for_pcb_libs/m4/own.list
geda_ALF100:ALF100:ALF100
geda_ALF200:ALF200:ALF200

[krud AT specht schaltung]$ cat testdir_for_pcb_libs/m4/own.m4
define(`Description_geda_ALF100',   ``Axial diode (pin 1 is cathode)'')
define(`Description_geda_ALF200',   ``Axial diode (pin 1 is cathode)'')


[krud AT specht schaltung]$ cat testdir_for_pcb_libs/pcblib.contents
TYPE=~geda
geda_ALF100:ALF100:ALF100:Axial diode (pin 1 is cathode) [ALF100]
geda_ALF200:ALF200:ALF200:Axial diode (pin 1 is cathode) [ALF200]

I start pcb with:
pcb --lib-path
/usr/share/pcb/:/home/krud/git_my_checkout/schaltung/testdir_for_pcb_libs/

But if I now open the menu in pcb:
Window->Library

and type in the "Filter:" Edit field "ALF100"

I see the directory structure:

pcblib/~geda/ALF100,Axial diode (pin1 is cathode)[ALF100]

BUT! if I now click on the ALF100 line, I did not get the symbol. The
preview is empty ( or if another element was selected before, the last
selected symbols stays in the preview area ).

How can I add my private/own symbols to pcb?

Regards
  Klaus

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019