- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm wondering if all parameters found on a FamilyInstance are by definition family parameters or if it is possible for some of them to be project parameters applied to the family, and if so, how do you tell the difference between the two?
So for example, if you use the following code to filter out just the FamilyInstance objects and look at their associated parameters:
ElementClassFilter FamilyInstanceFilter = new ElementClassFilter(typeof(FamilyInstance));
FilteredElementCollector FamilyInstanceCollector = new FilteredElementCollector(RvtDoc);
ICollection<Element> AllFamilyInstances = FamilyInstanceCollector.WherePasses(FamilyInstanceFilter).ToElements();
FamilySymbol FmlySmbl;
Family Fmly;
foreach (FamilyInstance FmlyInst in AllFamilyInstances)
{
FmlySmbl = FmlyInst.Symbol;
Fmly = FmlySmbl.Family;
// Look through the following ParameterSets (valid code has been left out)
FmlyInst.Parameters;
FmlySmbl.Parameters;
Fmly.Parameters;
}
Will any of the parameters from the ParameterSets above be Project Parameters? If so, what property of the Parameter class tells you whether you have a Family Parameter or Project Parameter?
Conversely, if none of them can be Project Parameters, then how does one get at the Project Parameters added to a particular Family or is that not possible to do?
Thanks
Solved! Go to Solution.