Skip to content

Altium Schematic Importer: import also over-bar in text (net label and symbol pin name)

Description

Steps to reproduce

  1. download Altium schema from https://github.com/jlofw/li-ion-supply/blob/main/src/main_sch.SchDoc
  2. import it in Eeschema

As you can see on the Website of the LTC4085 Chip https://www.analog.com/en/products/ltc4085.html# "CHRG" and "ACPR" are negativ active and therefore "o̅v̅e̅r̅l̅i̅n̅e̅d̅":

image

In Kicad this is represented as "C\H\R\G" in the Symbol

image

Opened in the Symbol Editor you can see that if "C\H\R\G" is replaced by "~CHRG" the result in Kicad is as expected: image

image

image

Solution

In Altium an over-bar is implemented by adding "\" after each char which needs a over-bar.

In Kicad an over-bar is implemented by adding a "" before the characters which needs a over-bar. A second "" will terminate the over-bar.

So the logic is not the same as in Altium.

Altium needs a "\" for each character, Kicad only before a group of character.

On import:

  • from 2th character on check if it is a "\"
  • if yes (check if character after "\" is different to "\", if yes put "~" in front of last character before "\") otherwise continue with next character
  • if a "" was placed and the next character is not "terminated" with a "" we put an "" before this "next" character to terminate the over-bar before this "next" character.

According to https://curioussystem.com/2009/07/22/altium-designer-overbar-or-overline/ there exists also a "prefix" notation for Altium.

KiCad Version

Application: KiCad Schematic Editor

Version: (5.99.0-9902-gd9229697d8-dirty), release build

Libraries:
	wxWidgets 3.0.4
	libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3

Platform: Linux 5.4.0-67-generic x86_64, 64 bit, Little endian, wxGTK, cinnamon, x11

Build Info:
	Date: Mar 20 2021 20:48:21
	wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.3.0
	Curl: 7.68.0
	Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
	KICAD_SCRIPTING=OFF
	KICAD_SCRIPTING_MODULES=OFF
	KICAD_SCRIPTING_PYTHON3=OFF
	KICAD_SCRIPTING_WXPYTHON=OFF
	KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
	KICAD_SCRIPTING_ACTION_MENU=OFF
	KICAD_USE_OCC=ON
	KICAD_SPICE=OFF