Trimble Connect User Forum

 View Only
Expand all | Collapse all

Using Multiple Trimble.Connect.Desktop.API.Filters.AttributeFilter

  • 1.  Using Multiple Trimble.Connect.Desktop.API.Filters.AttributeFilter

    Posted 10-15-2019 19:07

    For Trimble Connect for Desktop, the Developer Guide shows and example of using a single AttributeFilter:

     

    // Gets the model objects where the Length property value starts with 7200.
    var modelObjectsByLength = model.ModelObjectManager.GetModelObjects(new AttributeFilter("Length", "7200")).ToList();

     

    Is it possible to use possible to use multiple AttributeFilter to get the objects that I want?



  • 2.  RE: Using Multiple Trimble.Connect.Desktop.API.Filters.AttributeFilter

    Posted 10-24-2024 02:21

    Sorry to waken an old thread but I have the same question. After filtering down to only view model object type of "IFCELEMENTASSEMBLY" I would like to narrow the criteria down further but doing it manually by going through the returned list is tediously slow compared to the API filter system.

    Is there a way to either combine filters as you can do in Tekla Structures API or to filter the list using an attribute filter. For example I want to filter out any dummy objects by removing anything with "DUMMY" in the Name attribute.



    ------------------------------
    Steven Holding
    ------------------------------