Create new revit project parameter from dynamo

Solved my problem (almost)

Can set a project paramter, see post below

http://dynamobim.com/forums/topic/element-setparameterbyname-doesnt-take-lists/

Hi Everyone;

Konrad,
I tried to use your script but was not able to solve this error:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed. Traceback (most recent call last): File "<string>", line 91, in <module> TypeError: Create() takes exactly 1 argument (3 given)
This is related to the last line of this part (around line 91)

 

group = file.Groups.get_Item(_groupName)
if group == None:
group = file.Groups.Create(_groupName)
if group.Definitions.Contains(group.Definitions.Item[_paramName]):
_def = group.Definitions.Item[_paramName]
else:
_def = group.Definitions.Create(_paramName, _paramType, _visible)

 

Do you have any idea on the issue?

 

Thanks

 

Yes, same problem here – the node doesn’t work.

now it works, see: http://dynamobim.org/forums/topic/shared-parameter-creation-from-list/

I am very new to Dynamo but I am trying to use the Add Shared Parameter to Project node to create various visible and invisible parameters to then use to make a custom sheet index schedule in Revit 2016. I am struggling to get the node to work. It either returns “null” or “function” each time I run it. I am very new to python and designscript and was wondering if someone could walk me through how to get the node to work properly.

This thread is over two years old and has a lot of confusing information as a result. Please create a new post and link back to here, including relevant links to any relevant files, and an example of what you have tried (use a camera export not a screenshot, and host elsewhere if you don’t have image posting rights yet.

1 Like