Copying filters from one Revit document to another

I found the solution. :blush: :blush:
The exception was raised because the copied filter had another elementId, so when it had to apply the graphics from the filter from the source project, it could find the same filter in the destination project.