How can I find a FamilySymbol through a FamilyInstance Parameter ?

How can I find a FamilySymbol through a FamilyInstance Parameter ?

Bruno_Neves_Pires_Silva
Advocate Advocate
226 Views
2 Replies
Message 1 of 3

How can I find a FamilySymbol through a FamilyInstance Parameter ?

Bruno_Neves_Pires_Silva
Advocate
Advocate

            I want to insert a FamilyInstance that contains a parameter named 'XPTO.' How do I find the right FamilySymbol since the parameter is in the FamilyInstance, not in the FamilySymbol? The name of the FamilySymbol is not known.

 

Thank you in advance

0 Likes
227 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

Filtered element collector to retrieve all family instances, check each one for the required parameter; when the correct instance is found, call its FamilyInstance.Symbol property:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

Bruno_Neves_Pires_Silva
Advocate
Advocate

But I don't have any familyInstance inserted yet.

 

I want to find a FamilySymbol that when is inserted, the result FamilyInstance will have the parameter "XPTO".

0 Likes