Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66736

Re: get FamilySymbol from Family

$
0
0

For fabrication you need to use BuiltInParameter.ELEM_FAMILY_PARAM to get the name.

here is a quick macro Example.

 

Document doc =	this.ActiveUIDocument.Document;
View view = doc.ActiveView;
 FilteredElementCollector collection =  new FilteredElementCollector( doc,view.Id ).OfClass( ( typeof( FabricationPart ) ) );
TaskDialog.Show("Fabrication Part", collection.FirstOrDefault().get_Parameter(BuiltInParameter.ELEM_FAMILY_PARAM).AsValueString());

hope it helps :)


Viewing all articles
Browse latest Browse all 66736

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>