AnsweredAssumed Answered

Working with surface bodies from the API

Question asked by Swme Eng on Jul 6, 2017
Latest reply on Jul 7, 2017 by Amen Allah Jlili

Hello all,

 

I am working on a macro to fix some geometry on imported files, I am inserting a Delete Face feature, and then want to access the surfaces that are left over. I'm able to loop through bodies and get selection id's, then select the items, but I can't seem to figure out how to cast the selected bodies to ISurface objects.  Is there some object class that I should be using instead? It looks like GetSelectedObjectType returns swSelSURFACEBODIES.

Outcomes