Attached groups can only be created for view specific elements belonging to non-3d model views.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static FailureDefinitionId BadViewForAttachedGroupWarn { get; }