Skip to content

Using ElementId.Value instead of ElementId.IntegerValue for Revit 2024+ #142

Description

@habdirad

The issue was raised in the revit_failure_handling.py in a Revit 2026 project and failed the RBP when opening a rvt file.
The function ElementIdsToSemicolonDelimitedText should be revised as follows.

def ElementIdsToSemicolonDelimitedText(elementIds): values = [] for elementId in elementIds: # Revit 2024+ uses Value, older versions use IntegerValue if hasattr(elementId, "Value"): values.append(str(elementId.Value)) else: values.append(str(elementId.IntegerValue)) return "; ".join(values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions