Hi Giuseppe,
recently I solved a similair problem with the Marker Text. I have attached this marker object which only puts the wall thickness in the Marker Text parameter.
Attach this marker to your doors and windows. Then in the schedule you get the field Marker Text and use it in the schedule
You can use this script in existing markers