I get this error from the LinkElement.GetParameterValueByName once I updated my script from Revit 2023 to Revit 2026.
LinkElement.GetParameterValueByName operation failed.
unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
Parameter name: unitTypeId
I am linking in another revit file and copying in the levels (and names) from that file. So if there is a level say at 0 feet and it is diferent then the name that is linked it renames it to match the link then also adds in the other levels from that linked file.
I know there is an error with bimorph nodes but the latest is installed
Link File and Levels_script.dyn (106.5 KB)



