Here is another quick SOLIDWORKS macro to add "Bounding Box" feature found under "Reference Geometry" to all the model files (parts and assemblies) in the selected folder. There is option to hide the bounding box as well.
Feel free to reach out via direct message to discuss your design automation requirements. Let's connect, collaborate, and create success together!
Feedback is welcome
Macro libraries are set to SW2022 version. In case you're running a different version then update/correct the macro references as suggested in this video:
Re: Macro: Batch Add Bounding Box
Posted: Mon May 22, 2023 3:27 pm
by SPerman
I apologize in advance for the thread drift.
What is the purpose of a bounding box. I've never needed one in the CAD work I do. (Or maybe I did and didn't know it.)
Re: Macro: Batch Add Bounding Box
Posted: Mon May 22, 2023 4:38 pm
by jcapriotti
SPerman wrote: ↑Mon May 22, 2023 3:27 pm
I apologize in advance for the thread drift.
What is the purpose of a bounding box. I've never needed one in the CAD work I do. (Or maybe I did and didn't know it.)
We are looking to do this for our SolidWorks to get the boundaries to transfer into Windchill and into our ERP. Then downstream manufacturing and packaging groups can use the data for decision making based on the size of the part.
It automatically adds custom properties and calculates them.
Re: Macro: Batch Add Bounding Box
Posted: Tue May 23, 2023 1:22 am
by gupta9665
SPerman wrote: ↑Mon May 22, 2023 3:27 pm
I apologize in advance for the thread drift.
What is the purpose of a bounding box. I've never needed one in the CAD work I do. (Or maybe I did and didn't know it.)
As @jcapriotti mentioned, bounding box is to give you overall dimensions of a body, part or assembly. And add those values to properties. This helps the people manufacturing them to get idea of the stock size they would need, specially for weird shaped profiles.
Re: Macro: Batch Add Bounding Box
Posted: Mon Sep 30, 2024 6:34 pm
by nevillew
I don't need a macro for adding bounding boxes . . . . I need one for stopping all the updating of bounding boxes on opening an assembly.
Is this possible or is it baked into program (I'm using SW 2020 and no, I'm not going to update to latest version !!)