I am using mostly nodes from the Crumple package and first had a script to add a shared parameter to multiple families in a directory which worked great. The parameter (ELEC HARDWARE) I added is a yes/no type and when it was added the default value was set to yes (1) but I need to change to no (0). I am using a similar set of nodes but this time with FamilyDoc.SetParameterValues but continue to get null for the results. There is a similar OTB node but couldn’t get the correct inputs for that to work so went back to the Crumple nodes. I’ve checked my inputs a few times and think I have things correct but wondering if it is the list structure. I tried running the node at different list levels for each input but still had no luck.
I haven’t used that node but assuming the rest of your inputs are correct, your value needs to be a number. Right now you have "0"
which is a string - you need to remove the quotes.
I would also guess that your input structures and list levels are slightly off. I’d recommend duplicating the input value to match the nameOrTypeLists
structure.
Thanks Nick. How do I make a list of 0’s that match the type list structure? I tried that and wasn’t finding an easy way either.
Count the number of items in the nameOrTypeLists
sublists and then duplicate the value to match. List.Count
and List.Cycle
should get you there.
I got that to work so now I have a list of 0’s that match the list structure. Still when I run, I get a list of nulls back. @GavinCrump any insight to what I have off for inputs and/or levels here?
You may also need to get your parameter and type inputs to match as well. This is where I’m afraid I don’t know the node well enough to know what kind of input structure it’s expecting.
Generally my nodes take data in a very set structure, so dont list cycle or use list levels.
Hover over the inputs and they will tell you the structure they want. Typically longest lacing based on familydoc count will also be enforced.
If it still doesnt work from there please list out the exact process you are trying to achieve and ill test an example. E.g. are you trying to set the parameter value for all types of all familydocs with a paramater name to one value.
Actually to add to this I made this node to work with an excel round trip. Getting a suitable list structure in dynamo for setting values was just too hard, as its lists of values for lists of types for lists of family documents - super messy in visual coding.
Have at look at the get/set parameter value scripts here:
Hi @jeffr another way could probably be birdtool multiplayer, and then just ootb nodes…
I’ll try to clean up the input and not use the list levels that I have currently. My situation might be somewhat simpler that I am just trying to take a set of families in a folder and for all the types assign a single value (0) to a single parameter (ELEC HARDWARE). I was trying to avoid the need to input with excel since it was the single parameter with one value but can check out those nodes if it will be easier. Let me know if there is an easy adjustment in my script based on my scenario, thanks Gavin.
Not with my nodes as coded currently.