I am attempting to write a macro to pick out various features for costing an assembly due to the way our company puts models together.
Where I am stuck is with the GetWeldBeadFolder() function, in particular accessing all the weld types at once and getting a total length. For example, a 3 mm butt weld, a 3 mm fillet weld, and a 4 mm fillet weld will be in separate weld folders within the assembly. The above function allows me to use TotalLength, but only within a single sub weld folder, not the overall weld folder.
Is there a way to access the total length of all welds at the assembly level, regardless of type?
I think my only alternative is to loop through the cosmetic weld beads in an assembly and pick out each length, to add together later.
Any help with this would be greatly appreciated. I finally got the function to work and it doesn't do what I want in this instance!