Message 1 of 5
assign level to "Mass Floors" parameter of mass FamilyInstance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Revit 2014, C# .NET
How do I assign level to "Mass Floors" parameter of mass FamilyInstance programmatically?
I have succesfully loaded and inserted a mass family instance and tried to access "Mass Floors" in the way below.
FamilyInstance newMassInstance = doc.Create.NewFamilyInstance(location, familySymbol, level, StructuralType.NonStructural);
Parameter mfParameter = newMassInstance.get_Parameter("Mass Floors");
if (mfParameter != null)
{
mfParameter.Set(level.Name); <<--- this does not work
//mfParameter.Set(2); <<--- this does not work either
}
Thanks