ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / LayerIsCompatibleWithRulePackage Method
The full path to the rule package
The layer to check the compatibility of the rule package against

In This Topic
    LayerIsCompatibleWithRulePackage Method (SymbolFactory)
    In This Topic
    Checks the compatibility of the rule package geometry with the feature layer shape type for use as a renderer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public bool LayerIsCompatibleWithRulePackage( 
       string rulePackagePath,
       FeatureLayer featureLayer
    )
    Public Function LayerIsCompatibleWithRulePackage( _
       ByVal rulePackagePath As String, _
       ByVal featureLayer As FeatureLayer _
    ) As Boolean

    Parameters

    rulePackagePath
    The full path to the rule package
    featureLayer
    The layer to check the compatibility of the rule package against

    Return Value

    True if the geometry type of the rule package matches the geometry type of the layer
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    {rulePackagePath} not found or is inaccessible
    Cannot use rule packages that create leaf shapes with procedural symbols.
    Invalid layer geometry type.
    Procedural symbol cannot be applied to rasterized feature layers. Feature layers that are in the 2D Layers group in the Contents pane are rasterized
    Remarks
    Checks:
    • The rule package is supported (geometry output type must be combined shape)
    • The output geometry of the features (in the feature layer) is one of "Point | Polygon | Multi-path"
    • The feature layer is not flattened (i.e. Procedural symbols cannot be applied to feature layers that are in the 2D Layers group. They will be rasterized. Procedural symbols can only be applied to layers in the 3D Layers group
    • The input geometry type of the rule package matches the geometry type of the layer
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also