I've been writing an enhanced "Component" command for Revit, something that shows the families a little more sorted and easier to find. I've got most of it done but I'm a little stuck on how to actually add the selected family to the project.
I'm aware of the Document.NewFamilyInstance Method and it's overrides but I'm not sure how to select which override to use. For example how do I detect if a family is wall or floor hosted. Would that be in the parameters too? Or is there a way to pass a family name to the native component command in Revit?