pyRevit

Code
Library
Create Room
doc = __revit__.ActiveUIDocument.Document
uidoc = __revit__.ActiveUIDocument
active_view = doc.ActiveView
active_level = doc.ActiveView.GenLevel
# ARGUMENTS
pt = UV(10,0)
# CREATE ROOM
room = doc.Create.NewRoom(active_level, pt)
# CREATE ROOM TAG
room_link = LinkElementId(room.Id)
doc.Create.NewRoomTag(room_link, pt, active_view.Id )

⌨️ Happy Coding!
Erik Frits