BOLTS ... (Newbie)

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

Is this what you wanted ? .....

>>>
>>> BOLTS.repo.collections["hex_socket"]
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: list indices must be integers, not str

>>>
>>>

>>>
>>> BOLTS.repo.classes["hexsocketcountersunk"]
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: BOLTSRepository instance has no attribute 'classes'

>>>


.
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

Hold IT ! !

Really sorry.

Something this idiot should have done way back after messing with Python and Macros ...
Close down and ReStart the FreeCAD program so it could pick up ALL the changes.

Plenty of Socket heads in the BOLTS Parts window now.

:oops: :oops: :oops: :roll:

.
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

Tried those BOLTS.repo. commands again ..

>>>
>>> BOLTS.repo.collections["hex_socket"]
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'BOLTS' is not defined
>>>
>>>
>>> BOLTS.repo.classes["hexsocketcountersunk"]
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'BOLTS' is not defined
>>>
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

jreinhardt wrote:That is again, very strange, as I have them:
You have 8 items under "Hexagon Socket Fasteners" in COLLECTIONS
I only have 6 ...
Bolts_collection.png
Bolts_collection.png (251.19 KiB) Viewed 2482 times
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS ... (Newbie)

Post by jreinhardt »

Ok, all that is now kind of expected. Nothing strange here. The difference in numbers of socket heads is because the version I showed is a slightly later development version than the one that is on the website.

The errors from the python incantations are also expected because I gave you incomplete instructions for that.
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

Ok, thanks.

Any plans to expand the Parts List, or to create libraries that can be added to it ?

Seems I have finally got some ability with BOLTS ...
BOLTS-tester_done.FCStd
(44.03 KiB) Downloaded 59 times
thanks for your help and patience

:D
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS ... (Newbie)

Post by jreinhardt »

There are a few things on my wishlist: I want to integrate BOLTS into FreeCAD, this should hopefully avoid all the difficulties that you encountered during installation. And of course I want to have more parts, so I will try to streamline and simplify the process for other people to contribute parts, because there are so many parts out there, I could never *and dont want to) do all this myself. My vision is something like a wikipedia for standard parts data. Finally I want to make this parts data available to as many CAD systems as possible (at the moment OpenSCAD and FreeCAD), because a larger audience will likely yield more contributors.

I don't really see the point of multiple part libraries, I would rather maintain all the parts in one place.

At the moment I am quite absorbed by a different project, so BOLTS development is not going too quickly. But if you want to try to contribute parts, I am happy to help.
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
User avatar
ProBowlUk
Posts: 187
Joined: Sat Oct 11, 2014 11:18 pm
Location: Reading UK

Re: BOLTS ... (Newbie)

Post by ProBowlUk »

Hi

I agree, a "personalised" Parts List is the best plan, but will people find the time to do it themselves ?
What do commercial systems, like AutoCad and SolidWorks, use ?

Obviously I am interested in adding parts to my list.
However, I gave up programming (over 15 years ago) after starting as a trainee web developer, following a long career as a COBOL analyst/programmer. Made redundant from 3 "Job For Life" positions.
If it's simply collating data into items, I should be ok.
Will those parts be saveable ... to be re-inserted to the List if it is over-written by BOLTS upgrades ?

cheers :D
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS ... (Newbie)

Post by jreinhardt »

No, the idea is that people contribute parts to BOLTS, all data is put into the main BOLTS git repo and delivered to the user on the next BOLTS update (or automatically, if I manage to integrate this functionality). I have infrastructure in place to credit every contributor properly, see e.g. here or in the part pages e.g. here.

Examples for the data files (probably the easiest way to start) can be found here:
https://github.com/jreinhardt/BOLTS/tree/master/data
e.g. the hex socket data.

Commercial systems often have standard parts libraries where each part is an individual file, so they easily weigh in with tenthousands of files and hundreds of megabytes to gigabytes. There are companies that sell these libraries for a lot of money.
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
jreinhardt
Posts: 329
Joined: Mon Sep 09, 2013 6:08 pm

Re: BOLTS ... (Newbie)

Post by jreinhardt »

BTW, I just pushed a current development snapshot for BOLTS, which should give you the missing socket heads, among other improvements.

http://www.bolts-library.org/en/downloads.html
BOLTS, standard parts library for FreeCAD Thread, Help with Translation
Post Reply