Hi all
I'm trying to build a macro that should do the following:
- list files from a given folder, and create an array of filenames [done]
- cycle through the array, opening the files one by one [done]
- once the file is open, using the GetPartBox function calculate the three X, Y and Z dimensions [done]
Now it gets tricky:
- Cycle through the bodies from the Cut List Folder or Solid Body folder [no idea how to do, examples macro in help page are too messy to be of real help]
- For every body, calculate X, Y and Z dimensions [I guess using GetBodyBox, but don't know how]
- Set three body properties with the calculated values [don't know how]
Do someone have a simple macro to understand how those commands work?
SolidworksApi macros