Getting all Symbols from Family in Revit 2018

Getting all Symbols from Family in Revit 2018

WorldDue
Enthusiast Enthusiast
1,780 Views
2 Replies
Message 1 of 3

Getting all Symbols from Family in Revit 2018

WorldDue
Enthusiast
Enthusiast

Seems to me that the property Symbols is not there in Revit API 2018, Is there any alternative method to get all the Symbols in a Family, also is it me or the Cast<T>() is also deleted?

0 Likes
Accepted solutions (1)
1,781 Views
2 Replies
Replies (2)
Message 2 of 3

WorldDue
Enthusiast
Enthusiast

Ignore the Cast<T> question, it's a Linq extended function.

0 Likes
Message 3 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution
  • Open the Revit API documentation.
  • Look at the Family member methods.
  • Discover the GetFamilySymbolIds method:

 

http://www.revitapidocs.com/2018.1/8989a269-c516-0ace-5365-864a61df1103.htm

 

Alternatively, read the Revit API What's New documents:

 

http://thebuildingcoder.typepad.com/blog/2014/04/whats-new-in-the-revit-2015-api.html#2.06

 

Family.Symbols

 

The property Family.Symbols has been obsoleted – use

 

  • Family.GetFamilySymbolIds()

as a replacement.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder