Hello everyone! How does the API determine whether I choose an inner circle or an outer circle? as shown in the picture
Take a look at this example: Determine if selected face is hole or boss using SOLIDWORKS API
Are you preselecting the surface? If yes then you have your answer. If no, then you traverse each surface in the model. In your case it will be the one with the second smallest surface area.
There is a preselecting the surface。
I'm on my mobile so cant give a comprehensive answer but you need to get the 2016 SOLIDWORKS API Help - ILoop2 Interface.
See the accessor methods
then when you have a loop you can check
2016 SOLIDWORKS API Help - IsOuter Method (ILoop2)
I chose the blue face, how to judge?
Thanks Artem Taturevych
yes, your need get the loop , and use isOuter to check it.
Retrieving data ...