Crop view not cropping

Hi Dears,
Could somebody help me with this issue?
The script takes crop view from floor plan and applies it to a ceiling plan as bounding box.
Those nodes worked on different model, on current model I got an error at View.SetCropBox:

are one of your bounding boxes or views null?

Both have values, I set CropBoxActive true to the copied views which should be cropped then but it has no effect, still null

Hi @lu.asante.n try with a transaction end node before feed in view.setcropbox

Nodes work perfectly for Revit 2024, error occurs in Revit 2023 model, any ideas how can I fix it for 2023 version?

Hi @lu.asante.n i cant try in 23 but works great in 25

you could try with mepover or archilab have nodes for thar as well