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

Re: Loading rfa and accessing family instance

$
0
0

Hi again!

Yes all good, thanks. Hope you are also?

 

It's quite easy (once you know!):

  	Dim symbolIds As ISet(Of DB.ElementId) = family.GetFamilySymbolIds
        Dim doc As DB.Document = family.Document
         For Each id As DB.ElementId In symbolIds
            Dim element As DB.Element = doc.GetElement(id)
            Dim familySymbol As DB.FamilySymbol = TryCast(element, DB.FamilySymbol)
	    'do something with your familySymbol, or store it for later use.
	 Next

If you got an elementId some other way, you should also have to check that the familySymbol object isNot nothing - it may be another element type.

 

 

Cheers,

 

-Matt


Viewing all articles
Browse latest Browse all 66693

Trending Articles



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