/// <summary> /// Creates Mesh procedural symbol with various textures. ///  /// </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; }); }
Target Platforms: Windows 11, Windows 10