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!
User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Symbols library

Postby yorik » Tue Apr 21, 2015 10:20 pm

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
Posts: 2181
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Symbols library

Postby r-frank » Wed Apr 22, 2015 7:18 am

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
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Symbols library

Postby yorik » Wed Apr 22, 2015 6:20 pm

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
Posts: 4363
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Symbols library

Postby microelly2 » Sat Apr 25, 2015 6:39 am

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
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Symbols library

Postby yorik » Sat Apr 25, 2015 3:48 pm

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
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Symbols library

Postby yorik » Sun Apr 26, 2015 9:49 pm

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
Posts: 2181
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Symbols library

Postby r-frank » Mon Apr 27, 2015 4:07 pm

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

Postby Giovanni_Longo » Sat Apr 30, 2016 6:10 pm

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
Posts: 2178
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Symbols library

Postby renatorivo » Sun May 01, 2016 9:53 am

Edit
try

Renato
Last edited by renatorivo on Sun May 01, 2016 3:59 pm, edited 1 time in total.
User avatar
yorik
Site Admin
Posts: 11514
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Symbols library

Postby yorik » Sun May 01, 2016 3:37 pm

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