Set parameter inside the family it was created

Hello all, I’m new to Dynamo, this is my first post, so… here goes:

In the mass environment I created a simple rig, a couple of RP’s and parameters to drive them (b_ and d_).

I would like to automate the values of those parameters in Revit. Is it possible to do it inside the mass family and how, or do I need to load the family in project to do so?

I’m quite sure the lack of pictures is not an issue for a simple problem.

Hope I advance fast and contribute soon :slight_smile:

Thx for your help.

The lack of images is somewhat difficult actually. From the sounds of it, yes you can settle parameters inside the family environment. It should be the same as setting parameters of any elements

Ok, I should have known better.

Here’s the screenshot of my poor attempt at this.

I’m trying to figure out how to drive the 2 parameters with dynamo.

Thx for the help

Hi @vuk.vukanic ,
what your are trying to do is set the value of a parameter in the active family. There are no OOTB nodes to do so, but It’s possible with some pyton :

import clr
from Autodesk.Revit.DB import*

from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

param_name = IN[0]
param_value = IN[1]

param_list = doc.FamilyManager.GetParameters()
names = [p.Definition.Name for p in param_list]
par1 = None
if param_name in names:
	par1 = param_list[names.index(param_name)]
if par1 != None:
	try :
		OUT = 'Success'
		OUT = 'Failed'
else :
	OUT = 'Failed'
1 Like

Thank you for confirming my suspicions, about the OOTB node.
I will give it a try.

Thx again

Works just great, just not thrilled about the units being in inches.

here’s the capture

Sorry to bring this up, am trying to do the same.
But what i need to do is to set one unique value to multiple parameters.

i tried this way :
parameters :


Value :


but it’s not working.
It’s working for single parameter though,


I tryed substituting the number slider by a code block with a number. The Script doesn’t work anymore, does anyone know why?

Thanks in advance