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: 

Assign a family Instance to a Family Parameter?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
PhillipM
335 Views, 1 Reply

Assign a family Instance to a Family Parameter?

Hi Guys.

 

I'm sure this is possibloe but can't find the function anywhere.  Is it possible to assign a family Instance to a family Paramater through the API as it is through the Revit GUI.

 

Please refer to this video for an explaination.

 

http://youtu.be/3HbCKLuOvUo

 

Any help appreciated.

 

Cheers

 

Phillip

1 REPLY 1
Message 2 of 2
PhillipM
in reply to: PhillipM

Ok Found it.  

 

Its a matter of setting the "BuiltInParameter.ELEM_TYPE_LABEL"  with the Family Paramater ID as per below.

 

  fi.Parameter(BuiltInParameter.ELEM_TYPE_LABEL).Set(SpparmADA2.Id)

 

Cheers

 

Phillip

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community