I wrote a python script to import text into textfields, including text formulas. Essentially:
rs.AddText("%<blockinstancecount(""+line.rstrip()+"")>%",…)
It seems Rhino doesn’t evaluate the inserted formula, it displays the full string as text.
Only after I manually modify the text the formula is evaluated.