Hello people,
I’m working on a routine where you want to:
Select all door families in my project (done)
Get the information “door to” (clockwork) = Room Name (done)
Get all the signalling families nested in the doors
Obs. These families are always Generic models of subcategory “visual communication”, and their names always use ID.G + Number (defined by customer standard) + Name of the room
(currently struggling)
You are trying to split an element with string.split (it requires a string). You can use string.object or Element.Name (recomended).
You will also need to filter your list of nested families so you can set its parameter (I think that is what you are trying to do). Right now you have your doors plugged into Element.SetParameterByName (This will set a parameter for your doors). You can filter your list with String.Contains and List.FilterByBoolMask (This will remove all of your AC families). I can see one of your doors has two ID.G families so you will need to solve that as well.
Thank you so much for the answer @Steven! I followed your suggestions and now I’m almost done with the routine, I just need to find a way to remove the last characters from the names of very long rooms, because we never end up having space in the view to insert them without abbreviations.MATCH PLAQUINHAS.dyn (110.9 KB)
Hello @Steven, So I tried something like this in this file that I sent (and the image below) but I would like Dynamo to “read” only the first letters of each word (say, read the first 4). For example, in Hello World this would become “Hell Worl” But in “Hope this Help” it would remain the same “Hope this Help” (after all, each word in “Hope this Help” has 4 letters)