How to fix kicad_sym format

Hi everyone

Kicad version 8.0.8

I have a problem using a plugin related to pulling lib from lcsc

Sometimes adding lib from plugin causes formatting problem

Is there a simple and convenient way to manage formatting?

I find that sometimes the letters ) are in the wrong place

Is there a way to arrange the format correctly?

Problems Found If ) is in the format Closed

The text below will not be displayed anymore.

Formatting error causes newly added Lib not to be displayed.

i use

image

Maybe the plugin is too restrictive on the format; it’s expecting the property element attributes to be all on one line? I.e.

(property "Reference" "Q"

This can happen if the plugin is doing line oriented processing. But the S-expression format just treats newlines as white space, so putting “Reference” and “Q” on separate lines is legal syntax.

You should take this up with the plugin’s author.

3 Likes

Yeah, kicad doesn’t care what line a bracket is on.
You can put megabytes on one line if you want to.

It will complain if it is missing though!

You can try my new plugin for downloading parts from LCSC/JLCPCB (which uses the native importer):

How to install and run on windows 11 64bit ?

Download the latest -pcm archive from Releases · dsa-t/jlc-kicad-lib-loader · GitHub, then open PCM and use “Install from file…”:

It might not work on Linux because webview2 is not implemented…

Thankyou

now i can run it,

i read document can add lib global folder ?

The native importer hardcodes 3D model paths to ${KIPRJMOD}/EASYEDA_MODELS/, so if you add the lib globally, it won’t find the 3D models from other projects.

So it’s recommended to add the .elibz file to local library tables.

The downloaded lib can’t be edited, right?

Do I have to copy it somewhere else and edit it?

image

Yes, it’s read-only. You can copy its parts to somewhere else, or “migrate” it.