triplus wrote:
How i usually do batch operations is to do multi-select and after change appropriate property. I am not saying this is how it should be done but this is how i usually do it.
hi
thanks Ulrich Brammer and your beautiful work
give me your latest version from errors only three objects are good
Fasteners workbench based on screw-maker00.png (9.17 KiB) Viewed 2222 times
same error for alls Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.15\Mod\Fasteners\FastenersCmd.py", line 82, in execute
d = screwMaker.AutoDiameter(fp.type, shape, baseobj)
File "C:\Program Files\FreeCAD 0.15\Mod\Fasteners\ScrewMaker.py", line 98, in AutoDiameter
if baseobj.Name.startswith("Washer"):
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Name'
triplus wrote:
How i usually do batch operations is to do multi-select and after change appropriate property. I am not saying this is how it should be done but this is how i usually do it.
I thinks this was mentioned in the past but i am not sure what you have decided to do. It would be great if there would be a tool and once pressed it would create new spreadsheet and add bill of materials (BOM) in it. There is no need for being "in sync" after the creation of BOM but if the same fasteners would be grouped that would be great. For example Nut XY 10 pieces instead of listing all 10 pieces individually.
triplus wrote:I thinks this was mentioned in the past but i am not sure what you have decided to do. It would be great if there would be a tool and once pressed it would create new spreadsheet and add bill of materials (BOM) in it. There is no need for being "in sync" after the creation of BOM but if the same fasteners would be grouped that would be great. For example Nut XY 10 pieces instead of listing all 10 pieces individually.
What do you think?
Sounds like a good idea. However I'm not all that familiar with FC spreadsheet system (both as a user and a programmer) so I have to take a look on it and see if its something I can get into.
I will add it to the todo list anyway.
shaise wrote:Sounds like a good idea. However I'm not all that familiar with FC spreadsheet system (both as a user and a programmer) so I have to take a look on it and see if its something I can get into.
In this macro I added the generated parts to a bill of materials in a spreadsheet. Though, it gets the parts list from the internal macro-variables and not from the Document-objects.
I have added a new toolbar command that lets you batch-change several fastener parameters of all selected items.
To use it, select all fasteners you want to change (all must be of similar type like screws, washers etc.) then press the Gear icon. A task dialog will open letting you change parameters:
If you want now to readjust existing screw diameter make sure the matching toggle icon is in the desired mode, select all appropriate screws, then click the Gear icon (batch change command). In the batch change dialog click 'Auto calculate diameter' then OK. All selected screws will be recalculated according to the current matching mode.