Symbols library
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Symbols library
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.
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.
Re: Symbols library
Very good idea, yorik, thanks for that ...
For starters, how about adding the projection methods and the compass rose ?
Roland
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
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english
Native german speaker - so apologies for my english, no offense intended
Re: Symbols library
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...
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Symbols library
hello Yorik,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.
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
Re: Symbols library
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
you can also do:
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"
Code: Select all
myvalue = params.GetString("SomeSetting","Default Value")
Re: Symbols library
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...
I'll do the same with the Parts library when I'm sure the transfer worked ok here...
Re: Symbols library
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
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
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english
Native german speaker - so apologies for my english, no offense intended
- Giovanni_Longo
- Posts: 10
- Joined: Sat Apr 30, 2016 5:55 pm
- Location: Italy
- Contact:
Re: Symbols library
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
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
-
- Veteran
- Posts: 2611
- Joined: Tue Feb 21, 2012 8:07 pm
- Location: Torino - Italy
Re: Symbols library
Edit
try
Renato
try
Renato
Last edited by renatorivo on Sun May 01, 2016 3:59 pm, edited 1 time in total.
Re: Symbols library
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.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 should add a button to edit that path inside the macro, actually... (same for Part library) issue #2538