Hi @zouYK,
I think this is because you use the glass material directly as construction input.
You first need to put this material into a construction.
The way you generate the windows is a bit complex. Have a look a the grasshopperfile I sent in this post:
example.3dm (40.6 KB) example.gh (558.3 KB)
I have tested the example above.