Hello
We would like to separate the assembly BOM into three parts: one for steel profiles, one for manufactured parts, and one for purchased parts. We work in mechanically welded form, so a purchased part can be inserted into a multi-body part (typically a welded nut). To differentiate them, we use the "Length" property of the welded parts list. If the length exists, it is a steel profile. If the property "laser"=1 then it's manufactured. Otherwise it's bought.
Would it be possible to use a macro that, by selecting a view, inserts a table showing only the bodies of a category?
I found this macro: https://forum.solidworks.com/thread/219642 that inserts rows as long as a "ShowInTable" property is set to "Yes". But it does not correspond enough to our needs to be able to modify it.
Thank you for your feedback,
Thomas
1 Like
Hello
There would be 3 ways to do it:
- insert the welded parts table, rearrange the rows to group the items together, then cut the table into 3 with the Split method. However, if pieces are added, they will appear in the 3rd table.
- insert a general table and copy the properties of the parts (a bit like the example you found). But there is no link with the pieces, so if the lengths change, or if pieces are added/removed, you have to redo the table.
- Same as the previous point but with links to the properties of the parts. On the other hand, the same problem exists if parts are added/deleted.
1 Like
Hello
Thank you for this answer. Unfortunately, this confirms our fears that there are no solutions that would allow an update to the reconstruction of the document.
It is possible to launch a maco automatically with each rebuild.
So in this case, the macro could check if the parts have changed, and re-create the table if they have