Revit Family Parameter Values In Family Editor

Hi Everyone,

Is is possible to get family parameter values inside family editor in Dynamo? I have seen formula values has been extracted in this topic Revit Family Equations by API Guru/Master Kulkul.

Are you trying to get the Type parameters of a family instance?

No. I am trying to get parameter value inside family Editor not for family instance. You can refer to the above link Kulkul has done it for formula. I am looking for the parameter value inside family.

Ok! In that case try to replace p.Formula with p.ToString()

Thanks Einar but still it doesn’t shows the parameter value :confused:

The values does not seem to be available in the API. You could type the values in the formula field to use Kulkuls script.
Or temporarily place an instance of the family and get the values from that.
Here are the available methods and properties:

Thanks Einar will do that. But may be Kulkul has the answer. Where to find him? Does he has any blog?

You can ping @Kulkul by adding a @ before his name.

@craig replace p.Formula with “p.Definition.Name”.


@Kulkul Wow your really amazing. I know you can do this your the master :slight_smile: Thank you so much. Cheers!

@Einar_Raknes Thanks for your support.

1 Like

@craig I am not master. The real masters are Bad Monkeys @Dimitar_Venkov @Konrad_K_Sobon @Andreas_Dieckmann. I am just helping people on the forum.



Can you show the complete code? I would have thought that Definition.Name returns the name of the parameter?

Someone @Kulkul @craig @Einar_Raknes could write the final code for reading the parameter value. Because i’m trying this and of course returns me the parameter name, not the value:

import clr

# Import RevitAPI
from Autodesk.Revit.DB import FamilyManager

# Import DocumentManager and TransactionManager
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

pl = doc.FamilyManager.Parameters

Name_Parameter = IN[0]
for p in pl:
	a = p.Definition.Name
	if a == Name_Parameter:
		OUT = p.Definition.Name

Hi @Raul.Galdran

Could you please ask your query in a new thread. Thanks :slight_smile: