Non-Hosted Family Hosted to a Floor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Since, I think, Revit 2013 we've been having issues with Families being hosted to Floors, even though the Family is NOT hosted. It will host to the Level when the Family is placed not over a Floor. If I make the Family "Work Plane-Based" then the user has to select "Place on Work Plane", because the default is to place "Work Plane-Based" Families "Place on Vertical Face", even though the Family is set to "Always vertical". This sounds like a BUG to me, but it hasn't been fixed in YEARS, so I want to have a solution for my users.
So here's the issue with trying to create an API workaround:
The Revit properties window shows the FamilyInstance with:
Level == 1ST LEVEL
Host == Floor : Concrete-4
However, the FamilyInstance.Host == Null && FamilyInstance.HostFace == Null && FamilyInstance.HostParameter == Null, BUT the FamilyInstance.get_Parameter(BuiltInParameter.INSTANCE_FREE_HOST_PARAM).AsString() == "Floor : Concrete-4", which is Read-Only. I can use this Parameter to determine the "Host" so I know which FamilyInstance will need to be fixed.
How do I assign the Level as the new "Host" to the FamilyInstance?
BIM Manager
HuntonBrady Architects