BOLTS Open Library of Technical Specifications

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
yorik
Site Admin
Posts: 12058
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: BOLTS Open Library of Technical Specifications

Postby yorik » Mon Oct 07, 2013 1:32 pm

fcstd files have copyright info, that you retrieve like this:

Code: Select all

App.ActiveDocument.License
App.ActiveDocument.CreatedBy
About all the license stuff, our own experience with debian shows that messing with different licenses can be a real hell... I suggest you to stick to one and only one license for everything you wish to bundle as a debian package. Also, the big issue with licenses is distribution. Certain licenses can't be distributed along with others. What users does with that, is another topic. For example, opencascade cannot be distributed bundled with something GPL. But nothing prevents you, as the user, to use opencascade together with a GPL program. So I think if users create content for your library, you should make it clear that if they want to see their contribution added to your "distribution version", they should follow a certain license (LGPL, CC, whatever you decide), so you avoid yourself some headache. If not, they can choose any license they want and distribute it separately (like a plugin). Users will be able to use their work anyway.
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS Open Library of Technical Specifications

Postby jreinhardt » Wed Oct 30, 2013 9:42 pm

Hi everybody,

after a long silence in this thread I am happy to be able to announce that I just released BOLTS 0.2.

http://jreinhardt.github.io/BOLTS/2013/ ... lease.html

It should work relatively stable and provide a number of useful parts that can be selected and inserted easily.

I have also written quite a bit of documentation about how to add more parts to BOLTS, and invite you to try it:

http://jreinhardt.github.io/BOLTS/contribute.html

Finally I want to thank you for being so very helpful and nice when I did my first steps in FreeCAD.

Greetings
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: BOLTS Open Library of Technical Specifications

Postby NormandC » Wed Oct 30, 2013 10:59 pm

Hi,

I couldn't launch your BOLTS macro. Here's the console warning.

Code: Select all

>>> import BOLTS
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/normand/Dessins/Macros_FreeCAD/BOLTS/__init__.py", line 20, in <module>
    from bolttools import blt_parser
  File "/home/normand/Dessins/Macros_FreeCAD/BOLTS/bolttools/blt_parser.py", line 19, in <module>
    import yaml
ImportError: No module named yaml
Turns out I needed to install the python-yaml package. Might be a good idea to add this info to your documentation.

FYI I'm running

OS: Ubuntu 12.04.3 LTS
Platform: 64-bit
Version: 0.14.2666 (Git)
Branch: master
Hash: f5e12c74ac26081dfc15327ff1cbb642248e636e
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0

Now off to testing! Thanks for sharing! :)
triplus
Posts: 9475
Joined: Mon Dec 12, 2011 4:45 pm

Re: BOLTS Open Library of Technical Specifications

Postby triplus » Wed Oct 30, 2013 11:21 pm

Have you consider renaming your project form BOLTS to PARTS?
User avatar
ralvejd
Posts: 58
Joined: Wed Feb 20, 2013 10:31 pm
Location: Sweden

Re: BOLTS Open Library of Technical Specifications

Postby ralvejd » Wed Oct 30, 2013 11:33 pm

Installed and tested, works well.
More detailed test on another day. Thanks for a great tool! :)

OS: Debian GNU/Linux 7.2 (wheezy)
Platform: 64-bit
Version: 0.13.
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.2
sorry for my outrageous English, but I have a bad excuse
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS Open Library of Technical Specifications

Postby jreinhardt » Thu Oct 31, 2013 8:05 am

normandc wrote: Turns out I needed to install the python-yaml package. Might be a good idea to add this info to your documentation.
I did that, thanks for the hint. This is the kind of stuff you miss.
triplus wrote:Have you consider renaming your project form BOLTS to PARTS?
I like the recursive acronym: BOLTS is a Open Library of Technical Specifications. It has one problem though: an internet search for it will not give you the result you want. But PARTS has the same problem.
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
triplus
Posts: 9475
Joined: Mon Dec 12, 2011 4:45 pm

Re: BOLTS Open Library of Technical Specifications

Postby triplus » Thu Oct 31, 2013 1:54 pm

It's you call in the end but on the long run BOLTS vs. PARTS i don't know to be honest for me BOLTS represent single group (sub section) of PARTS in the end. About the internet search results that will come over time i am sure of it if you will push this ahead strongly.

Anyway nice work and something like this will come in handy after assembly module lands indeed!
keithsloan52
Posts: 1450
Joined: Mon Feb 27, 2012 5:31 pm

Re: BOLTS Open Library of Technical Specifications

Postby keithsloan52 » Fri Nov 08, 2013 8:04 pm

Just tried BOLTS which looks a great idea.

On import BOLTS I get
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/media/Drive D/Shared/FreeCAD/testmacro/BOLTS/__init__.py", line 20, in <module>
from bolttools import blt_parser
File "/media/Drive D/Shared/FreeCAD/testmacro/BOLTS/bolttools/blt_parser.py", line 72
self.standardized = {body:[] for body in self.standard_bodies}
^
SyntaxError: invalid syntax
>>> If I try and run the start_bolts.FCMacro I get similar
Traceback (most recent call last):
File "/media/Drive D/Shared/FreeCAD/testmacro/start_bolts.FCMacro", line 1, in <module>
import BOLTS
File "/media/Drive D/Shared/FreeCAD/testmacro/BOLTS/__init__.py", line 20, in <module>
from bolttools import blt_parser
<type 'exceptions.SyntaxError'>: ('invalid syntax', ('/media/Drive D/Shared/FreeCAD/testmacro/BOLTS/bolttools/blt_parser.py', 72, 34, '\t\tself.standardized = {body:[] for body in self.standard_bodies}\n'))

and I nearly forgot
OS: Ubuntu 10.04.4 LTS
Platform: 32-bit
Version: 0.13.1830 (Git)
Branch: releases/FreeCAD-0-13
Hash: ec7636d7aaf2612e9b43cff5d6a424037d53e505
Python version: 2.6.5
Qt version: 4.6.2
Coin version: 3.1.2
SoQt version: 1.4.2a
OCC version: 6.3.0
keithsloan52
Posts: 1450
Joined: Mon Feb 27, 2012 5:31 pm

Re: BOLTS Open Library of Technical Specifications

Postby keithsloan52 » Fri Nov 08, 2013 8:16 pm

Just seen the following
You need to have python (Version 2.7) and pyyaml installed.

Thought FreeCAD 0.13 did not work with Python later than 2.6 or am I muddling up that it does not work with python 3, but I see somebody has it working with with FreeCAD 0.13 and python 2.7.3. Would somebody like to clarify before I try and install python 2.7

Thanks
User avatar
bernd
Posts: 10930
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: BOLTS Open Library of Technical Specifications

Postby bernd » Fri Nov 08, 2013 9:30 pm

jreinhardt wrote:... It has one problem though: an internet search for it will not give you the result you want. But PARTS has the same problem.
patience ...

If I google for "bolts library" there are allready two results on the first page which takes me to your forum article in OpenScad Forum.

bernd
cron