To Create Similar from a Legend View, first select the element, then activate the target view, then invoke Create Similar.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static FailureDefinitionId SwitchFromLegendBeforeCreateSimilar { get; }
