Тёмный

Rename Revit Families using Dynamo! 

Aussie BIM Guru
Подписаться 48 тыс.
Просмотров 11 тыс.
50% 1

One of the most useful sets of scripts I use on a day to day basis is a renaming suite. Whether it be family names, parameter values or text notes, Dynamo gives us the ability to hunt down text and add/remove/replace with ease. I show three workflows in detail in this tutorial.
I hope you enjoy the session and learn something new! Feel free to comment any feedback/questions below, or follow my channel if you enjoyed this.
Learn more about Dynamo at;
primer.dynamobim.org/
Software used;
Autodesk Revit 2019: www.autodesk.com/products/rev...
Dynamo: dynamobim.org/
www.autodesk.com.au/products/...
Google Remote Desktop: remotedesktop.google.com/home
Flashback Express: www.flashbackrecorder.com/exp...
Hardware used;
Webcam: support.logitech.com/en_us/pr...
Laptop: laptopmedia.com/laptop-specs/...
Microphone: www.rode.com/microphones/nt-usb
Intro/Outro Music: www.purple-planet.com/

Опубликовано:

 

8 фев 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@rosaperezresino6486
@rosaperezresino6486 3 года назад
I just want to say that I really enjoy this and the rest of videos they're really helpful, comprehensible. I'm a completely fan!!! Thanks a lot!
@AussieBIMGuru
@AussieBIMGuru 3 года назад
You're welcome!
@Cokoladni
@Cokoladni Год назад
For people that use the FilteredElementCollector you can use the ofClass filter with classes : Family class for component families (you cant rename system families), HostObjAttributes class for component types, ElementType class for system types. This way you get them all regardless of category. Note that ElementType will return some strange types like imported cads in views and such...
@AussieBIMGuru
@AussieBIMGuru Год назад
Indeed it will. I was pretty fresh with Python at this point but can vouch for that approach these days with what I've found with element types as well. In Revit 2023 for Dynamo they also support classes with some new nodes also.
@summ0nder
@summ0nder Год назад
Loved the tutorial, thanks! Can you use this to completly change the families names? Like replacing the existing name (as whole) for a list of names?
@AussieBIMGuru
@AussieBIMGuru Год назад
Yes you could use a similar workflow, but would probably need two lists with before/after names to match them - excel or csv would make sense for that.
@pavillon9365
@pavillon9365 4 года назад
Hi I have changed my family naming convention (e.g. Structural Column to STR COL) is is possible to do this kind of substitution?
@AussieBIMGuru
@AussieBIMGuru 4 года назад
Yes you would need to find a way to detect the family category and then use this to apply a renaming algorithm, or add a prefix if one doesn't already exist.
@lennonsc77
@lennonsc77 10 месяцев назад
Great tutorial! Very useful! Thanks to your very educational presentations, I was able to adapt this to rename families as well... How would you go about renaming families in the "Annotation Symbols" category? It doesn't show up in the "categories" node list, and I haven't found the proper node for this yet...
@AussieBIMGuru
@AussieBIMGuru 10 месяцев назад
The Element.Category+ node from Clockwork picks up annotation symbol categories well, although you might need to build some checks in to find the typical subcategories of it as they report as those. A lot of them have the word 'Tag' in their category, then there is Title blocks, View Titles, Level Heads, Grids, Generic Annotations etc.
@lennonsc77
@lennonsc77 10 месяцев назад
Great! Thank you for your help. And once again, your tutorials are awesome!@@AussieBIMGuru
@tingyunmao8861
@tingyunmao8861 4 года назад
Hello, may I ask you a question? How can I modify the category of a component,thank you
@AussieBIMGuru
@AussieBIMGuru 4 года назад
I havent managed to, but it looks like someone in this thread may have solved it using orchid; forum.dynamobim.com/t/change-category-of-family/12605
@umitkaplan5862
@umitkaplan5862 4 года назад
Hello and thanks for your tutorials. I wonder if we are able to rename Family Types as well? Because, I could only rename the Family names with this tut. Thanks in advanced.
@AussieBIMGuru
@AussieBIMGuru 4 года назад
Yes its a slightly different workflow. Try using the FamilyType.ByFamilyAndName node to retrieve types of families for renaming.
@umitkaplan5862
@umitkaplan5862 4 года назад
@@AussieBIMGuru thank you, I'll try it.
@umitkaplan5862
@umitkaplan5862 4 года назад
@@AussieBIMGuru done! Thank you so much.
@iftekharkhan8879
@iftekharkhan8879 3 года назад
What is the difference between all element of type nd nd family.type by family and name?? And what about system families ...if we want to add prefis ....how we can search for system families?? Thanku sir
@immi85
@immi85 4 года назад
Element.SetName node : I think we can open and edit right? It's a combination of multiple node. Some nodes are not openable, so how we make non openable nodes like default nodes. (Sorry for my bad English)
@AussieBIMGuru
@AussieBIMGuru 4 года назад
Some package managers use what is called 'zero touch' nodes. These are packaged in C# and embedded in the package .dll file. Typically this is done to avoid people editing or rebranding their work.
@immi85
@immi85 4 года назад
@@AussieBIMGuru Can you make video for 'zero touch' nodes, how make it what is advantage and disadvantage. If possible 🙂
@AussieBIMGuru
@AussieBIMGuru 4 года назад
@@immi85 i'm not experienced in c# yet so it will be a while! Once i know though, for sure :) This reference is a good starting point in the meantime; forum.dynamobim.com/t/become-a-dynamo-zero-touch-c-node-developer-in-75-minutes/28007
@vijayakumarparri4946
@vijayakumarparri4946 7 месяцев назад
Very useful could you please explain how to change family name by using get and set parameter node by using with out clockwork custom node, want to know design script flow.
@AussieBIMGuru
@AussieBIMGuru 7 месяцев назад
I don't believe it is possible without Python/Revit API unless the setparameterbyname node works with the Name parameter name.
@niccolodipaola8293
@niccolodipaola8293 2 года назад
Hello, Thank you very much for your videos. I am quite close to make this script working in order to rename family types but the node Element.SetName ask me for element value and the data come from the list as string value... how can I solve this, please? Many thanks
@AussieBIMGuru
@AussieBIMGuru 2 года назад
It sounds like you might have connected a node that comes after the family type such as the name, instead of the family type element you wish to set a new value to.
@ahg3395
@ahg3395 4 года назад
Hi Gavin, any chance you could do a new video for renaming family names and types with lists from excel. I've been working on my script but it's failing at the Element.SetName node.
@AussieBIMGuru
@AussieBIMGuru 4 года назад
I'm guessing it's a list management or data type problem. Make sure the elements at the end and the new names are of equal size and that the elements are family types.
@ahg3395
@ahg3395 4 года назад
@@AussieBIMGuru The lists are of equal size. The only difference I can make out, is that the one item is a list but the other item is not, even though I have used getitemat index as the last node prior to going to element.setname.
@AussieBIMGuru
@AussieBIMGuru 4 года назад
@@ahg3395 maybe try flattening the two inputs so they operate at the same levels.
@ahg3395
@ahg3395 4 года назад
@@AussieBIMGuru Yep I did that too. I just don't understand on where I have gone wrong from the GetItemAtIndex node.
@AussieBIMGuru
@AussieBIMGuru 4 года назад
@@ahg3395 maybe email me an image of the script and the warning message. I'll try to spot what it might be.
@ikayunita3683
@ikayunita3683 Год назад
hi thank you soo much for the tutorial, however, may i know how u find the All Family TYpe of Category node? cause I cant find it no matter how i search,I have download clockwork for dynamo 1.x, 0.9x and 2.x package, but i still cant find it , how can i get the custom node? thank you so much
@AussieBIMGuru
@AussieBIMGuru Год назад
It should be under Clockwork > Revit > Selection > Collectors
@ikayunita3683
@ikayunita3683 Год назад
@@AussieBIMGuru thank you soo much, you are such a great teacher, I really hope you will be back to youtube soon, thank you soo much for still taking time to answer our questions even though you are busy and trying to take some time off
@ikayunita3683
@ikayunita3683 Год назад
@@AussieBIMGuru may i ask another questions? as i am trying to change the name in categories of pipes when i try to run the dynamo could not find the list of pipe , how can i fix this?
@AussieBIMGuru
@AussieBIMGuru Год назад
Suggest using dynamo forums for further troubleshooting. Make a thread and the community can help. Too hard to do specific solve via youtube comments.
@ikayunita3683
@ikayunita3683 Год назад
@@AussieBIMGuru thank you very much for your help and reply, it really help me a lot👍👍👍👍
@user-xi3tv8dw5p
@user-xi3tv8dw5p 8 месяцев назад
for the second approach of replacing family names with the existing ones, i have applied and followed the script however it is deleting some of the letters of the family that has an existing name that we replaced. example : for mechanical equipment our list has ABC_ME-Axial Fan and there is a family with no ABC_ like HRV1 so when i ran the second script to change it to ABC_ the existing ones, becomes ABC_E-Axial Fan, (a letter has deleted) then the ones with no existing family name ABC_ will become ABC_ only not ABC_HRV1. is there any better approach? because we just want to rename the families that don't have the prefix yet and ignore the ones that already have
@AussieBIMGuru
@AussieBIMGuru 8 месяцев назад
Yes typically using string.replace is an alternative which should not interfere with any families already using the prefix. You could also filter out any families whose name already has the prefix before going on to assess replacement names as well using string.contains or beginswith.
@iftekharkhan8879
@iftekharkhan8879 3 года назад
If we want to serach loadable family ....then what to type
@AussieBIMGuru
@AussieBIMGuru 3 года назад
The easiest way is to provide both the family name and type name using 'FamilyType.ByFamilyNameAndTypeName'.
@oneiber
@oneiber 7 месяцев назад
Hello, could you also rename the family parameters? Remove prefix to place another, example,PPP_High to EEE_High
@AussieBIMGuru
@AussieBIMGuru 7 месяцев назад
Yes but it is far more complex, especially if they are shared (in which case the parameter is replaced not renamed). I have a video on this topic here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-M6Rz5W5o_-4.html
@oneiber
@oneiber 7 месяцев назад
@@AussieBIMGuru Thank you very much, I will check it out. Normally I must change the prefixes of the parameters, and some parameters of the family are calculated based on others with formulas, for example PPP_Area = PPP_Width x PPP_Height and it becomes complex. For the shared ones, I have tried to reload them by modifying the .txt for each project. I think I will find answers in your video, thank you
@AussieBIMGuru
@AussieBIMGuru 7 месяцев назад
@oneiber unfortunately shared params cannot be replaced by a renamed version of their previous guid. My method is for swapping to new guid parameters.
@iftekharkhan8879
@iftekharkhan8879 2 года назад
When i m tryning to element.set name ...name will be give modify node ...and what about element sir...???
@AussieBIMGuru
@AussieBIMGuru 2 года назад
I'm not sure what you mean, sorry. Set name node will try to change its name in Revit. It could be a family, a family type, a view etc. Many things.
@iftekharkhan8879
@iftekharkhan8879 2 года назад
@@AussieBIMGuru i have send u one screenshot of that.
@AussieBIMGuru
@AussieBIMGuru 2 года назад
@@iftekharkhan8879 hasn't come through.
@iftekharkhan8879
@iftekharkhan8879 2 года назад
@@AussieBIMGuru i m not able to find ur mail id sir...
@AussieBIMGuru
@AussieBIMGuru 2 года назад
I replied to your website request. Oh well. aussiebimguru @ gmail . com
@artlife3434
@artlife3434 3 года назад
How can we change the name of family types?
@artlife3434
@artlife3434 3 года назад
I also want to know how to entirely change the same and not just alter it
@AussieBIMGuru
@AussieBIMGuru 3 года назад
In this case I'm actually changing the name altogether when i set the name by parameter again. If you want to change more in the name itself then you need to build a set of rules for the renaming outcome, dynamo has no smart system to do this for us - the user must design this.
@theanhdinh5294
@theanhdinh5294 2 года назад
I don't replace family. can you help me?
@AussieBIMGuru
@AussieBIMGuru 2 года назад
Not sure what you mean, please clarify with more detailed description.
@MahmoudCharif-MaxArchitecture
@MahmoudCharif-MaxArchitecture 3 года назад
man something keeps wobbling with annoying sounds when you type or move your mouse :/ Good one though!
@AussieBIMGuru
@AussieBIMGuru 3 года назад
Yeah my microphone was loose from the stand unfortunately, so there's a bit of a wobble noise on it for this video, whoops!
@MahmoudCharif-MaxArchitecture
@MahmoudCharif-MaxArchitecture 3 года назад
@@AussieBIMGuru lol, could you possibly show a script for renaming Filled Region Types or Text Types (Mostly, the kind of system families you can't even see in the project browser)
@AussieBIMGuru
@AussieBIMGuru 3 года назад
@@MahmoudCharif-MaxArchitecture I could, however I felt here it was best to show something the user can see update in realtime.
@MahmoudCharif-MaxArchitecture
@MahmoudCharif-MaxArchitecture 3 года назад
@@AussieBIMGuru I am finding a very hard time batch renaming or even deleting such families like Text Types and Filled Region Types. All plug-ins I have seen do not have these type of system families included unfortunately like Family Reviser. I understand you can purge for deleting, but renaming is a pain as you can not even use the project browser to rename them since they do not appear there. I am sure such a script will be super useful for managing Revit Templates
@AussieBIMGuru
@AussieBIMGuru 3 года назад
@@MahmoudCharif-MaxArchitecture the challenge is that these objects can be used in many places typically, for example patterns, fills etc. Personally I use Ideate StyleManager to handle this, although it is a paid add-in it covers nearly every target in a Revit model well. So far it has always managed to work for everything it covers.
@darkhanakhmetzhanov5833
@darkhanakhmetzhanov5833 3 года назад
Hello, could u tell please how to replace families by name?
@AussieBIMGuru
@AussieBIMGuru 3 года назад
Select all in view or project, swap to a new family ideally. If you need to do it using Dynamo then the 'FamilyInstance.SetByType' would do the trick.
@shahidshah9497
@shahidshah9497 2 года назад
can i have this script?
@AussieBIMGuru
@AussieBIMGuru 2 года назад
I keep most of my scripts on my github.
Далее
CAD Blocks to Revit Families using Dynamo!
20:46
Просмотров 13 тыс.
Review Model Warnings using Dynamo!
19:34
Просмотров 6 тыс.
Rename Revit Families With Dynamo
8:37
Просмотров 10 тыс.
Duct support placement using Dynamo!
31:46
Просмотров 21 тыс.
Copy Value by Parameter -Dynamo
6:10
Просмотров 1,4 тыс.