Prompts the user to place an element type onto a legend view.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public void PromptToPlaceElementTypeOnLegendView( ElementType elementType )
Parameters
- elementType ElementType
- The ElementType of which instances are to be placed.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input element type does not belong to a model-level category. |
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. -or- Thrown when the active view isn't a legend view. -or- Can not create this kind of element in legend view. |