Hi Francesc,
I have been trying to evolve your script to make it a parametric solution to create stud walls - ideally making it general enough that others can reuse it, too.
I created a new wall style - Parametric stud wall style with. User parameters control the size and the shape of the studs the given wall layer requires.
Shame GH wall styles are not yet supported by VA 2.7. So my script, similarly to yours explodes an existing wall and generates columns layer by layer based on the user parameters defined for the given layer.
The script is WIP, I didn’t manage to make it general to any number of layers yet and it only supports generating to a single wall at the moment due to my lack of understanding of trees in GH. I want to make it so that the script can run on any wall with any number of layers.
However, there are heaps of problems I ran into, that may make it absolutely useless:
- the file grows like aggressively, VA crashes when I generate the coloums for all my walls, despite wireframe display mode, file size went from 87M to 150M.
The test file attached grew 25M by generating the columns for a single long wall, despite there are only 2 block definitions created.
- the wall bleeds through in hidden view mode
- openings and windows are not cutting through, as it is not a proper wall one can forget wall functions like extending or joining.
parametric-stud-wall.zip (5.1 MB)
In the zip there the
- wall style .val
- gh script (supports a single wall only)
- VA template file with the imported style and a few generated columns