I’m a Dynamo newbie and this is my first post. So go easy
I’m trying to fill in 3 parameters in Revit geometry for length width and height.
I successfully created a routine that did what I wanted on small sample selection in my model.
However I have yet to be able to replicate my initial success.
Having tried to run the routine on the whole model, other small sections or just one category the routine seems to fail on the BoundingBox.ToCuboid node. Returning Null for all elements.
I’m filling out parameters for NominalWidth/Length/Height for COBie placeholders.
My model geometry doesn’t have consistent parameter names to pull values from. So I was getting the bounding box size of each object to use the L,W&H dimensions to push back into parameters.
Or can I get the L,W&H values another way?
I have had better success with selecting elements rather than using elements in the active view. But I am still getting a lot of Null values.
Remove the elements with a null bounding box as a first step. An “is null” node will create the Boolean and allow for a filter. Get a second bounding box after that and wire the rest of the graph into that.
A little warning for rotated elements.
A boundingbox is always aligned to the x and y axis.
So when your element is rotated for example 45 degrees, the boundingbox will be larger to let your element fit.
The cuboid (and your parameters) will also be larger than your element.
In the link below i created a workaround workflow for that.