BEAMS - XYZ(L,W,H) Values

Hi All,
Revit file attached,
we are looking for length, width & height values for each beam ,we have around 4000 beams and parts.
parts doesnot have Default values or parameters.
we have created dynamo script to find XYZ values for beams,
This method is working ,but we are looking for other options.
Any alternate method is highly appreciated.
Dynamo bug 002.rvt (6.3 MB)

(upload://dmBlDeuDPMwDbnK8wsUw97sfEaa.rvt) (6.3 MB)

You might need to provide more information. What exactly are you looking for and what doesn’t seem to be working? It sounds like you’re looking for XYZ values of some kind. Are you expecting that as a curve? End points? Dimensions?

4 Likes

@Nick_Boyts ,
we have updated the post please refer.

Hi is it a part ? you could try boundingbox by minimum volume and to cuboid and get the height, width, length …maybe…

@sovitek ,
yes its a part

try something here and see if it could work

3 Likes

@sovitek ,This works perfectly for single element,
For multiple elements the values of lengths have interchanged.

please find revit file and dynamo.


beam_Parts_Method 2.dyn (16.2 KB)

Dynamo bug 002.rvt (6.4 MB)

You’d have to make the assumption that the longer of the XY dimensions is the length and the shorter is the width, unless you have some other way to determine orientation. That should be pretty reasonable for beams.

2 Likes

hi,
i tried by teasing the Part class a little
if you only have one cut, one lift is enough to reach the source
otherwise you have to lift one more part before finding the source element

import sys
import clr
import System
from System.Collections.Generic import List
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import Part,LinkElementId,Element

part=UnwrapElement(IN[0])
doc=part.Document
lst=part.GetSourceElementIds()

OUT =doc.GetElement(lst[0].HostElementId)

Mr. sovitek’s BB solution is still the fastest solution

edit:
Happy New Year’s Eve if you haven’t already
@plus stan
cordially
christian.stan

3 Likes

Yeah happy new year )

1 Like

@sovitek , @christian.stan ,

We have got 2 methods in this post to get LBH values,
which works perfectly for single element.
we are looking for 2-3 parts values ,multiple elements.please check for multiple elements LBH values,Currently the values are getting interchanged,we are getting LB,BH or LH mixed results.
please check revit file and script in earlier posts.

Hi im not at dyn in the moment…have you tried what @Nick_Boyts suggest ?

1 Like

hi


cordially
christian.stan

1 Like