This will test if a slope can be applied to the part and maintain connections with any connected parts.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public bool CanASlopeBeApplied()
Return Value
BooleanReturns true if the part can be successfully sloped otherwise false.