Places a request on Revit's command queue for the user to place instances of the specified ElementType. This does not execute immediately,
but instead when control returns to Revit from the current API context.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public void PostRequestForElementTypePlacement( ElementType elementType )
Parameters
- elementType ElementType
- The ElementType of which instances are to be placed.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The user cannot be prompted to place the input type interactively. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This document is not the currently active one. -or- Starting a new transaction is not permitted. It could be because another transaction already started and has not been completed yet, or the document is in a state in which it cannot start a new transaction. |