Exporting view as image problem with changed color fill scheme

Hello dear Dynamo-Users,

currently I am working on a project, which aims to create floorplan views in which one room is colored. I achieved to create those views with setting up a color fill scheme. In the color fill scheme I changed the color and set only one room visible. Everything works fine so far.
Now I want to export those floorplan views as images. But instead of seeing the changes made in the color fill scheme in the exported picture, the image shows the old color fill scheme… I tried with the “documents.regenerate”-node, but that is not helping.
Can anybody help me get the correct overriden image that looks like the floor plans?


floorplan view with color fill scheme
exported image

Any help would be appreciated!

Views don’t get recalculated when you’re actively changing the document, and as such you need to commit the change to the file before exporting.

Put a Transaction.End node right before the export node (between the passthrough and the export actually) and see if that resolves the issue…

Thank you for your suggestion!
I tried the Transaction.End node, but it is not helping… the situation stays the same