Symbols library

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Symbols library

Post by yorik »

I just started a little repo, on the same model as the FreeCAD Parts library, called "Symbols library" at https://github.com/yorikvanhavre/FreeCAD-symbols

Basically it works exactly the same way as the Parts library, but instead inserts SVG symbols in your Drawing pages.

If you want to contribute and add some stuff there, just create a github account and ask me here so I can give you write permission.
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Symbols library

Post by r-frank »

Very good idea, yorik, thanks for that ...

For starters, how about adding the projection methods and the compass rose ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Symbols library

Post by yorik »

Good idea... Hmm... Actually the symbol object should support editable texts! How come I didn't think of this earlier, this will be very powerful...
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Symbols library

Post by microelly2 »

yorik wrote: If you want to contribute and add some stuff there, just create a github account and ask me here so I can give you write permission.
hello Yorik,
the symbol library is one of my testcases of the pluginloader,
its still a young project and I want do some small changes to make updating easier

please give me access or enable my request
https://github.com/yorikvanhavre/FreeCA ... s/issues/1
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Symbols library

Post by yorik »

Great! I gave you write permission to the repo. I let you do the changes, but if you prefer I can do it too.
Just a note maybe you aren't aware, the GetString (or GetFloat, GetInt, etc...) accept a defautl value if the property is not found.

So instead of

Code: Select all

myvalue = params.GetString("SomeSetting")
if myvalue == "":
    myvalue = "Default Value"
you can also do:

Code: Select all

myvalue = params.GetString("SomeSetting","Default Value")
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Symbols library

Post by yorik »

Warning, I'm moving the FreeCAD-symbols repo from my own github account to the FreeCAD "organization" github account. Its new home is now: https://github.com/FreeCAD/FreeCAD-symbols

I'll do the same with the Parts library when I'm sure the transfer worked ok here...
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Symbols library

Post by r-frank »

Thanks yorik.

I added a link to the symbols library in the wiki.

Will update the link for the parts library when moving is done.

Do you plan to move the part-library browser and/or the dxf Im/exporter as well ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
Giovanni_Longo
Posts: 10
Joined: Sat Apr 30, 2016 5:55 pm
Location: Italy
Contact:

Re: Symbols library

Post by Giovanni_Longo »

Hello Yorik,
sorry for my ignorance, I'm not able to edit my personal library path into the 'SymbolsLibrary.FCMacro', could you help me? Which line do I have to edit?
Thanks :)
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Symbols library

Post by renatorivo »

Edit
try

Renato
Last edited by renatorivo on Sun May 01, 2016 3:59 pm, edited 1 time in total.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Symbols library

Post by yorik »

Giovanni_Longo wrote:sorry for my ignorance, I'm not able to edit my personal library path into the 'SymbolsLibrary.FCMacro', could you help me? Which line do I have to edit?
We changed the system... Now we set that path not in the macro anymore, but in FreeCAD preferences. Open FreeCAD, menu Tools->Edit Parameters->Plugins->symbols_library->destination. Normally, on first run, if this setting is not present, you will get a dialog asking you for a path.

We should add a button to edit that path inside the macro, actually... (same for Part library) issue #2538
Post Reply