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
------------------------------
Original Message:
Sent: 10-15-2019 19:07
From: Kelvin Ng
Subject: Using Multiple Trimble.Connect.Desktop.API.Filters.AttributeFilter
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?