views:

132

answers:

1

I am using the revit api to import a family symbol. The code below is working however it loads the family into revit, and then you have to manually drag it from the familys tree or insert using the relevant family tool.

Document document = commandData.Application.ActiveDocument;
document.LoadFamilySymbol(fileName, name, out gotSymbol);

How do i get it to the point where it is asking the user where they want it placed? (similar to when you click "load into project" when you are editing a family) so they dont have to drag it from the familys tree

+1  A: 

The UIDocument class has a method called 'PromptForFamilyInstancePlacement' which accepts the symbol. Give that a go.

RodH257