Copy Space parameters to Family Parameters


Hi guys,

I was wondering if it’s possible to copy 3 space parameter values to families that are inside those spaces.
Let me give you an example…

I have 3 spaces in my Revit model.
Those spaces have three parameters (instance):

Space 1:
A = 2
B = 3
C = 1000

Space 2:
A = 3
B = 200
C = 5

Space 3:
A = 5
B = 20
C = 55

Each Space have a FCU except Space 3 .
Space 1 => FCU 1
Space 2 => FCU 2
Space 3 => None

Those Fcu’s have also parameters A B C.
I would like to copy parameter values A, B and C from Spaces to FCU’s that are inside those Spaces.

So FCU 1 will have parameter values:
A = 2
B = 3
C = 1000

and FCU 2 will have parameter values:
A = 3
B = 200
C = 5

I had a look on others posts and I’ve found this solution:

What do you think if I will use Element.BoundingBox and then BoundingBox.ToCuboid instead of using FamilyInstanceLocation?

Another thing is:
Is it possible to have a list of Spaces that don’t have any FCU? (in my example will be Space 3) So everything will be under my control.

Thanks guys

Space Number parameter / Element in Space

Here is an example that transfers one parameter from space to family instance within the space…
Parameter-SpaceToFamily.dyn (9.3 KB)


Thanks Vikram… it works :slight_smile:


Hi Guys,

I have another issue with the script that Vikram gave to me. If there is more than one FCU in that space the script doesn’t work.
What should I do?
Should i use the node “FamilyInstance.Space” ?
in that case what should be the script?

Thanks for your help :slight_smile: