I would like to create a sweep using the NewSweep method. One of the expected parameters is Profile. Reading the documentation this could be a profile family. I can get my profile family like this:
FamilySymbol newFSP = (from elem in new FilteredElementCollector(doc) .OfClass(typeof(FamilySymbol)) let type = elem as FamilySymbol where type.FamilyName == "Profile_HalfRound" select type).FirstOrDefault();
But i need a FamilySymbolProfile type (which inherits from SweepProfile). How do i get a FamilySymbolProfile type reference from my profile family?
I have tried modifying the linq above (changing typeof etc) but without success.
Solved! Go to Solution.
Link copied