By Dennis Collin
This post follows on from a previous blog where I described the process to get Revit to report a rooms dimension on its associated tag.
The limitation with this previous method was that it only worked on square or rectangular rooms. However, as buildings frequently have non-rectangular rooms, a more flexible method is required, which will report the maximum length and width, this can be achieved using Dynamo scripting.
The script selects all rooms in a project and filters out any redundant or invalid rooms. It then creates bounding geometry to obtain the maximum dimension in both the X and Y directions, and then assigns values to some user defined shared parameters, which are linked to the tags.
If a diagonal check dimension is required, that is calculated as well. The script will only work with rooms that are orthogonally defined and where walls are at right angles.
This script will not work in every situation and will result with incorrect values on views where rooms are rotated, for example in a true north aspect. It is possible to overcome this problem however, with a more complex script which I will cover in a future post.
Comentários (0 comentários)