Add shared parameters to project from list


#1

I saw that this topic pasted allready a lot of times, but i encounter problem with revit 2017 to make it work:
I am working with the custom node from Konrad Sobon. But to see where the error is, i put his python scipt directly in the dynamo file:

Ands i get this error:
IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 97, in
AttributeError: ‘NoneType’ object has no attribute ‘Count’

does anybody have an idea?


#2

Why are you not giving a parameter name?


#3

because the function does not accept lists, it seems. I use it as a function.


#4

same issue


#5

You may need to use the select parameter group and select parameter type nodes instead of that Python script. Feels like you might be feeding the wrong stuff (maybe a list instead of the correct element) as a result of the Python.


#6

still the same.


#7

Is your parameter called test01?


#8

for testing purposes, yes.


#9

But you actually have a parameter in your shared parameter file with that name right? Can you show the parameter information for test01?


#10

there is no parameter “test01” yet in the shared parameter file. The node from Konrad Sobon adds the parameter first to the file and than to the project.


#11

Well it looks like the node doesn’t take Parameter Group as a string anymore. You’ll need to use Data-Shape’s ParameterGroup list node and filter the correct group to use.


#12

I also don’t think it adds the parameter to the file if it doesn’t exist. At least, it doesn’t for me.


#13

I missed your answer, but anyway thanks for your help. I will try something out, this afternoon again.


#14

finally I used the script from DataShapes to make the project parameters from the shared parameter file.

Thanks!!