Revit API Forum
Welcome to Autodeskā€™s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Change parameters of revit family using API using c#

1 REPLY 1
Reply
Message 1 of 2
Anonymous
1296 Views, 1 Reply

Change parameters of revit family using API using c#

How can change parameters in revit using c#

1 REPLY 1
Message 2 of 2
naveen.kumar.t
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community