how to detect a construction path is crossing void region before evaluating it

Hello, I'm using ansys mechanical scripting to generate numerous stress linearization paths. I create paths automatically then I snap them to mesh nodes. Due to mesh density (which I cannot change), sometimes the paths snap to two different bodies with a void gap between them. Therefore it raises an error when I evaluate the linearized stress probe attached to it. Worse, it fails all the linearized stress results even if some were properly defined. My question is: is there a way to know by advance if the path is crossing a void region thus can't be evaluated ? Or can I evaluate linearized stress results individually so I can raise exceptions, instead of using EvaluateAllResults() ? Thanks for your help
Answers
-
Hi @Barnabe_Neyret if you have any snippets of code to share that would be really useful for our experts to help out
Otherwise, I hope @Structures-Scripting-Team can help!
0