BOLTS ... (Newbie)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: BOLTS ... (Newbie)
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'
>>>
.
>>>
>>> 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'
>>>
.
Re: BOLTS ... (Newbie)
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.
.
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.
.
Re: BOLTS ... (Newbie)
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
>>>
>>>
>>> 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
>>>
Re: BOLTS ... (Newbie)
You have 8 items under "Hexagon Socket Fasteners" in COLLECTIONSjreinhardt wrote:That is again, very strange, as I have them:
I only have 6 ...
-
- Posts: 329
- Joined: Mon Sep 09, 2013 6:08 pm
Re: BOLTS ... (Newbie)
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.
The errors from the python incantations are also expected because I gave you incomplete instructions for that.
Re: BOLTS ... (Newbie)
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 ... thanks for your help and patience
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 ... thanks for your help and patience
-
- Posts: 329
- Joined: Mon Sep 09, 2013 6:08 pm
Re: BOLTS ... (Newbie)
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.
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.
Re: BOLTS ... (Newbie)
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
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
-
- Posts: 329
- Joined: Mon Sep 09, 2013 6:08 pm
Re: BOLTS ... (Newbie)
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.
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.
-
- Posts: 329
- Joined: Mon Sep 09, 2013 6:08 pm
Re: BOLTS ... (Newbie)
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
http://www.bolts-library.org/en/downloads.html