Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I actually found a workaround myself, by luck :slightly_smiling_face:

 

If you use this code

For i = 1 To oRPF.ParentFeatures.Count

The Count returns 0 if you have a feature of a Solid Body.

So putting this code in front of the line where I got the error means I will never get to the line.

You could also use this code:

If oRPF.ParentFeatures.Count <> 0 Then

 

I will not put this as a solution because I would like to know the correct code for checking if a pattern is a pattern of a solid body.