Writing value to sheet category extracted from title block

Hi, I need help with this script.
We want to see how many A4 sheets is on each sheet, and to be able to schedule it in Sheet List.
We have this value in Title block, because we are writing it in sheet.

The problem is that runing script is taking too long (10-20 min), depending on how many sheets there is to rewrite the value. I found that is because dynamo is genereting every sheet.

P.S.
Error in script is due to missing parameter in the title block.

Thanks.

Try getting all titleblocks and the sheets they occur on instead (the view they belong to), and working with that data instead. Shouldnt need to regen sheets and is much faster

1 Like

So, i did another search and found a solution.
thank you.