Hi everyone, I’m new to the forum. I’d like to ask for help with a workflow that could significantly speed up my process and save me many hours: extracting information from Revit Spaces into the elements of my model via a linked file.
Since this is a massive building, I decided to create a dedicated ‘Spaces Model’ to avoid placing spaces manually in every single file, even though Revit has some automation for this. We are talking about more than 15 models…
So, I created the Spaces model and then developed a Dynamo script to pull information directly from the link. The result was somewhat functional, but I’m running into issues when dealing with a large number of elements: the script either assigns the wrong values or fails to populate them at all.
When I asked an AI for help, it suggested a data structure issue, but I haven’t been able to fix it. To clarify, the script works perfectly for around 300–400 elements. I also have some specific issues with electrical fixtures, but let’s set that aside for now. Any advice?
I would like to share the script or screenshots directly, but unfortunately, I am unable to do so
We have to wait till a mod can
change your ‘status’ so you can
upload.
Without screenshots or a data set it is
almost impossible to give any advise.
1 Like
@agaspardone I’ve updated your status past ‘new user’ level, so you should be able to post minimal files now. Start new files and build basic work to reproduce the error in order to keep things manageable. This is generally best practice when building an automation so no work is lost (you’ll save time on runs that finish in ~5 seconds instead of 2 minutes).
1 Like
Thank you, Jacob,
I am sharing some screenshots with you, if needed I can share the .dyn with you
I hope
We need to see the output of the nodes (data).
Preferably with most preview bubbles pinnend.
here you go, I hope it is clearer
1 Like
Much better, but can you zoom in close to one node and then do the export? Node names are lost right now.
1 Like
My first guess would be the List structure
1 Like
There is probably a structure list problem. With a few elements, it works perfectly
I would say definitively there is.
You have more Elements than Values.
It’s correct to have more values for elements, cause depends from how much elements in spaces
It is correct to have more elements than values, since the rooms are few compared to all the elements present in the host model. Therefore, this is normal, as I can also have more than 30 elements in the same room or space.
Duh, forgot about that
.
So you should have a list (total 1030 items) with sublists for your Elements (total 5517 items).
Now you are feeding just one list with
ALL your Elements.
PS
Also you might need to think about lacing.
Yes, i try to think about Lacing, but without success. I’m not saying that all the elements I have must necessarily be filled in with values, but at least they should be correct.
It is really about your List structure. See my previous post.
PS
My screenshots are just an example.
Maybe your grouping looks a bit differently in reality.
Can I solve this ? Do you have any advices for me ?
I was try an another method, with the “solid geometry of spaces and elements host ” but without success
Of course , i will see your post.
Yes. ‘Fix’ your list structure. Or, in other words, group your elements correcty.
Okay, Now i’m trying fix it. Where can i find your post of list ?
See post 13/19 in this topic
.