Is there a way to select objects in multiple layers but all the layers have a common phrase? Like to use a wildcard character or something
Think of it this way:
- Get all objects (
All Objects of Type
orBlock.Objects
) - Get their layers (
Object.Layer
) - Check the layer names to see if they match your condition (
String.Contains
) - Filter the original list of objects with
List.FilterByBoolMask
In other words, get all the objects and filter out the ones you don’t want.
Yeah I am trying to do just that but my layers are named like this “X STR ABDFGH” “Y STR HKJHKJ” “Z STR HKJHKJH” so I just want to filter by items where the layer contains “STR” but I can’t necessarily list every layer
So for the String.Contains
node, the string to check might be STR
?
Trying to use string.contains but the source list is a list of objects (polylines) and it is expecting a string
Try step 2 above
1 Like
OOH. OK looks like the mask is working but now the filter doesnt like the input.
Error is dereferencing a non pointer
I meant to be on @L1, figured it out. Thanks!!