kc.ho
1
Hi all, I’m trying to update families location with the room name. Using this but with error. Anyone can help?
https://dynamonodes.com/author/johneshou/
Error at location.name
Warning: Location.Name expects argument type(s) (DynamoUnits.Location), but was called with (Revit.Elements.Room).
You should feed it a Location instead of a Room
kc.ho
3
can give me an example? I’m new to Dynamo. Thanks
kc.ho
5
Uploaded the sample and if anyone can see where goes wrong.testing.dyn (33.9 KB)
@kc.ho Can you upload a sample Revit file as well?
kc.ho
7
Archi.rvt (1.6 MB)
mep.rvt (2.6 MB)
Here you go. I linked Archi.rvt into mep.rvt for this testing. @salvatoredragotta
@kc.ho Did you find an answer to this? I have run up against the same issue.
SeanP
9
Can you post what you have so far?
I know there hasn’t been shown much effort here, but since the test files were provided I thought I’d show a possible way to do it:
UpdateFamilyLocation.dyn (42.9 KB)
Have in mind, that if you intend to do something like this in a complex model, then the routine might need some tweaking, but this is a start.
Thanks @MartinSpence this did the trick. I blended yours with the original post to accomplish what I needed on my test Revit file.
UpdateFurnitureFamilyLocation.dyn (67.3 KB)
1 Like
Will need to find a way to simplify for larger projects. Any suggestions are welcome.