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)
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?
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.
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
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.