I think the key should be set in the filter and not with a Model Attribute Key component
Once the surfaces are plugged into the content input, the filter component reads the surfaces as Model Surface. I filtered for “Mod” and all surfaces are returned
Thanks for replying. Just to clarify, I already know a few different ways to handle this. I was mostly curious whether Filter Content can do it, since I wasn’t sure if I was using it incorrectly or if it’s just a bug.
Cyclops’s 'Get Property Value’ component can actually get attributes like ‘IsSurface’. I wonder if can be used in the filter component. I’m out of the studio for the night, I’ll try tomorrow and see.
I’m still a bit confused and not sure how this connects to the issue I’m having.
For me the problem happens when using Geometry as the Model Attribute Key with Filter Content. Does that mean I’ve done something wrong or could this be a bug?
Using Geometrytype in a filter there is a list of Enum values that can be filtered. This is part of the Rhinocommon SDK values:
None
Point
PointSet
Curve
Surface
Brep
Mesh
Light
Annotation
InstanceDefinition
InstanceReference
TextDot
Grip
Detail
Hatch
MorphControl
SubD
BrepLoop
BrepVertex
PolysrfFilter
EdgeFilter
PolyedgeFilter
MeshVertex
MeshEdge
MeshFace
Cage
Phantom
ClipPlane
Extrusion
AnyObject
Filtering for a Surface (IsSurface) is easy in this case. But what cannot be filtered is on Surface whether it is Trimmed or untrimmed, because in Rhino trimmed or untrimmed is not a geometry type.
What can be confusing is that in Model objects we do identify Trimmed vs Untrimmed surfaces. But this is not a specific attribute of the object, just a name that it is given. So the best to do is run a Name(string) Match on the name and then cull that list:
Simple Python scripts could be also used to get to any of the SDK Properties.
The Content Matchtext components in the Rhino toolbar are used to get at the attributes of any Model Object. As Basic Grasshopper datatypes do not come with additional attributes.
As I mentioned in my first post, I’m familiar with filtering Trimmed and Untrimmed Surfaces using MatchText the way you showed. I was mainly curious if there was a way to achieve the same result using Filter Content directly.
Thanks for the clarification. That explains why it behaves the way it does.