THE REPOSITORY IS THE MOST UP TO DATE SOURCE OF INFORMATION!
WARNING: ALL BELOW MAY BE TECHNICAL, DISCUSSION OR OUTDATED!
Example BoM (took only 5..10 minutes to generate due to the new cache of recursive assembly dimension calculations)
I wish to share a new addon with you. Not sure if someone already untertook efforts in that area, but as I had certain feature wishes I just decided to quickly throw selection2BoM together. A goal is to not require any extra setup, data or input - in my opinion a BoM should be generated directly out of the objects' names and materials. Another important feature I wished was to decide whether group instances act as real individual complete independant standalone (mechanical) parts or if they should be resolved to the objects contained therein. And here we go - you get Selection2BoM!
^ Check Github for releases.
Gotcha note to addon developers: python addons are not loadable if they contain a point (.) in the filename, e.g. 2.xy.py won't work.
Where to find the settings?
Once installed, you should find the settings under Tool-shelf (T) of the 3DView above the last operator panel or in newer blender versions (2.7+) within the Toolshelf -> Misc.
- The dimensions eventually should be calculated differently? (tbd)
- Accurate item/part counts: Every object dimension and object name and object material triple is listed once, and how often it occurred. If a parent group instance (assembly) has some transformation then this is inherited and results in a new BoM entry. This allows for very advanced and non-redundant modelling.
- Different modi: Group instances (read: assemblies) can be counted as complete standalone part on its own - or they can be resolved to the objects contained in the group.
- Use atom: in the group instance object's name to prevent decomposition.
- Resolving groups to objects works without changing anything in the scene (utilizing complex recursive duplication algorithm).
- Resolving group material from group's object functional.
- Auto-selection working. Prior to the Beta release a selection had to be made manually. Otherwise the addon crashed. Now this is solved.
- Dimensions of group instances now are automatically resolved from all underlaying objects.
- Units now are included in the bill of materials.
- Unit settings of the scene are now taken into account when calculating the dimensions.
- Some efforts for getting a better structure in the Bill of Materials text files without hopefully loosing too much speed.
- Objects properly inherit all transformations (e.g. different scale of a group instance than another instance of the same group).
- Hybrid mode for listing all assemblies and how often they are used. (next to the overall part counts)
- Added support for recursive assemblies (group instances within group instance(s) which is within another group (instance), and so on).
- Fixed some bugs like randomly failing to create the Bill of materials.
- Now no longer just writes all files into the home directory. Instead it writes it to the directory that contains the .blend that is open in blender.
- Hybrid mode shows part counts for each part of each unique assembly. Useful for knowing how many parts (e.g. screws) that assembly needs.
- Scene and active object determine the BoM-txt-filename.
- Parts are resolved to underlaying (redundant) data. (e.g. group instances are counted!, identical/linked objects also get only one entry).
- That is: objects sharing the objectdata result in different parts if the scale is different.
- Automatically guessing what to select if no selection is made prior to invoking this selection2BoM addon.
- Support for atomar assemblies.
- Hybrid mode: global parts list no longer lists assemblies, also empty assemblies no longer show in the assembly listing in the BoM. And the assembly listing now shows proper assembly occurrence counts.
- Finally proper alignment for all entries (fixes a multitude of issues).
- Support for optional parts/assemblies. ->Example.
It may finally be useful for what we wanted it to do. The output of the addon now answers the following questions:
- Which parts were used?
- How many parts were used?
- How were the parts grouped (assemblies)?
- Are the optional parts? How many?
- Of what (approximate) dimensions are the parts?
Selected objects only?
- Either Selection -> Bill of Materials.
- Or all objects in scene besides hidden ones -> Bill of Materials.
How to install:
- Get it via Git or, if you don't have Git, use this: https://github.com/faerietree/blende...n2bom/releases
- Unzip the attachment from above (Releases).
- In blender open addons menu. CTRL+ALT+U
- Install addon.
(Or put it either in ~/.config/blender/<version>/scripts/addons/ or <where-blender-installed-directory>/<version>/scripts/addons/ .)
- Either select objects to include or hide objects to exclude from the BoM.
- Hit the button 'Selection2BoM' in the toolshelf (3DView + T).
- Look for the BoM-<active-object>.txt in the filesystem.
- Examine if everything is fine. If not start blender via the terminal/command line(cmd), reexecute the script. Copy the output in this thread or describe what went wrong.
No efforts so far to parse a website of a supplier like McMaster, DigiKey, Mouser, RadioSupply, Granger, ... you know all those ... for real parts. A lot of work will be to rescale the parts that are not available in certain sizes (bearings, ...), because this would require scaling other parts (e.g. bearing fittings) of the drawing too. And as people may wish to create custom parts it would be a good idea to at least make this optional.
In the longer term I plan to create a full-fledged KiCAD integration. The genious drawing capabilities of Blender are perfect for simplifying electronic design where fiddling in der GUIs is horrible and ineffective. Why shouldn't all algorithms required for electronic circuit design work in blender too? (perhaps I'm dreaming ...)
I think ElectronicsCAD tools like KiCAD or EAGLE are bulky - why do we need redundant extra symbols for each footprint? Why not have non-redundant footprints which specify a list of all parts/symbols they exist for and assign/choose them from a drop-down list with preview and measurements on the fly directly in the schematic editor. Then a decent auto-router and there we had it if we only had it.
The next addon planned is an improvement of the render2print extension with an option to print in real world scale.
Thank you very much for making blender what it is ... brilliant.
Hope this add-on helps someone and we can improve it.
Jan R.B.-Wein, formerly known as Radagast (wonder why?:mrgreen
Fellow of green open source technology and [color=green]ecology[/color],
Knight of blender,
Mage of RepRap - let's join efforts! blue planet united!