Change parameters of revit family using API using c#

Change parameters of revit family using API using c#

Anonymous
Not applicable
1,516 Views
1 Reply
Message 1 of 2

Change parameters of revit family using API using c#

Anonymous
Not applicable

How can change parameters in revit using c#

0 Likes
1,517 Views
1 Reply
Reply (1)
Message 2 of 2

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous,

1)you can get the builtin parameters using

element.get_Parameter(BuiltInParameter.your_parameter);

2)If you know the name of the parameter 

element.LookupParameter("Your parameter as string");

To set the value for the parameters

element.get_Parameter(BuiltInParameter.your_parameter).Set();
element.LookupParameter("Your parameter as string").SetValueString("string value which you want to assign to your parameter");

Naveen Kumar T
Developer Technical Services
Autodesk Developer Network