I am attempting to import geometry from another .3dm which contains 3 curves and a point. I would like to filter the content for geometries of type “Curve”:
I’m not really sure why this question came up on this thread as it doesn’t really have anything to do with the Content Cache component… but I think you can do something like this. You can use the Group Content to group all of the objects together by a certain type… or you can filter the model objects with different filters like Match Text or Contains Text.
Hi, (sorry about the multiple threads and if I am being a bother) How do I go about querying for geometries that have a name?
If I simply put down a Contains Text Filter, the Text input is <empty> and I can search for geomtries without a name… which followed by Logical Not Filter gives me geometries with a name. However, once I have right-clicked Clear values on the Text input, I have no way of directly setting Text’s input value to <empty> short of connecting an empty panel to the input and internalizing the input. Is there a correct way of doing this?
Also, it seems that I cannot directly write a filter string to the Filter input of Filter Content. Is there a reason for this? Will this remain this way?
You could do something like this. You can create more complex filtering operations by using the Logical AND, OR, or NOT filters. Here I’m using an AND condition so that it checks both for the Curve type and any object whose name is empty. However, when I feed those two filters into the Logical AND filter, I add the Negate option which essentially inverts the condition… so instead of filtering for objects whose name is empty, now it will filter objects whose name is not empty. Combining those two together returns only curves whose objects contain a name.
Thank you, Andy, and also, sorry, that “bug” is not a bug. Very embarrasing. I didn’t realize that the Limit input was still exposed and what it did. I assumed it was a limit on the number of successful queries, but it seems it is the number of items queried… Is it tied to the list length of a branch, or the length of all items in the tree?