Extract material quantities for doors and windows

This may help: Get all the Materials of a Family in Dynamo.

Try Clockwork.