How to create Zone by rooms

Hello everyone,
Am trying to create zone by selecting rooms. i succeed to create Space for rooms, but don’t know how can i create zones by selecting rooms.

Here is my Dynamo file : Create zones_FromRooms.dyn (13.3 KB)

If you have any feedback then feel free to reply here! We welcome any and all commentary.
Thank you.

Hi @sonu41

You can only add spaces to zones in Revit API. Creating zones by rooms is not available.