ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMFilteredFindPathsEntity Class / PropertyFilterPredicate Property
Example

In This Topic
    PropertyFilterPredicate Property (CIMFilteredFindPathsEntity)
    In This Topic
    Gets or sets the property filter predicate (openCypher syntax) associated with the path filter. The predicate is only taken into account when ID has no value.
    Syntax
    public string PropertyFilterPredicate {get; set;}
    Public Property PropertyFilterPredicate As String
    Example
    Run FFP Using PropertyFilterPredicates
    //using ArcGIS.Core.Data.Knowledge.Extensions;
    
    await QueuedTask.Run(() =>
    {
        var ffp_config = new CIMFilteredFindPathsConfiguration();
        ffp_config.Name = "Run FFP w PropertyFilterPredicates";
    
        //Origin Entities
        var originEntities = new List<CIMFilteredFindPathsEntity>();
    
        var origin_entity = new CIMFilteredFindPathsEntity();
        origin_entity.EntityTypeName = "POI";
        //prefix can be anything - foo, bar, fred, n, x, etc.
        origin_entity.PropertyFilterPredicate = "n.name = 'Robert Johnston'";
        originEntities.Add(origin_entity);
    
        var origin_entity2 = new CIMFilteredFindPathsEntity();
        origin_entity2.EntityTypeName = "EnergySource";
        //prefix can be anything - foo, bar, fred, n, x, s, etc.
        origin_entity2.PropertyFilterPredicate = "s.Source_Name = 'natural gas'";
        originEntities.Add(origin_entity2);
    
        //etc.
    
        //Add the CIMFilteredFindPathsEntity to the OriginEntities collection
        ffp_config.OriginEntities = originEntities.ToArray();
    
        //Destination Entities
        //Same thing, add specific entities using a PropertyFilterPredicate as needed
        var destEntities = new List<CIMFilteredFindPathsEntity>();
    
        var dest_entity = new CIMFilteredFindPathsEntity();
        dest_entity.EntityTypeName = "Supplier";
        //prefix can be anything - foo, bar, fred, n, x, s, etc.
        origin_entity.PropertyFilterPredicate = "x.Supplier_Name = 'Supplier 84'";
        destEntities.Add(dest_entity);
    
        //etc.
        //Add the CIMFilteredFindPathsEntity to the OriginEntities collection
        ffp_config.DestinationEntities = destEntities.ToArray();
    
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also