I would like to know if someone could guide me. I don't know anything about code and I have a hundred simplified panel representations to model.
I have an excel file with the names of each panel as well as its dimensions Height x Width x Depth.
I would like to know if it was possible to ask solidworks to retrieve the name and dimensions from the excel file and save the part and then continue line by line to avoid having to do it manually.
You create your part once by giving names to your dimensions (h, w, p), then you glue your excel table. SW will make you as many configurations as you have lines. You can change or add them at any time.
A+
Edit: by the time I answer, gt22 has been there :-)
Each parallelepiped will correspond to the size of an Electrical panel, I then have to position them in the different rooms for which they are intended and thus check the layout in each room as well as the possible clashes with other elements present.
For my part, I think the easiest way is to make a file with confs and then split them into parts files (utilities already exist to make this separation into n files). No need to start a specific development and in case of adding a new panel just keep the original file, add a conf and then restart the split.
Here is an excel file driving SW (SW2016 - Change VBA references in case of a different version) that creates and saves parts according to the information given in the table (Name, height, width, depth)
You need to fill in the excel file the location of your SW part model and the location where you want to save the parts.
I don't have the name in mind anymore but it was available at axemble so probably on the current site. Probably explodeconfiguration or something like that.
I used all your advice and I didn't really do what I wanted but it will do, so I created a family of rooms with the right panel name for each configuration. And then I found a code to save the part under the name of the active configuration. I'm posting the links below just in case ^^.