I’m trying to make a script that places views on sheet based on their viewport size. It is about interior elevations.
It should start placing the viewports from the botom right corner of the sheet going to the left and when there is not enough space to go on the second row and start again from right to left.
Now I place all the views on the sheet in the right corner of the sheet and then replace them based on coordinates. The problem is I should rerun my definition for every row. I’ve made custom node to do that and I use it for every row.
I assume it can be done with some sort of loop or Recursive Function.
The idea is to start placing the views until there is no more space on the first row and then start on the secont row after the second row is full to start on the third and so on. Everytime it should start from right to left.
You can see the definition of the script and the custom node from the attached files. Also I’m attaching a sample .rvt file with the elevations and sheet.