[Solved] Problems using custom Electric component symbols

Post questions on how to use or achieve an effect in Inkscape.
BenAsbo12
Posts: 2
Joined: Tue Feb 21, 2017 1:21 am

[Solved] Problems using custom Electric component symbols

Postby BenAsbo12 » Tue Feb 21, 2017 1:32 am

Hi guys,
I've just started using Inkscape today and am having a problem such that after adding a downloaded. SVG file of Electric Components Library and adding it to the AppData/Roaming/inkscape/symbols folder I created.
Opening a closing Inkscape, Opening Objects > Symbols and going to the drop down menu to Electric Components Library, the set of Symbols is completely empty and I cannot understand why.
The .SVG file is
https://commons.wikimedia.org/wiki/File ... ibrary.svg

Any help on why this is occurring would be great and muchly appreciated.
Any more information which is required feel free to ask.
And thanks in advance or any and all advice
Attachments
Symbols Library.png
Image of empty Symbol Set
Symbols Library.png (9.13 KiB) Viewed 2329 times
Last edited by BenAsbo12 on Tue Feb 21, 2017 3:52 am, edited 1 time in total.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Problems using custom Electric component symbols

Postby brynn » Tue Feb 21, 2017 2:45 am

Hhm, well the link you gave is to the wikimedia page, rather than the file itself.

But installing the SVG file, I'm having the same experience. After actually opening the SVG file, it does not appear to be a valid symbols file. All the objects are still groups. They should have been converted to symbols, at least, as far as I can tell.

I've tried looking at the SVG symbol files that I've installed. Only very few of them are showing any actual images. I don't know how the artist can make the file, so that it actually supplies the symbols, but you don't see them on the canvas. But I do have a couple of symbol files where the symbols are showing on the canvas, and when I select them, the status bar identifies as Symbol. In your file, they are all still groups.

I didn't read the wikimedia page very closely, whether the artist is misrepresenting that as an actual symbol file, or if he's considering the collection of groups as a library. I have heard "library" used in this context.

I'm not sure if simply converting them to symbols (as far as I know, you have to do it one at a time) would make it the right kind of file. Or if there's some other way besides one at a time - I'm thinking maybe there's someway to automate it via commandline, but that's a pretty big guess. And there might be some other things that you need to do to the file, to make it work as a symbol file.

I think Moini has been involved in creating symbols files, so when she visits, maybe she can explain?

BenAsbo12
Posts: 2
Joined: Tue Feb 21, 2017 1:21 am

Re: Problems using custom Electric component symbols

Postby BenAsbo12 » Tue Feb 21, 2017 3:26 am

Thanks for the fast reply brynn,
I have actually found the solution to this, which was similar to what you suggested.
I opened the file in Inkscape when doing so the symbols become ungrouped. Adding each individually to the current document symbols and then saving the file under a new name seems to allow for it to be opened as a symbol set in Inkscape.

Also, I was trying to add the file to the attachments section but it read back that the file was too large, hence why I supplied the URL of where the file could be downloaded directly from so I apologise for this but it seemed like the best way to supply the complete file I was using.

Whether it would be useful for me to add the fixed file here, maybe somebody more experience would know if that would be useful for others visiting this page looking for what seems like a good set of electrical component symbols?

It seems to be a fixed file for me but if you could check as I've already added the symbols to my symbol sets and whether that makes a difference or not I'm not totally sure

Thanks in advance,
Ben
Attachments
Electrical symbols library.zip
Fixed File
(27.19 KiB) Downloaded 339 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Problems using custom Electric component symbols

Postby tylerdurden » Tue Feb 21, 2017 3:30 am

brynn wrote:I'm not sure if simply converting them to symbols (as far as I know, you have to do it one at a time) would make it the right kind of file.

Yep. The groups are not symbols. If made into symbols, the file should work.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: [Solved] Problems using custom Electric component symbols

Postby tylerdurden » Tue Feb 21, 2017 5:38 am

@BenAsbo12, the file works well here.

Thanks for sharing!
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [Solved] Problems using custom Electric component symbols

Postby Moini » Tue Feb 21, 2017 8:11 am

If you ever want to share this kind of symbols file, you should make sure to unset the colors, where they are supposed to be changeable.
I guess for electronics' diagrams, this isn't of much importance, though, they are usually black-on-white.

@Brynn: Those 'empty' files contain the symbols in the defs section, just like filters and markers.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: [Solved] Problems using custom Electric component symbols

Postby brynn » Tue Feb 21, 2017 10:47 am

Moini wrote:@Brynn: Those 'empty' files contain the symbols in the defs section, just like filters and markers.


So they've been deleted from the canvas, but they're still in the defs?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [Solved] Problems using custom Electric component symbols

Postby Moini » Tue Feb 21, 2017 11:08 am

Yes, something like that. For our open-symbols, the document was created by a script, only using the defs, it has never been edited with Inkscape.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: [Solved] Problems using custom Electric component symbols

Postby brynn » Fri Feb 24, 2017 4:35 pm

Yes, I thought that there must be a way to do it without Inkscape at all....I mean make the file. Probably you'd use Inkscape to create the symbols, then put the XML defs into the file (or script)?

If someone wanted to make their own symbols file (an idea which I've toyed with), and assuming your symbols file has an open license, couldn't they use that file, the text file, I mean, as an example, to make their own? Of course giving proper credit, etc.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [Solved] Problems using custom Electric component symbols

Postby Moini » Fri Feb 24, 2017 11:55 pm

Yes, exactly, that's how we did it. People are free to also reuse the scripts that are used to create the symbols files. See, for example, https://github.com/Xaviju/inkscape-open-symbols
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: [Solved] Problems using custom Electric component symbols

Postby tylerdurden » Sun Feb 26, 2017 1:22 am

brynn wrote:If someone wanted to make their own symbols file (an idea which I've toyed with), and assuming your symbols file has an open license, couldn't they use that file, the text file, I mean, as an example, to make their own? Of course giving proper credit, etc.


Manually making a symbol file is pretty easy...
    Put objects into the symbol panel
    Add a title in the Document properties panel (Metadata tab)
    Save the file in ..\user\appdata\roaming\inkscape\symbols
    Restart Inkscape
Optional: name your objects before making them symbols to see tooltips for each in the symbols panel
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: [Solved] Problems using custom Electric component symbols

Postby brynn » Sun Feb 26, 2017 2:03 am

Thanks tyler. Yes, I know how to do it that way. I was just confused when I opened symbol files that I had installed, and they appeared to be blank. So that gave me a clue that there must be some other way to do it.


Return to “Help with using Inkscape”