ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMProceduralSymbolLayer Class / RulePackage Property
Example

In This Topic
    RulePackage Property (CIMProceduralSymbolLayer)
    In This Topic
    Gets or sets the URI of the referenced rule package file.
    Syntax
    public string RulePackage {get; set;}
    Public Property RulePackage As String
    Example
    Snippet Mesh procedural texture symbol
    /// <summary>
    /// Creates Mesh procedural symbol with various textures.
    /// ![MeshProceduralTexture](http://Esri.github.io/arcgis-pro-sdk/images/Symbology/mesh-procedural-texture.png)
    /// </summary>
    /// <remarks>Note: The rule package used in this method can be obtained from the Sample Data included in the arcgis-pro-sdk-community-samples repository.</remarks>
    /// <returns></returns>
    private static readonly string _rulePkgPath = @"C:\Data\RulePackages\MultipatchTextures.rpk";
    public static Task<CIMMeshSymbol> CreateProceduralMeshSymbolAsync()
    {
        return QueuedTask.Run<CIMMeshSymbol>(() =>
        {                  
            CIMSymbolLayer[] proceduralSymbolLyr =
            {
                new CIMProceduralSymbolLayer()
                {
                    PrimitiveName = "Textures",
                    RulePackage = _rulePkgPath,
                    RulePackageName = "Textures",
                }
            };
            var myMeshSymbol = new CIMMeshSymbol()
            {
                SymbolLayers = proceduralSymbolLyr
            };
    
            return myMeshSymbol;
        });
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also