Curtain grid lines cannot be copied. If you are trying to copy the curtain wall, try using tab to select entire wall.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static FailureDefinitionId CannotCopyGridLinesWarn { get; }