ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMMeshSymbol Class
Members Example

In This Topic
    CIMMeshSymbol Class
    In This Topic
    Represents a mesh symbol which is used to draw multipatch features or mesh features.
    Object Model
    CIMMeshSymbol ClassCIMAnimatedSymbolProperties ClassCIMMeshSymbol ClassCIMMeshSymbol Class
    Syntax
    Example
    Mesh material fill symbol
    /// <summary>
    /// Create a mesh symbol that can be applied to a multi-patch feature layer.
    /// A mesh symbol is a CIMMeshSymbol object.  Define an array of CIMSymbolLayers which contains a CIMMaterialSymbol layer with the specified properties such as Color, etc.
    /// Assign this array of CIMSymbolLayers to the CIMMeshSymbol.
    /// ![MeshSymbolOrange](https://ArcGIS.github.io/arcgis-pro-sdk/images/Symbology/mesh-material-orange.png)
    /// </summary>
    {
      //Note: Run withing QueuedTask
      CIMSymbolLayer[] materialSymbolLayer =
            {
                  new CIMMaterialSymbolLayer()
                  {
                      Color = ColorFactory.Instance.CreateRGBColor(230,152,0),
                      MaterialMode = MaterialMode.Multiply
                  }
             };
      var meshMaterialFillSymbol = new CIMMeshSymbol()
      {
        SymbolLayers = materialSymbolLayer
      };
    }
    Mesh procedural texture symbol
    /// <summary>
    /// Creates Mesh procedural symbol with various textures.
    /// ![MeshProceduralTexture](https://ArcGIS.github.io/arcgis-pro-sdk/images/Symbology/mesh-procedural-texture.png)
    /// Note: The rule package used in this method can be obtained from the Sample Data included in the arcgis-pro-sdk-community-samples repository.
    /// </summary>
    {
      //Note: Run withing QueuedTask
      string _rulePkgPath = @"C:\Data\RulePackages\MultipatchTextures.rpk";
      CIMSymbolLayer[] proceduralSymbolLyr =
              {
                  new CIMProceduralSymbolLayer()
                  {
                      PrimitiveName = "Textures",
                      RulePackage = _rulePkgPath,
                      RulePackageName = "Textures",
                  }
              };
      var meshProceduralTextureSymbol = new CIMMeshSymbol()
      {
        SymbolLayers = proceduralSymbolLyr
      };
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMSymbol
             ArcGIS.Core.CIM.CIMMultiLayerSymbol
                ArcGIS.Core.CIM.CIMMeshSymbol

    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also