I was working through this forum (LINK) to convert my decimals to feet/inches but I’m getting an error at the Units.Create node, so I was hoping I could get some some help resolving that issue.
Thanks,
-Ian
I was working through this forum (LINK) to convert my decimals to feet/inches but I’m getting an error at the Units.Create node, so I was hoping I could get some some help resolving that issue.
Thanks,
-Ian
Okay, so after I posted this I went back to finishing the rest of my script and it started working. Not sure what the issue was, but it’s working now.
hmmm… could be how revit deals with values
here is an example
# 🛒get instances walls
elements = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()
# 🧪convert
metric = [ i.get_Parameter(BuiltInParameter.CURVE_ELEM_LENGTH).AsValueString() for i in elements]
imperial = [ i.get_Parameter(BuiltInParameter.CURVE_ELEM_LENGTH).AsDouble() for i in elements]
OUT = metric, imperial