There are several ways to create specific elements in the Revit API, such as Wall.Create or Document.NewFamilyInstance. These methods immediately generate the corresponding elements in the document upon execution. However, if you want to utilize Revit’s interactive creation interface, the process is different: first, the user clicks the element creation button, then selects the type or adjusts parameters, moves the mouse over the workspace to preview the element, and finally clicks to place it.
In this scenario, you can use UIDocument.PostRequestForElementTypePlacement to initiate element creation. This method requires passing an ElementType, which simulates clicking the corresponding element creation button. After calling this, the user is prompted to complete the creation process through the interface.













Must log in before commenting!
Sign Up