ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMBasicFeatureLayer Class / IsFlattened Property
Example

In This Topic
    IsFlattened Property (CIMBasicFeatureLayer)
    In This Topic
    Gets or sets a value indicating whether the layer is rasterized and draped against the surface in 3D scenes.
    Syntax
    Public Property IsFlattened As Boolean
    public bool IsFlattened {get; set;}
    Example
    Move a layer in the 2D group to the 3D Group in a Local Scene
    {
        //The layer in the 2D group to move to the 3D Group in a Local Scene
        //Get the layer's definition
        //Note: needs to be called on the MCT
        var lyrDefn = featureLayer.GetDefinition() as CIMBasicFeatureLayer;
        //setting this property moves the layer to 3D group in a scene
        lyrDefn.IsFlattened = false;
        //Set the definition back to the layer
        featureLayer.SetDefinition(lyrDefn);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also