Is there any way to open an imported assembly and extract the bounding box parameters to custom properties (x-dim, y-dim, z-dim) - without opening each part?
I have a wonderful macro written by Hugo Pires. The problem is, it only does one part at a time and has more bells and whistles than I need. It also has some issues with SW2014.
Thank you,
Todd
Instead of opening each part from the assembly, I made a macro to go through a directory and open each SLDPRT.
Then it creates a property for X, Y, and Z lengths, where X is always the longest dimension and Z is always the shortest.
Next it changes the color of the part based on its thickness (Z dimension).
After that, it creates a coordinate system at the corner, oriented appropriately.
Finally, it exports an IGES file using the new coordinate system.
It would have been nice to have beeen able to do this from the assembly, but that process seems buggy using VBA - especially when you get several hundred parts and dozens of subassembly layers.
I'd post it, but I don't know how. At any rate, it could use some refining.