FloorPlan.ByRoom not working

The archilab node FloorPlan.ByRoom gives this error:

[0] Traceback (most recent call last):
File “”, line 95, in
Exception: The ElementId levelId does not correspond to a Level.
Parameter name: levelId<<

Any idea why?

It’s Revit 19 and Dynamo 2.0.3

The Archilab script python bit that seems not to be working is:


you collect rooms in the current document or from a linked model?

From a linked model.

This is the reason for the error the Ids belong to the linked model not to the host model

Ah. Is there a workaround?

for each room

  • find the corresponding level in the host model (with elevation)
  • create a ViewPlan with this level
  • adjust the new ViewPlan limits according to the room’s bounding box (cropbox)
  • name the view