Can anyone help with creating an index from Errors?

Hello brilliant community. I am still in an early learning stage of this amazing tool and having fun. But I ran into a issue with a tubular sweep along guide curves while modeling a medical stent LS project.

Here is a synopsis of the situation:

Model "Stent" wireframe inside of Visual Scripting, where there is a number of criteria but the 2 key ones are:

1) # of strands (helix)

2) Strand radius (thickness)

After the stent wireframe is generated, it gets morphed using CATIA Icem in order to get the wires closer to the scan data. In regards to using ICEM; I tried the Wrap surface operator, whis is good for most things but the geometry blew up. I also replicated the issue in Generative Shape Morphing Wrap Surface.

So After morphing in CATIA Icem, the resulting morped wires are "published" then pasted as result with link into a new 3Part and imported into a Design Sequence, where tubular sweeps are to be generated. The error in of itself is understood, where the profile leads to a cusp. So what I am trying to do is identify and isolate the problematic guides, then run a curve smoothing on only those curves to enable the sweeps. I can identify them with a "watch" and manually run the smoothing but if either of the criteria stated above changes, the index number of the error can vary.

My goal is to capture all of the erroneous elements that are generated when changing the parameters, then run a smoothing operation on them. Any idea how to pull the errors and capture their index number? I've tried using <,>,= assuming that True/False would be "1" or "0". 

I am not having success but know someone here will be able to help :)


thanks!