Hello there. I am trying to create my own node for delete material from family. Next step will be bath delete materials from several families.
My script work good by it own.
But when i try to create personal node it delete all materials from my family.
I think my problem is i cant really take my list into personal script. What can i do?
Firstly, you will need a ‘material.name’ node between your ‘allelementsoftype’ and the ‘list.firstindexof’ (where I have drawn the blue box) as you are inputting strings and trying to find materials.
Then, you have your inputs the wrong way round for your list.FirstIndexOf node. Swap it so your list of input material names is the list and the item is your input search strings.
Make sure your input nodes have the correct data type and structure set up. You are currently missing the tooltip, object type assignment, and data structure. The primer explains what needs to happen to assign each of these.
https://primer.dynamobim.org/10_Custom-Nodes/10-2_Creating.html
Something like this should do the trick:
//The material names to delete
materialNames: string []
yep, missind that node. ty
ty, it’s work now
1 Like



