ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinLayerCreationParams Class / TinLayerCreationParams Constructor / TinLayerCreationParams Constructor(TinDataset)
A ArcGIS.Core.Data.Analyst3D.TinDataset object.
Example

In This Topic
    TinLayerCreationParams Constructor(TinDataset)
    In This Topic
    Creates a parameter object with a ArcGIS.Core.Data.Analyst3D.TinDataset.
    Syntax
    Public Function New( _
       ByVal tinDS As TinDataset _
    )
    public TinLayerCreationParams( 
       TinDataset tinDS
    )

    Parameters

    tinDS
    A ArcGIS.Core.Data.Analyst3D.TinDataset object.
    Example
    Create a TinLayer from a dataset
    {
      var tinCP_ds = new TinLayerCreationParams(tinDataset);
      tinCP_ds.Name = "My TIN Layer";
      tinCP_ds.IsVisible = false;
    
      //Create the layer to the TIN
      // Note: Needs QueuedTask to run
      {
        var tinLayer_ds = LayerFactory.Instance.CreateLayer<TinLayer>(tinCP_ds, map);
      }
    }
    Create a TinLayer with renderers
    {
      var tinCP_renderers = new TinLayerCreationParams(tinDataset)
      {
        Name = "My TIN layer",
        IsVisible = true
      };
    
      // define the node renderer - use defaults
      var node_rd = new TinNodeRendererDefinition();
    
      // define the face/surface renderer
      var face_rd = new TinFaceClassBreaksRendererDefinition();
      face_rd.ClassificationMethod = ClassificationMethod.NaturalBreaks;
      // accept default color ramp, breakCount
    
      // set up the renderer dictionary
      var rendererDict = new Dictionary<SurfaceRendererTarget, TinRendererDefinition>
    {
      { SurfaceRendererTarget.Points, node_rd },
      { SurfaceRendererTarget.Surface, face_rd }
    };
    
      // assign the dictionary to the creation params
      tinCP_renderers.RendererDefinitions = rendererDict;
      // Note: Needs QueuedTask to run
      {
        // create the layer
        var tinLayer_rd = LayerFactory.Instance.CreateLayer<TinLayer>(tinCP_renderers, MapView.Active.Map);
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also